[Pkg-utopia-maintainers] Bug#555050: hal: Remapping Fn+F5 to anything else than KEY_WLAN does not work

Bjørn Mork bjorn at mork.no
Sun Nov 8 09:24:04 UTC 2009


Package: hal
Version: 0.5.13-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am remapping Fn+F5 on my Thinkpad to '0x04:bluetooth' to have it toggle
BlueTooth on and off instead of the wlan, which I always need on.  The
'ThinkPad Extra Buttons' input device with keymap data looks like this:

bjorn at nemi:~$ 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 = {'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', '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'} (string list)
  input.product = 'ThinkPad Extra Buttons'  (string)
  input.x11_driver = 'evdev'  (string)
  input.xkb.layout = 'no'  (string)
  input.xkb.model = 'pc105'  (string)
  input.xkb.options = 'lv3:ralt_switch,compose:menu'  (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)


This stopped working after upgrading to hal 0.5.13-4.  No matter what I set the 
keymap to, Fn+F5 will always generate KEY_WLAN:

nemi:/tmp# 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
09:15:38.438055: EV_KEY KEY_WLAN pressed
09:15:38.438077: EV_SYN code=0 value=0
09:15:38.438083: EV_KEY KEY_WLAN released
09:15:38.438088: EV_SYN code=0 value=0


I have also tried other values than KEY_BLUETOOTH, just to ensure that it 
isn't just some magic related to that value. No difference.


Downgrading to hal 0.5.13-3 fixes the problem, so this is a regression between
those two versions.

And just to make it clear:  I do not want to run hal from unstable.  This 
is a choice forced upon me by an x-server dependency.  And the unstable
x-server is unfortunately necessary to support the GM45 IGP in this 
laptop.

So downgrading hal to the stable version or removing hal is not possible.


Bjørn


- -- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (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.1-2        framework for defining and trackin
ii  dbus                      1.2.1-5+lenny1 simple interprocess messaging syst
ii  hal-info                  20090716-1     Hardware Abstraction Layer - fdi f
ii  libblkid1                 2.16.1-4       block device id library
ii  libc6                     2.10.1-5       GNU C Library: Shared libraries
ii  libdbus-1-3               1.2.1-5+lenny1 simple interprocess messaging syst
ii  libdbus-glib-1-2          0.82-2         simple interprocess messaging syst
ii  libexpat1                 2.0.1-4+lenny1 XML parsing C library - runtime li
ii  libglib2.0-0              2.22.2-2       The GLib library of C routines
ii  libhal-storage1           0.5.11-8       Hardware Abstraction Layer - share
ii  libhal1                   0.5.11-8       Hardware Abstraction Layer - share
ii  libpolkit2                0.9-4          library for accessing PolicyKit
ii  libusb-0.1-4              2:0.1.12-13    userspace USB programming library
ii  lsb-base                  3.2-20         Linux Standard Base 3.2 init scrip
ii  mount                     2.13.1.1-1     Tools for mounting and manipulatin
ii  pciutils                  1:3.0.0-6      Linux PCI Utilities
ii  policykit                 0.9-4          framework for managing administrat
ii  udev                      0.125-7+lenny3 /dev/ and hotplug management daemo
ii  usbutils                  0.73-10        Linux USB utilities

Versions of packages hal recommends:
ii  eject                       2.1.5+deb1-4 ejects CDs and operates CD-Changer
ii  pm-utils                    1.1.2.4-1    utilities and scripts for power ma

Versions of packages hal suggests:
pn  gnome-device-manager          <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkr2jjIACgkQ10rqkowbIskyQgCdFsbdPbzIl0X3nFsHwp9tAeiK
k5gAn2fO/CuyGzyhkh+HpilnNMIbpAMu
=wuXF
-----END PGP SIGNATURE-----





More information about the Pkg-utopia-maintainers mailing list