Comment 6 for bug 301351

Revision history for this message
Connor Imes (ckimes) wrote : Re: Partial keyboard and touchpad failure when switching to battery

From https://wiki.ubuntu.com/DebuggingGNOMEPowerManager :

connor@lappy686-mk2:~$ hal-find-by-capability --capability "battery"
/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0

connor@lappy686-mk2:~$ hal-find-by-capability --capability "battery" | xargs -n 1 hal-device
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
  linux.hotplug_type = 2 (0x2) (int)
  info.subsystem = 'power_supply' (string)
  linux.subsystem = 'power_supply' (string)
  info.product = 'DELL Y13385' (string)
  info.capabilities = { 'battery' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0' (string)
  battery.type = 'primary' (string)
  battery.reporting.technology = 'Li-ion' (string)
  battery.technology = 'lithium-ion' (string)
  battery.model = 'DELL Y13385' (string)
  battery.vendor = 'Sanyo' (string)
  battery.voltage.design = 11100 (0x2b5c) (int)
  battery.voltage.unit = 'mV' (string)
  battery.reporting.design = 53000 (0xcf08) (int)
  battery.reporting.unit = 'mWh' (string)
  battery.serial = '2508' (string)
  battery.present = true (bool)
  battery.voltage.current = 12663 (0x3177) (int)
  battery.reporting.rate = -1 (0xffffffff) (int)
  battery.is_rechargeable = true (bool)
  battery.rechargeable.is_charging = true (bool)
  battery.rechargeable.is_discharging = false (bool)
  battery.reporting.current = 48280 (0xbc98) (int)
  linux.sysfs_path = '/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0' (string)
  battery.reporting.last_full = 48770 (0xbe82) (int)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  battery.charge_level.current = 48280 (0xbc98) (int)
  battery.charge_level.last_full = 48770 (0xbe82) (int)
  battery.charge_level.design = 53000 (0xcf08) (int)
  battery.charge_level.rate = 0 (0x0) (int)
  battery.charge_level.percentage = 98 (0x62) (int)
  battery.remaining_time = 1562 (0x61a) (int)
  info.category = 'battery' (string)

connor@lappy686-mk2:~$ hal-find-by-capability --capability "battery" | xargs -t -n 1 hal-get-property --key battery.rechargeable.is_charging --udi
hal-get-property --key battery.rechargeable.is_charging --udi /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0
true

connor@lappy686-mk2:~$ lshal -m

Start monitoring devicelist:
-------------------------------------------------
11:45:43.629: computer_power_supply_ac_adapter_AC property ac_adapter.present = false
11:45:43.686: computer_power_supply_battery_BAT0 property battery.remaining_time = 1562 (0x61a)
11:45:43.712: computer_power_supply_battery_BAT0 property battery.charge_level.rate = 0 (0x0)
11:45:43.715: computer_power_supply_battery_BAT0 property battery.reporting.rate = -1 (0xffffffff)
11:45:43.718: computer_power_supply_battery_BAT0 property battery.voltage.current = 12597 (0x3135)
11:45:44.045: computer property power_management.is_powersave_set = true
11:46:01.536: computer_power_supply_ac_adapter_AC property ac_adapter.present = true
11:46:01.549: computer_power_supply_battery_BAT0 property battery.remaining_time = 101299 (0x18bb3)
11:46:01.550: computer_power_supply_battery_BAT0 property battery.charge_level.current = 48230 (0xbc66)
11:46:01.554: computer_power_supply_battery_BAT0 property battery.reporting.current = 48230 (0xbc66)
11:46:01.555: computer_power_supply_battery_BAT0 property battery.rechargeable.is_discharging = true
11:46:01.555: computer_power_supply_battery_BAT0 property battery.rechargeable.is_charging = false
11:46:01.556: computer_power_supply_battery_BAT0 property battery.voltage.current = 12391 (0x3067)
11:46:01.665: computer property power_management.is_powersave_set = false
11:46:03.648: computer_power_supply_battery_BAT0 property battery.remaining_time removed
11:46:03.648: computer_power_supply_battery_BAT0 property battery.rechargeable.is_discharging = false
11:46:16.016: computer_power_supply_battery_BAT0 property battery.charge_level.current = 48200 (0xbc48)
11:46:16.021: computer_power_supply_battery_BAT0 property battery.reporting.current = 48200 (0xbc48)
11:46:16.024: computer_power_supply_battery_BAT0 property battery.voltage.current = 12561 (0x3111)
11:46:21.070: computer_power_supply_battery_BAT0 property battery.remaining_time = 285 (0x11d) (new)
11:46:21.074: computer_power_supply_battery_BAT0 property battery.rechargeable.is_charging = true
^C