Setting up a computer with USB keyboards that are not supposed to issue power-off (or Alt+F4, volume-up, ..) I ran into a problem not well explained in the hwdb manual.
I see that in post-X11R6 times I am still allowed to remap (or disable) single keys using a custom /etc/udev/hwdb.d/61-keyboard-local.hwdb like so:
evdev:input:b003v*
KEYBOARD_KEY_2=1
KEYBOARD_KEY_3=2
KEYBOARD_KEY_4=reserved
KEYBOARD_KEY_5=4
# ...
But if I wanted to enforce my mapping for every possible key, that file would get rather large:
evdev:input:b003v*
KEYBOARD_KEY_00000001=reserved
KEYBOARD_KEY_00000002=reserved
# ... 4 billion lines
KEYBOARD_KEY_ffffffff=reserved
Can I instead start from a blank map, so keys not explicitly mentioned remain unhandled?
Likely not a solution: 60-keyboard.hwdb mentions a special key code to symbol configuration.. but that appears to be little more than a shortcut to write a /etc/X11/xorg.conf.d/00-keyboard.conf and /etc/vconsole.conf file, with apparently no effect on gdm & gnome.