Am Mittwoch, 28. März 2012 schrieb Serghei Amelian:
On Wednesday 28 March 2012 16:38:07 Mag. Dr. Nikolaus
Klepp wrote:
I have a problem with kpowersave and ACPI on my
T60p. kpowersave
complains about missing ACPI support, battery status is not shown (it's
always on AC, even when AC is disconnected).
I can retrieve the battery status with acpi:
$ acpi -b
Battery 0: Discharging, 98%, 02:16:03 remaining
Has anybody a clue what I am missing?
It's running wheezy and TDE 3.5.13. acpid is running, thinkpad relevant
modules are loaded, hal-trinity is installed, too.
Nik
kpowersave doesn't use acpid, but HAL. Check if your user have permissions
to query hal, via dbus.
I can query hal, but how do I query hal via dbus?
$ hal-device | grep -i bat
input.keymap.data =
{ '0x01:screenlock', '0x02:battery', '0x03:sleep',
'0x04:wlan', '0x06:switchvideomode', '0x07:f22',
'0x08:f24', '0x0b:suspend', '0x0f:brightnessup',
'0x10:brightnessdown', '0x11:kbdillumtoggle', '0x13:zoom',
'0x14:volumeup', '0x15:volumedown', '0x16:mute',
'0x17:prog1' }
(string list)
39: udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
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 = '92P1127' (string)
battery.vendor = 'SANYO' (string)
battery.voltage.design = 10800 (0x2a30) (int)
battery.voltage.unit = 'mV' (string)
battery.reporting.design = 56160 (0xdb60) (int)
battery.reporting.unit = 'mWh' (string)
battery.serial = '30552' (string)
battery.present = true (bool)
battery.voltage.current = 11525 (0x2d05) (int)
battery.is_rechargeable = true (bool)
battery.rechargeable.is_charging = false (bool)
battery.rechargeable.is_discharging = true (bool)
battery.reporting.current = 46170 (0xb45a) (int)
battery.reporting.last_full = 56160 (0xdb60) (int)
battery.charge_level.current = 46170 (0xb45a) (int)
battery.charge_level.last_full = 56160 (0xdb60) (int)
battery.charge_level.design = 56160 (0xdb60) (int)
battery.charge_level.rate = 0 (0x0) (int)
battery.charge_level.percentage = 82 (0x52) (int)
battery.remaining_time = 8656 (0x21d0) (int)
linux.sysfs_path
=
'/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0'
(string)
info.capabilities = { 'battery' } (string list)
info.category = 'battery' (string)