I'm trying to find out the scancodes for a set of foot pedals so that I can rebind them to more useful keys. In older versions of Ubuntu I was able to do this using
/lib/udev/keymap as discussed here, but the program seems to no longer exist! Luckily I still know what the scancodes are for my specific hardware so I can still get everything working, but I want to write a post about how to set up foot pedals.
The arch-linux wiki suggests using
showkey --scancodes but that seems to give me the wrong numbers (by comparing with the known, working scancodes that I'm currently using in my
hex decimal scancode used in config 0x70004 458756 showkey -s output 0x5d 91 xev keycode 191
since it's similar to the X keycode I guess that X11 is interfering somewhere.
Is there an alternative way of finding the scancodes? Preferably one that doesn't involve using virtual consoles.