Comment 10 for bug 177570

Revision history for this message
Roland Dreier (roland.dreier) wrote :

This seems to be a known issue with kernel 2.6.24-rc's and hal; see for example http://lkml.org/lkml/2007/12/8/24 and
https://bugzilla.novell.com/show_bug.cgi?id=342808

Since kernel 2.6.24 has recently gone into Hardy, it's not surprising this is now showing up.

Anyway, here's the hal-device output:

$ hal-find-by-capability --capability battery | xargs -n 1 hal-device
udi = '/org/freedesktop/Hal/devices/computer_power_supply_0'
  battery.type = 'primary' (string)
  battery.present = true (bool)
  battery.current = 48047 (0xbbaf) (int)
  battery.rechargeable.is_charging = true (bool)
  battery.charge_level.percentage = 5 (0x5) (int)
  battery.technology = 'lithium-ion' (string)
  info.capabilities = { 'battery' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_0' (string)
  battery.reporting.technology = 'Li-ion' (string)
  battery.vendor = 'SANYO' (string)
  battery.reporting.last_full = 78800 (0x133d0) (int)
  linux.subsystem = 'power_supply' (string)
  battery.reporting.design = 74880 (0x12480) (int)
  battery.reporting.unit = 'mWh' (string)
  battery.charge_level.rate = 0 (0x0) (int)
  battery.remaining_time = 6164 (0x1814) (int)
  info.product = 'Li-ion' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.sysfs_path = '/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0' (string)
  battery.voltage.current = 15915 (0x3e2b) (int)
  info.category = 'battery' (string)
  battery.reporting.current = 3950 (0xf6e) (int)
  battery.charge_level.current = 3950 (0xf6e) (int)
  battery.charge_level.last_full = 78800 (0x133d0) (int)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  battery.rechargeable.is_discharging = false (bool)

udi = '/org/freedesktop/Hal/devices/acpi_BAT0'
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  info.product = 'Battery Bay' (string)
  battery.technology = 'lithium-ion' (string)
  info.capabilities = { 'battery' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/acpi_BAT0' (string)
  battery.charge_level.low = 200 (0xc8) (int)
  battery.alarm.unit = 'mWh' (string)
  battery.reporting.current = 7310 (0x1c8e) (int)
  battery.vendor = 'SANYO' (string)
  battery.rechargeable.is_discharging = false (bool)
  battery.model = '42T4506' (string)
  battery.reporting.last_full = 78800 (0x133d0) (int)
  battery.reporting.design = 74880 (0x12480) (int)
  battery.reporting.warning = 3940 (0xf64) (int)
  battery.charge_level.rate = 44649 (0xae69) (int)
  battery.reporting.low = 200 (0xc8) (int)
  battery.charge_level.capacity_state = 'ok' (string)
  battery.charge_level.current = 7310 (0x1c8e) (int)
  battery.charge_level.last_full = 78800 (0x133d0) (int)
  linux.hotplug_type = 4 (0x4) (int)
  battery.type = 'primary' (string)
  battery.serial = '1859' (string)
  battery.voltage.design = 14400 (0x3840) (int)
  battery.charge_level.design = 74880 (0x12480) (int)
  battery.charge_level.unit = 'mWh' (string)
  battery.voltage.current = 15935 (0x3e3f) (int)
  linux.acpi_type = 0 (0x0) (int)
  battery.present = true (bool)
  linux.acpi_path = '/proc/acpi/battery/BAT0' (string)
  battery.reporting.technology = 'LION' (string)
  battery.voltage.unit = 'mV' (string)
  battery.charge_level.warning = 3940 (0xf64) (int)
  battery.charge_level.granularity_1 = 1 (0x1) (int)
  battery.charge_level.granularity_2 = 1 (0x1) (int)
  battery.reporting.rate = 44649 (0xae69) (int)
  info.category = 'battery' (string)
  battery.reporting.granularity_1 = 1 (0x1) (int)
  battery.charge_level.percentage = 9 (0x9) (int)
  battery.reporting.granularity_2 = 1 (0x1) (int)
  battery.rechargeable.is_charging = true (bool)
  battery.remaining_time = 5764 (0x1684) (int)
  battery.reporting.unit = 'mWh' (string)
  battery.alarm.design = 3940 (0xf64) (int)
  battery.is_rechargeable = true (bool)