[Bug 147902] Re: Battery disappears on restore, no longer reacts to lid close
bendis
bendis at bendis.cz
Wed Oct 24 13:04:27 UTC 2007
I don't know how HAL and guidance-power-manager exactly work, but IMHO
the source of the problem is the change of the udi of the "lid" button:
lshal before suspend:
...
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
button.has_state = false (bool)
button.type = 'sleep' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Sleep Button (CM)' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' (string)
input.device = '/dev/input/event6' (string)
input.product = 'Sleep Button (CM)' (string)
linux.device_file = '/dev/input/event6' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input28/event6' (string)
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
button.has_state = false (bool)
button.type = 'power' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Power Button (FF)' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' (string)
input.device = '/dev/input/event2' (string)
input.product = 'Power Button (FF)' (string)
linux.device_file = '/dev/input/event2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input26/event2' (string)
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'
button.has_state = true (bool)
button.state.value = false (bool)
button.type = 'lid' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'input.switch', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Lid Switch' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0' (string)
input.device = '/dev/input/event4' (string)
input.product = 'Lid Switch' (string)
linux.device_file = '/dev/input/event4' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input27/event4' (string)
...
and after resume:
...
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
button.has_state = true (bool)
button.state.value = false (bool)
button.type = 'lid' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'input.switch', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Lid Switch' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' (string)
input.device = '/dev/input/event6' (string)
input.product = 'Lid Switch' (string)
linux.device_file = '/dev/input/event6' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input31/event6' (string)
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
button.has_state = false (bool)
button.type = 'sleep' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Sleep Button (CM)' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' (string)
input.device = '/dev/input/event8' (string)
input.product = 'Sleep Button (CM)' (string)
linux.device_file = '/dev/input/event8' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input32/event8' (string)
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'
button.has_state = false (bool)
button.type = 'power' (string)
info.addons = {'hald-addon-keyboard'} (string list)
info.capabilities = {'input', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Power Button (FF)' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0' (string)
input.device = '/dev/input/event2' (string)
input.product = 'Power Button (FF)' (string)
linux.device_file = '/dev/input/event2' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/class/input/input30/event2' (string)
...
--
Battery disappears on restore, no longer reacts to lid close
https://bugs.launchpad.net/bugs/147902
You received this bug notification because you are a member of Kubuntu
Team, which is a bug contact for kde-guidance in ubuntu.
More information about the kubuntu-bugs
mailing list