我有一个 USB 游戏键盘(前段时间在 aliexpress 上买的),带英文键。它在 Windows 上运行完美,即使是西班牙语配置。
问题是在 Linux 上,这些Ctrl Alt AltGr键不起作用,它们都被检测为左键Shift。这是 xev 退出:
KeyPress event, serial 36, synthetic NO, window 0x2800001,
root 0xcd, subw 0x0, time 189078, (97,87), root:(1057,627),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x2800001,
root 0xcd, subw 0x0, time 189150, (97,87), root:(1057,627),
state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x2800001,
root 0xcd, subw 0x0, time 189294, (97,87), root:(1057,627),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x2800001,
root 0xcd, subw 0x0, time 189366, (97,87), root:(1057,627),
state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x2800001,
root 0xcd, subw 0x0, time 189990, (97,87), root:(1057,627),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
这是输出lsusb
:
Bus 002 Device 004: ID 0c45:7603 Microdia
Bus 002 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 003: ID 0e8f:0021 GreenAsia Inc. Multimedia Keyboard Controller
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
这是输出xinput
:
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PixArt USB Optical Mouse id=10 [slave pointer (2)]
⎜ ↳ SONiX USB Keyboard id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ GASIA USB MSN KB id=9 [slave keyboard (3)]
↳ SONiX USB Keyboard id=11 [slave keyboard (3)]
↳ Eee PC WMI hotkeys id=13 [slave keyboard (3)]
我使用 Ubuntutu 16.04,但在旧版本中也存在同样的问题。我尝试了一些修复方法并使用了 gnome tweak 工具,但都没有用。
有什么想法吗?
--编辑:我刚刚修复了安装此驱动程序的问题https://bitbucket.org/Swoogan/aziokbd 在 Ubuntu 18 64 位上运行。