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.
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.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.