keymap question

Peter Zijlstra peterz at infradead.org
Fri Jun 27 03:03:48 PDT 2008


Hi,

I'm trying to add my IBM USB Travel Keyboard with UltraNav keyboard to
the keymap so that its media buttons would start to work.

the relevant lshal output is:

udi = '/org/freedesktop/Hal/devices/usb_device_4b3_3019_noserial_if0_logicaldev_input'
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_4b3_3019_noserial_if0'  (string)
  info.product = 'Lite-On Tech IBM USB Travel Keyboard with UltraNav'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_4b3_3019_noserial_if0_logicaldev_input'  (string)
  input.device = '/dev/input/event1'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_4b3_3019_noserial_if0'  (string)
  input.product = 'Lite-On Tech IBM USB Travel Keyboard with UltraNav'  (string)
  input.x11_driver = 'evdev'  (string)
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)
  linux.device_file = '/dev/input/event1'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input1/event1'  (string)


and xev reports keycodes:

  174 - vol down
  176 - vol up
  160 - mute

The below patch ought to suffice if I understand things, however no luck
in getting the keys to actually do anything :-(

Also, there appear to be plenty keys on the keyboard that do no generate
appropriate xev response, such as the 'Access IBM' button, and most fn-
combinations.


--- 30-keymap-misc.fdi~	2008-06-27 11:56:56.359179631 +0200
+++ 30-keymap-misc.fdi	2008-06-27 11:56:58.133759194 +0200
@@ -141,6 +141,12 @@
         </match>
       </match>
 
+      <match key="/org/freedesktop/Hal/devices/usb_device_4b3_3019_noserial_if0_logicaldev_input:input.product" string="Lite-On Tech IBM USB Travel Keyboard with UltraNav">
+	      <append key="input.keymap.data" type="strlist">a0:mute</append> <!-- Fn-F5   Sound On/Off -->
+	      <append key="input.keymap.data" type="strlist">ae:volumedown</append> <!-- Fn-Down   Volume down -->
+	      <append key="input.keymap.data" type="strlist">b0:volumeup</append> <!-- Fn-Up   Volume up -->
+      </match>
+
     </match>
 
   </device>





More information about the hal mailing list