最近 Tracer 给我送了一个崭新漂亮的键盘,但很快就遇到了问题。问题是我的键盘快捷键无法使用(ctrl + alt + t ; alt + v 以及 alt + letter(用于标记非英语语言中的重音符号),而是显示大写字母。更奇怪的是,如果我在相同的系统设置下插入旧键盘,一切都正常。如果同时连接两个键盘,也会发生同样的情况:新键盘拒绝使用快捷键,旧键盘则正常。
感谢帮助!
使用新键盘的终端响应(ctrl + alt + t):
KeyPress event, serial 34, synthetic NO, window 0x4400001,
root 0x29c, subw 0x0, time 10285559, (-312,171), root:(485,223),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4400001,
root 0x29c, subw 0x0, time 10285894, (-312,171), root:(485,223),
state 0x11, keycode 28 (keysym 0x54, T), same_screen YES,
XLookupString gives 1 bytes: (54) "T"
XmbLookupString gives 1 bytes: (54) "T"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4400001,
root 0x29c, subw 0x0, time 10285999, (-312,171), root:(485,223),
state 0x11, keycode 28 (keysym 0x54, T), same_screen YES,
XLookupString gives 1 bytes: (54) "T"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4400001,
root 0x29c, subw 0x0, time 10286071, (-312,171), root:(485,223),
state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
EnterNotify event, serial 37, synthetic NO, window 0x4400001,
root 0x29c, subw 0x0, time 10286872, (94,112), root:(891,164),
mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
focus YES, state 16
使用旧键盘的终端响应(ctrl + alt + t):
KeyPress event, serial 37, synthetic NO, window 0x4800001,
root 0x29c, subw 0x0, time 10345696, (-306,330), root:(491,382),
state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 38, synthetic NO, window 0x4800001,
root 0x29c, subw 0x0, time 10345796, (-306,330), root:(491,382),
state 0x14, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4800001,
root 0x29c, subw 0x0, time 10346043, (-306,330), root:(491,382),
state 0x1c, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4800001,
root 0x29c, subw 0x0, time 10346054, (-306,330), root:(491,382),
state 0x14, keycode 28 (keysym 0x74, t), same_screen YES,
XLookupString gives 1 bytes: (14) ""
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x4800001,
root 0x29c, subw 0x0, time 10346072, (-306,330), root:(491,382),
state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
lsusb 按要求
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 002 Device 002: ID 1a2c:002f China Resource Semico Co., Ltd
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
在 Windows 机器上,这款键盘工作正常。是的,我正在使用 16.04 - 我很喜欢这个老家伙 ;)