NetBSD Problem Report #58695

From www@netbsd.org  Wed Sep 25 12:31:36 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 06E511A923B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Sep 2024 12:31:36 +0000 (UTC)
Message-Id: <20240925123134.CD75A1A923D@mollari.NetBSD.org>
Date: Wed, 25 Sep 2024 12:31:34 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: acpibat(4) fails to expose battery model/serial/type/oem
X-Send-Pr-Version: www-1.0

>Number:         58695
>Category:       kern
>Synopsis:       acpibat(4) fails to expose battery model/serial/type/oem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 12:35:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, ...
>Organization:
The NetBatteryD Foundation
>Environment:
>Description:
The _BIF and _BIX methods of ACPI PNP0C0A battery devices return information about battery model number, serial number, batter type, and OEM information:

https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/10_Power_Source_and_Power_Meter_Devices/Power_Source_and_Power_Meter_Devices.html#bif-battery-information
https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/10_Power_Source_and_Power_Meter_Devices/Power_Source_and_Power_Meter_Devices.html#bix-battery-information-extended

However, NetBSD appears to ignore these and doesn't expose them anywhere.
>How-To-Repeat:
try to find battery model/serial/type/oem
>Fix:
Yes, please!

1. Print it in dmesg.
2. Create sysctl nodes for it.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.