Linux: Find Keyboard Key Scancode
How find the scancode of a key?
- First, switch to Virtual Console. [see Linux: How to use Virtual Console]
- Then, type
- Then, type any key, it'll print its scancode in hexadecimal.
- To exit, just wait for 10 seconds.
Note: you must switch to virtual console for this to work. Normal terminal won't work.
man showkey and