Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • The updated file should be /etc/udev/hwdb.bin, not /lib/udev/hwdb.bin. But though this file is updated correctly, this doesn't work for me either, even after a reboot. Perhaps something missing in the documentation. About this: bugs.freedesktop.org/show_bug.cgi?id=82311 Commented Nov 21, 2014 at 16:02
  • @vinc17 that is really interesting, as soon I can I will try again, I think we have to find that settings file and try to imitate it, thx! Commented Nov 22, 2014 at 16:28
  • 1
    My problem was due to the fact that the KEYBOARD_KEY_ lines started with 2 spaces instead of a single one (this wasn't documented and I got no error messages!). I don't know for you, but with my USB keyboard, showkey --scancodes doesn't give the scancodes udev expects (the values are different); the input-kbd utility gives the correct scancodes. Commented Nov 26, 2014 at 14:17
  • 1
    The evtest utility should also give you the correct scancodes: after typing a key, you should get 2 lines and the first one should end with something of the form code 4 (MSC_SCAN), value xxx, where xxx is the scancode. But the driver for my keyboard is buggy, and I don't get this MSC_SCAN line for some keys I wanted to remap. That's why I used input-kbd, which lists all the scancodes for the selected device. Commented Nov 26, 2014 at 14:28
  • 1
    I've posted detailed info in an answer. Now, I'm not sure that 36 or 7002c works as a value. I think that you need the key code identifier. See my answer. Commented Nov 28, 2014 at 0:33