Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

From /usr/share/doc/systemd/NEWS from the systemd package (udev has been merged into systemd):

  • The udev "keymap" data files and tools to apply keyboard specific mappings of scan to key codes, and force-release scan code lists have been entirely replaced by a udev "keyboard" builtin and a hwdb data file.

Have a look at /usr/lib/udev/hwdb.d/60-keyboard.hwdb, at the top there's an explanation of the new system.

That file actually has this in it:

# Microsoft Natural Ergonomic Keyboard 4000
keyboard:usb:v045Ep00DB*
 KEYBOARD_KEY_c022d=zoomin
 KEYBOARD_KEY_c022e=zoomout

so that makes things easier for you, just take those lines and put them in e.g. /etc/udev/hwdb.d/70-keyboard-custom.hwdb (create /etc/udev/hwdb.d), make the changes you want. Next as root:

udevadm hwdb --update

to create an updated /etc/udev/hwdb.bin, then just unplug/replug the keyboard to test the changes.