Comment 80 for bug 313514

Revision history for this message
Thomas Hood (jdthood) wrote :

Further to the advice in #72 above, I'd just like to point out that as of udev version 175, default udev keymapping can be overridden by means of a file in /etc/udev/keymaps/ named the same as the file in /lib/udev/keymaps/ that it overrides.

Suppose, for example, you want to make use of the Zoom key on a ThinkPad X220. The file /lib/udev/keymaps/module-lenovo maps this key with scancode 0x13 to "zoom", i.e., KEY_ZOOM, which has a value of 372. To change this to "prog2", i.e., KEY_PROG2, value 149 (corresponding to X event XF86Launch2, value 157), copy /lib/udev/keymaps/module-lenovo to /etc/udev/keymaps/module-lenovo and change the line "0x13 zoom" to "0x13 prog2".