[Pkg-utopia-maintainers] Bug#535196: hal: Thinkpad X61: RADIO button (Ctrl-F5) does not work anymore

Leszek Koltunski leszek at koltunski.pl
Tue Jun 30 16:52:01 UTC 2009


Package: hal
Version: 0.5.12~git20090406.46dc48-2
Severity: normal

in my thinkpad X61, all 'extra' buttons work with exception of the 'Ctrl-F5' , 
which is supposed to toggle all radios (bluetooth&wifi)

To debug it, I have followed procedure given in 

 https://wiki.ubuntu.com/Hotkeys/Troubleshooting

and here's what I have found:

1) 'xev' does not see anything when I press Ctrl-F5

2) using 'hal-find-by-capability --capability input | xargs -n1 lshal -u' 
I have concluded that the thinkpad extra keys are device /dev/input/event6.

3) utumno:/dev/input# lshal -u /org/freedesktop/Hal/devices/computer_logicaldev_input_4
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'} (string list)
  input.product = 'ThinkPad Extra Buttons'  (string)
  input.x11_driver = 'evdev'  (string)
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'thinkpad'  (string)
  input.xkb.rules = 'base'  (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)

4) utumno:/dev/input# input-events 6
/dev/input/event6
   bustype : BUS_HOST
   vendor  : 0x17aa
   product : 0x5054
   version : 16641
   name    : "ThinkPad Extra Buttons"
   phys    : "thinkpad_acpi/input0"
   bits ev : EV_SYN EV_KEY EV_MSC EV_SW

waiting for events
00:46:45.490685: EV_KEY KEY_RADIO pressed
00:46:45.490708: EV_SYN code=0 value=0
00:46:45.490714: EV_KEY KEY_RADIO released
00:46:45.490719: EV_SYN code=0 value=0

- as we can see, 'input-events' sees the 'Ctrl-F5' keypress.

5) utumno:/dev/input# cat /usr/include/linux/input.h | grep KEY_RADIO
#define KEY_RADIO		0x181


At this point we see that the 'KEY_RADIO' is mapped to 0x181, which is > 255, 
and that is the reason why X does not see this key. 

At this moment, https://wiki.ubuntu.com/Hotkeys/Troubleshooting recommends filing 
a bug against hal, which is what I am doing :)



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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-3                    simple interprocess messaging syst
ii  hal-info     20090309-1                  Hardware Abstraction Layer - fdi f
ii  libc6        2.9-18                      GNU C Library: Shared libraries
ii  libdbus-1-3  1.2.14-3                    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-10                  GCC support library
ii  libglib2.0-0 2.20.4-1                    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-4                       library for accessing PolicyKit
ii  libsmbios2   2.0.3.dfsg-1                Provide access to (SM)BIOS informa
ii  libstdc++6   4.4.0-10                    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.15.1~rc1-1                Tools for mounting and manipulatin
ii  pciutils     1:3.1.2-5                   Linux PCI Utilities
ii  pm-utils     1.2.5-2                     utilities and scripts for power ma
ii  policykit    0.9-4                       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
pn  libsmbios-bin   <none>                   (no description available)

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