We are unable to switch from X to a virtual terminal on Rocky Linux. xmodmap -pke and dumpkeys results are the same as CentOS 7. Ctrl+Alt+F6 on Rocky (below) has no effect. chvt works. Switching between virtual terminals works as expected. We tried a different keyboard.
xev on CentOS 7 also shows a VisibilityNotify event (after Control+L and Alt+L) and the KeyRelease is for F6 - not XF86Switch_VT_6.
xev on 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*