Only one sysctl node if two battery on the laptop ?

View: New views
2 Messages — Rating Filter:   Alert me  

Only one sysctl node if two battery on the laptop ?

by Marc Lagrange-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@cornichon:/usr/obj/usr/src/sys/CORNICHON
i386

Thanks.
_______________________________________________
freebsd-hardware@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@..."

Parent Message unknown Re: Only one sysctl node if two battery on the laptop ?

by Alexander Motin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Why not? Applications that want to have full information could use acpi
interface to obtain it, just like `acpiconf -i X` does.

--
Alexander Motin
_______________________________________________
freebsd-hardware@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@..."