For some reasons on my Ubuntu 11.04 Natty running Linux 2.6.38-13, with an Italian layout for the keyboard, the keystrokes
AltFx switch between virtual consoles (instead of the normal CtrlAltFx keys).
What could I change to avoid that?
I tried adding
Section "Serverflags"
Option "DontVTSwitch" "on"
EndSection
Section "InputClass"
Identifier "keyboard defaults"
MatchIsKeyboard "on"
Option "XKbOptions" "srvrkeys:none"
EndSection
to the /etc/X11/xorg.conf
file but to no avail. Is there an xmodmap
setting that I could use?
Best Answer
man xmodmap:
According to the arch wiki the fields are used like so:
However, when I run xmodmap -pke I get that the seventh field is assigned to switching the between VTs:
keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1
This will vary depending on which types your current layout is configured with. Do get the default, try running:
It may also be the case that your window manager or desktop environment (kde, gnome) steals those keys and switches between VTs like you say.