BUG wrong values for battery

Andrwe Lord Weber lord-weber-andrwe at renona-studios.org
Sat Apr 4 06:22:32 PDT 2009


Hi,

hal sets wrong values for the battery on my laptop.

my Configuration:
- gentoo-sources
- hal version 0.5.12_rc1 with the USE-Flags "X acpi crypt kernel_linux 
laptop".
- "sysfs" is activated in kernel

These variables are wrong:

battery.charge_level.percentage
battery.charge_level.rate
battery.reporting.rate

It seems to me the percentage is calculated by the following formula on 
my system:

battery.charge_level.percentage = battery.charge_level.current / 
battery.charge_level.design * 100

This is the reason why I get 65 % as maximum percentage.

The *.rate variables have a maximum value of 2500 if I compile 
something. This cause a remaining time >20 hours.


Regards,
Andrwe


More information about the hal mailing list