Understanding and setting up the keyboard driver

How it works

The keyboard driver is made up several levels:

The keyboard driver can be in one of 4 modes (which you can access using kbd_mode(1)), which will influence what type of data applications will get as keyboard input:

BE WARNED that putting the keyboard in RAW or MEDIUMRAW mode will make it unusable for most applications. Use showkey(1) to get a demo of these special modes, or to find out what scancodes/keycodes are produced by a specific key.

See also

keytables(5), setleds(1), setmetamode(1).