getkeycodes command in Linux is used to print the kernel scancode-to-keycode mapping table. This command has no option. setkeycodes command can be used to change the mappings.
Syntax:
getkeycodes
Example:
In the above image:
- The scan values from 0x50 to 0x7f is translated to the decimal values. For example, 0x54 is mapped to decimal value 99.
- The scan code values from 0x01 to 0x53 is directly mapped to the keycode.
Article Tags :