Only one sysctl node if two battery on the laptop ?

Lagrange Marc markocpc at gmail.com
Fri Oct 2 21:58:53 UTC 2009


Hi,

I've a Fujitsu Siemens CELSIUS Mobile H which can have two battery.

apm command show :

% apm
APM version: 1.2
APM Management: Enabled
AC Line status: off-line
Battery Status: high
Remaining battery life: 99%
Remaining battery time:  1:36:00
Number of batteries: 2
Battery 0:
not present
Battery 1:
	Battery Status: high
	Remaining battery life: 99%
	Remaining battery time:  1:36:00

OR :

% apm
APM version: 1.2
APM Management: Enabled
AC Line status: on-line
Battery Status: charging
Remaining battery life: 50%
Remaining battery time: unknown
Number of batteries: 2
Battery 0:
	Battery Status: low
	Remaining battery life: 0%
	Remaining battery time: unknown
Battery 1:
	Battery Status: charging
	Remaining battery life: 100%
	Remaining battery time: unknown

Sysctl :

% sysctl hw.acpi.battery
hw.acpi.battery.life: 100
hw.acpi.battery.time: -1
hw.acpi.battery.state: 2
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5

OR :

% sysctl hw.acpi.battery
hw.acpi.battery.life: 50
hw.acpi.battery.time: -1
hw.acpi.battery.state: 2
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5

The first run is with one battery, the second with two (one battery is
dead and the other is good)

Why only one battery shown in sysctl and not hw.acpi.battery.<battery
number>.{life,time,...} ?

uname -a : FreeBSD cornichon 8.0-RC1 FreeBSD 8.0-RC1 #1: Sat Sep 19
13:02:09 CEST 2009     marc at cornichon:/usr/obj/usr/src/sys/CORNICHON
i386

Thanks.


More information about the freebsd-hardware mailing list