Comment 6 for bug 1389201

Revision history for this message
Martin Pitt (pitti) wrote : Re: Error calling EVIOCSKEYCODE on device node: Invalid argument

Key codes 418/419 are KEY_ZOOMIN and KEY_ZOOMOUT. We don't have any hwdb keymaps for ASUS which set those, but it applies to the USB keyboard:

N: input/event10
S: input/by-id/usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-event-kbd
E: ID_VENDOR=Microsoft
E: ID_MODEL=Natural®_Ergonomic_Keyboard_4000
E: KEYBOARD_KEY_c022d=zoomin
E: KEYBOARD_KEY_c022e=zoomout

This rule was introduced in 2011 in http://cgit.freedesktop.org/systemd/systemd/commit/?id=310aba9 (via https://bugs.debian.org/629647) and later converted to hwdb. I'm hesitant to remove it now, as there might be either older keyboard models or (more probably) older kernels which still need it. However, can you please do this:

  - Edit /lib/udev/hwdb.d/60-keyboard.hwdb (as root, e. g. with "sudo gedit") to remove this paragraph:

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

Then reboot your computer, verify that the warning went away. Then please install the "evtest" package, run "sudo evtest", select your Microsoft USB keyboard, press the Zoom in/out keys, and copy&paste the output? If they still work, then your model/kernel doesn't need the mappings any more. Thanks!