Key Codes for setkeycodes

William Case billlinux at
Mon Dec 12 21:06:52 UTC 2005

Hi Dotan;

You have taken on a major project.  Setting new key values can be simple
for something like readline for use on the command line to very complex
like working with scancodes.  I am currently working my way through all
the ramifications of keyboards and I am willing to help but I have to
understand *exactly* what you are trying to do.  See below.

On Mon, 2005-12-12 at 22:46 +0200, Dotan Cohen wrote:
> Back on my own machine!
> What are the key codes for 'setkeycodes'? I have a few buttons on my
> keyboard that I would like to enable. When I press them in a console,
> I get an error which tells me to set them with setkeycodes. However,
> "man setkeycodes" had no information as to what keycodes do what
> (specifically, scroll up and down). Googling led me the command
> getkeycodes, which despite its name, didn't provide me with any useful
> information. And showkey just scared me out of any further
> experimentation!
> Dotan Cohen

Are you trying to change your key's output for:
a) readline
b) Linux (core or kernel)
c) Xwindows
d) Gnome or KDE.

Each case is different, the Linux level for example is the most basic
but can be overridden by the setup for Xwindows (xmodmap) or a desktop
(Gnome or KDE) - sometimes.

Regards Bill

More information about the fedora-list mailing list