Отключение или изменение клавиш переключения консоли

Отключение или изменение клавиш переключения консоли

По каким-то причинам на моем Ubuntu 11.04 Natty под управлением Linux 2.6.38-13 с итальянской раскладкой клавиатуры нажатия клавиш AltFxпереключают виртуальные консоли (вместо обычных CtrlAltFxклавиш).

Что я могу изменить, чтобы этого избежать?

Я попробовал добавить

Section "Serverflags"
Option "DontVTSwitch" "on"
EndSection

Section "InputClass"
     Identifier "keyboard defaults"
     MatchIsKeyboard "on"
     Option "XKbOptions" "srvrkeys:none"
EndSection

в /etc/X11/xorg.confфайл, но безрезультатно. Есть ли xmodmapнастройка, которую я мог бы использовать?

решение1

man xmodmap:

 EXPRESSION GRAMMAR
 keycode NUMBER = KEYSYMNAME ...<br>

 The list of keysyms is assigned to the indicated keycode (which may 
 be specified in decimal, hex or octal and can be determined by 
 running the xev program). Up to eight keysyms may be attached to a 
 key, however the last four are not used in any major X server 
 implementation. The first keysym is used when no modifier key 
 is pressed in conjunction with this key, the second with Shift, 
 the third when the Mode_switch key is used with this key and the 
 fourth when both the Mode_switch and Shift keys are used.

Согласноарх википоля используются следующим образом:

  1. Ключ
  2. Shift+Клавиша
  3. переключатель_режима+Клавиша
  4. mode_switch+Shift+Клавиша
  5. AltGr+Клавиша
  6. AltGr+Shift+Клавиша

Однако, когда я бегуxmodmap -pkeЯ понимаю, чтоседьмойполе предназначено для переключения между VT:

код клавиши 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1

Это будет зависеть от того, какойтипыВаш текущий макет настроен с помощью. Получите значение по умолчанию, попробуйте запустить:

setxkbmap -v -types complete it
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Warning! Multiple definitions of types
         Using command line, ignoring rules file
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+it+inet(evdev)
geometry:   pc(pc104)


Также может быть так, что ваш оконный менеджер или среда рабочего стола (kde, gnome) крадет эти клавиши и переключается между виртуальными машинами, как вы говорите.

Связанный контент