[Pkg-utopia-maintainers] Bug#529791: hal doesn't correctly report hibernate button for thinkpad-acpi
Yves-Alexis Perez
corsac at debian.org
Thu May 21 14:30:09 UTC 2009
Package: hal
Version: 0.5.12~git20090406.46dc48-2
Severity: normal
Hi,
I have a problem with hal not reporting my hibernate button (from
thinkpad-acpi):
lshal|grep button.type
button.type = 'radio' (string)
button.type = 'lid' (string)
button.type = 'sleep' (string)
button.type = 'power' (string)
the “sleep” button comes from:
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
button.has_state = false (bool)
button.type = 'sleep' (string)
info.addons.singleton = {'hald-addon-input'} (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.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1' (string)
input.device = '/dev/input/event4' (string)
input.product = 'Sleep Button (CM)' (string)
linux.device_file = '/dev/input/event4' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input4/event4' (string)
(i'm not really sure where does it come from, but I indeed have an input
events called Sleep Button)
The thinkpad-acpi buttons are reported differently:
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_4'
button.has_state = true (bool)
button.state.value = true (bool)
button.type = 'radio' (string)
info.addons.singleton = {'hald-addon-input'} (string list)
info.callouts.add = {'hal-setup-keymap', 'debian-setup-keyboard'} (string list)
info.capabilities = {'input', 'input.keys', 'input.switch', 'button', 'input.keymap'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'ThinkPad Extra Buttons' (string)
info.subsystem = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_4' (string)
input.device = '/dev/input/event6' (string)
input.keymap.data = {'0x01:screenlock', '0x02:battery', '0x03:sleep',
'0x04:radio', '0x06:switchvideomode', '0x07:f22', '0x08:f24',
'0x0b:suspend', '0x0f:brightnessup', '0x10:brightnessdown',
'0x11:kbdillumtoggle', '0x13:zoom', '0x14:volumeup', '0x15:volumedown',
'0x16:mute', '0x17:prog1', '0x04:bluetooth', '0x05:wlan'} (string list)
input.product = 'ThinkPad Extra Buttons' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us' (string)
input.xkb.model = 'thinkpad60' (string)
input.xkb.options = 'lv3:ralt_switch' (string)
input.xkb.rules = 'base' (string)
input.xkb.variant = 'altgr-intl' (string)
linux.device_file = '/dev/input/event6' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/devices/virtual/input/input6/event6' (string)
Although there are “radio”, “sleep”, ”suspend” buttons, only
button.type=radio is reported.
That means programs (like xfce4-power-manager) trying to detect if there is
an hibernate button think there is none.
Not sure how I could change that, if it's a config or code issue.
If you need more info, please ask.
Cheers,
--
Yves-Alexis
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages hal depends on:
ii acl 2.2.47-2 Access control list utilities
ii adduser 3.110 add and remove users and groups
ii consolekit 0.3.0-2 framework for defining and trackin
ii dbus 1.2.14-2 simple interprocess messaging syst
ii hal-info 20090309-1 Hardware Abstraction Layer - fdi f
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.14-2 simple interprocess messaging syst
ii libdbus-glib 0.80-4 simple interprocess messaging syst
ii libexpat1 2.0.1-4 XML parsing C library - runtime li
ii libgcc1 1:4.4.0-5 GCC support library
ii libglib2.0-0 2.20.1-2 The GLib library of C routines
ii libhal-stora 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii libhal1 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii libpolkit2 0.9-3 library for accessing PolicyKit
ii libsmbios2 2.0.3.dfsg-1 Provide access to (SM)BIOS informa
ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii libvolume-id 0.141-1 libvolume_id shared library
ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip
ii mount 2.13.1.1-1 Tools for mounting and manipulatin
ii pciutils 1:3.1.2-3 Linux PCI Utilities
ii pm-utils 1.2.5-2 utilities and scripts for power ma
ii policykit 0.9-3 framework for managing administrat
ii udev 0.141-1 /dev/ and hotplug management daemo
ii usbutils 0.82-1 Linux USB utilities
Versions of packages hal recommends:
ii eject 2.1.5+deb1+cvs20081104-6 ejects CDs and operates CD-Changer
ii libsmbios-bin 2.0.3.dfsg-1 Provide access to (SM)BIOS informa
Versions of packages hal suggests:
pn gnome-device-manager <none> (no description available)
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list