[maemo-developers] reliability of hal-device battery data?

From: Laurent GUERBY laurent at guerby.net
Date: Thu Feb 18 10:59:48 EET 2010
Hi,

This morning to evaluate speed of charging after complete
discharge I ran a small script every minute:

hal-device|egrep "reporting.curre|perc|age.cur"

=== Thu Feb 18 09:25:22 CET 2010 === battery.charge_level.percentage = 51 (0x33) (int) battery.reporting.current = 659 (0x293) (int) battery.voltage.current = 3817 (0xee9) (int)
...
=== Thu Feb 18 09:52:41 CET 2010 === battery.charge_level.percentage = 51 (0x33) (int) battery.reporting.current = 659 (0x293) (int) battery.voltage.current = 3817 (0xee9) (int)
=== Thu Feb 18 09:53:42 CET 2010 === battery.charge_level.percentage = 53 (0x35) (int) battery.reporting.current = 689 (0x2b1) (int) battery.voltage.current = 4086 (0xff6) (int)
=== Thu Feb 18 09:54:42 CET 2010 === battery.charge_level.percentage = 95 (0x5f) (int) battery.reporting.current = 1221 (0x4c5) (int) battery.voltage.current = 4062 (0xfde) (int)

After staying constant at 51% in one minute the charge level went from
53 to 95 when I just unpluged and then repluged the charger.

Is there a software way to force the N900 to reevaluate the current
battery level?

Thanks in advance,

Laurent


More information about the maemo-developers mailing list