콘솔 전환 키 비활성화 또는 변경

콘솔 전환 키 비활성화 또는 변경

몇 가지 이유로 키보드에 이탈리아어 레이아웃이 있는 Linux 2.6.38-13을 실행하는 Ubuntu 11.04 Natty에서 키 입력이 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

남자 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. 모드 스위치+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)이 귀하가 말한 것처럼 해당 키와 VT 간 스위치를 훔치는 경우도 있을 수 있습니다.

관련 정보