On 7 Sep 2001 17:46:18 -0700, Tony C staggered into the Black Sun and
>I'm running Red Hat 7.1 with 2.4.9. Everything works fairly well, as
>far as I'm able to determine. However, when I try to change virtual
>terminals, only the left ALT key caues vitrual terminals to switch.
>Why doesn't the right ALT key work ? Is there an easy fix for this ?
The right ALT is by default mapped not to "Alt" on the console, but to
"AltGr". Pressing right-Alt generates keycode 100 on the console, while
pressing left-Alt generates keycode 56. While doing "dumpkeys | more",
you will probably see that keycode 56 is mapped to Alt while keycode 100
is mapped to AltGr.
For a permanent fix, you can edit /usr/lib/kbd/keymaps/$FOO , where $FOO
depends on the architecture of the machine and the keyboard layout and
such. On my machine, $FOO = i386/qwerty/us.map.gz . Put something in
there like so:
keycode 100 = Alt
shift altgr keycode 100 = VoidSymbol
That should do it for the console. X is another matter entirely; there
you would need to do something like
xmodmap -e 'keycode 113 = Alt_L'
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / That which does not kill us
http://www.brainbench.com / makes us stranger.
-----------------------------/ --Trevor Goodchild, "AEon Flux"