我们无法在 Rocky Linux 上从 X 切换到虚拟终端。xmodmap -pke
结果dumpkeys
与 CentOS 7 相同。Rocky上的Ctrl++ (如下)没有效果。有效。虚拟终端之间Alt的切换按预期工作。我们尝试了不同的键盘。F6chvt
xev
在 CentOS 7 上还显示一个VisibilityNotify
事件(在Control+L和Alt+之后L)并且 KeyRelease 是针对F6- 而不是 XF86Switch_VT_6。
xev
在 Rocky Linux 上:
KeyPress event, serial 38, synthetic NO, window 0x800001,
root 0x17e, subw 0x0, time 3843595, (195,941), root:(1265,972),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 41, synthetic NO, window 0x800001,
root 0x17e, subw 0x0, time 3843627, (195,941), root:(1265,972),
state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x800001,
root 0x17e, subw 0x0, time 3845130, (195,941), root:(1265,972),
state 0xc, keycode 72 (keysym 0x1008fe06, XF86Switch_VT_6), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x800001,
root 0x17e, subw 0x0, time 3846507, (195,941), root:(1265,972),
state 0xc, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x800001,
root 0x17e, subw 0x0, time 3846555, (195,941), root:(1265,972),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False*
答案1
我们安装了较新版本的 Rocky Linux,问题就消失了。我认为是从 Rocky-8.4-x86_64 升级到 Rocky-8.5-x86_64。