[Bug 60989] HAL reports incorrect battery percentages

John Dong john.dong at gmail.com
Mon Sep 18 02:12:05 UTC 2006


Public bug reported:

Ever since the most recent HAL update, GNOME Power Manager and lshal
have been giving me ridiculous values for battery life. It directly
contradicts what acpi -V tells me. For example:

jdong at jdong-laptop:~$ acpi -V
     Battery 1: discharging, 96%, 02:33:40 remaining
     Thermal 1: ok, 54.0 degrees C
  AC Adapter 1: off-line

-----------

jdong at jdong-laptop:~$ lshal | grep battery
  battery.remaining_time = 14400  (0x3840)  (int)
  battery.charge_level.percentage = 100  (0x64)  (int)
  battery.charge_level.rate = 1  (0x1)  (int)
  battery.charge_level.last_full = 4  (0x4)  (int)
  battery.charge_level.current = 4  (0x4)  (int)
  battery.voltage.current = 1  (0x1)  (int)
  battery.reporting.rate = 1637  (0x665)  (int)
  battery.reporting.current = 4231  (0x1087)  (int)
  battery.charge_level.capacity_state = 'ok'  (string)
  battery.rechargeable.is_discharging = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.is_rechargeable = true  (bool)
  battery.charge_level.unit = 'mWh'  (string)
  battery.charge_level.granularity_2 = 473  (0x1d9)  (int)
  battery.charge_level.granularity_1 = 473  (0x1d9)  (int)
  battery.charge_level.low = 2590  (0xa1e)  (int)
  battery.charge_level.warning = 4440  (0x1158)  (int)
  battery.charge_level.design = 71040  (0x11580)  (int)
  battery.voltage.design = 14800  (0x39d0)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.reporting.granularity_2 = 32  (0x20)  (int)
  battery.reporting.granularity_1 = 32  (0x20)  (int)
  battery.reporting.low = 175  (0xaf)  (int)
  battery.reporting.warning = 300  (0x12c)  (int)
  battery.reporting.design = 4800  (0x12c0)  (int)
  battery.reporting.last_full = 4382  (0x111e)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.technology = 'LION'  (string)
  battery.serial = '10320'  (string)
  battery.model = 'ZB01'  (string)
  battery.vendor = 'SONY'  (string)
  battery.present = true  (bool)
  info.capabilities = {'battery'} (string list)
  info.category = 'battery'  (string)
  battery.type = 'primary'  (string)
  linux.acpi_path = '/proc/acpi/battery/BAT1'  (string)


It continues to report either 100% or 75% until my battery goes dead.

** Affects: hal (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
HAL reports incorrect battery percentages
https://launchpad.net/bugs/60989




More information about the desktop-bugs mailing list