If somebody is still interested in project of Linux input device => X
key codes mapping from the comment 30, there is an update with new URLs
(no other changes were done in the comment nor linked files):

Stanislav Brabec 2009-05-20 04:24:46 UTC

As this problem is going to be resolved, we should start think about
getting correct translation between kernel and X.

Proposed patch for the old keyboard driver to pass keycodes 128-16383
(128-255 with old Xi) using "Extended MEDIUMRAW" encapsulation: bug
11545

Keyboard mapping project page:
http://fedoraproject.org/wiki/SIGs/Laptop/HotKeys

Mapping work-in-progress. One table and set of scripts providing all
needed tables. Some keys still need discussion.

* Proposed mapping table between kernel and X:
http://ftp.suse.com/pub/people/sbrabec/keyboards/input_linux_map_fixed.txt

* Proposed logical categories of keys (to help understanding them):
http://ftp.suse.com/pub/people/sbrabec/keyboards/keymap_editor/keys.txt

* Scancode scripts for kernel (generated from X symbols/inet and table
above):
http://ftp.suse.com/pub/people/sbrabec/keyboards/scancode_tables/

* Proposed code snippet to evdev_key.c driver (generated from the table
above):
http://ftp.suse.com/pub/people/sbrabec/keyboards/evdev_key_c_table.txt

* Proposed X keycodes/evdev for evdev driver (generated from the table
above): http://ftp.suse.com/pub/people/sbrabec/keyboards/keycodes_evdev

* Proposed common extended basic keymap for X:
http://ftp.suse.com/pub/people/sbrabec/keyboards/symbols_evdev

* Proposed X keycodes/inet for RAW and SOFTRAW drivers (generated from X
symbols/inet and table above):
http://ftp.suse.com/pub/people/sbrabec/keyboards/keycodes_inet

...

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/313514

Title:
  MASTER: evdev driver ignores keycodes > 255

Status in The Linux Kernel:
  Confirmed
Status in “xorg-server” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: xserver-xorg-input-evdev

  package Version: 1:2.0.99+git20080912-0ubuntu5
  Ubuntu 8.10

  Keyboards can use keycodes that go above 255. See 
http://lxr.linux.no/linux+v2.6.28/include/linux/input.h
  These are often multimedia keys for keyboards and remotes.

  These are ignored by the evdev driver:
  gimble:~/xserver-xorg-input-evdev-2.0.99+git20080912$ grep 255 src/evdev.c 
      if (code > 255 && ev->code < KEY_MAX) {
      /* The X server can't handle keycodes > 255 anyway, just drop them.  */

  Which means they never reach X and therefore cannot be used in anyway.

  The only workaround at the minute would be to use input-kdb to remap
  all keys for an input device to values lower than 255.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/313514/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to