Skip to main content
added 280 characters in body
Source Link
dirkt
  • 33.5k
  • 4
  • 53
  • 81

(1) X keycodes and kernel keycodes are not the same, you have to add 8 to the latter to get the former. Try it with xev, showkey and a normal letter, say a.

(2) If I remember correctly, keycodes greater than 256 are not supported under X.

So you need a custom kernel keyboard or HID mapping that maps your keycode 264 and the rest to other unused keycodes that are in the admissable range.

Edit

You can do this globally with getkeycodes resp. setkeycodes, or per device with the udev hw database, or per device using your own program with EVIOCGKEYCODE_V2 and EVIOCSKEYCODE_V2 ioctl's.

(1) X keycodes and kernel keycodes are not the same, you have to add 8 to the latter to get the former. Try it with xev, showkey and a normal letter, say a.

(2) If I remember correctly, keycodes greater than 256 are not supported under X.

So you need a custom kernel keyboard or HID mapping that maps your keycode 264 and the rest to other unused keycodes that are in the admissable range.

(1) X keycodes and kernel keycodes are not the same, you have to add 8 to the latter to get the former. Try it with xev, showkey and a normal letter, say a.

(2) If I remember correctly, keycodes greater than 256 are not supported under X.

So you need a custom kernel keyboard or HID mapping that maps your keycode 264 and the rest to other unused keycodes that are in the admissable range.

Edit

You can do this globally with getkeycodes resp. setkeycodes, or per device with the udev hw database, or per device using your own program with EVIOCGKEYCODE_V2 and EVIOCSKEYCODE_V2 ioctl's.

Source Link
dirkt
  • 33.5k
  • 4
  • 53
  • 81

(1) X keycodes and kernel keycodes are not the same, you have to add 8 to the latter to get the former. Try it with xev, showkey and a normal letter, say a.

(2) If I remember correctly, keycodes greater than 256 are not supported under X.

So you need a custom kernel keyboard or HID mapping that maps your keycode 264 and the rest to other unused keycodes that are in the admissable range.