Section: (8) Updated: July 2005 Local index
input-kbd - print or modify keyboard maps for input devices
input-kbd [-f file] devnr
input-kbd prints the keyboard map of kernel input device
devnr on stdout.
The keyboard map maps scancodes to keycodes.
If the device supports a keyboard map,
it is printed in the following format
(from the output for an AT keyboard):
0x0001 = 67 # KEY_F9
0x0002 = 65 # KEY_F7
0x0003 = 63 # KEY_F5
0x0004 = 61 # KEY_F3
If the device does not support a keyboard map,
input-kbd just lists the keys and buttons supported by the device,
like this (for a mouse):
The index of the input device to use (0 for /dev/input/event0 and so on).
- -f file
Read a keyboard map from a file and reconfigure the device with this map.
The map file uses the same format as the output of this command.
Key names are also accepted instead of keycodes, like this:
0x0001 = KEY_F9
This document was created by
using the manual pages.
Time: 22:01:48 GMT, April 16, 2011