每当我按下外接 USB 键盘上的按钮时,它们都会被按下多次(如标题所示)。我的联想 T460s 上的内置键盘工作正常。
- 从 USB 启动的 Live 发行版:同样的问题
- 测试的内核:4.8.4,当前为 4.10.0-041000-generic
- 更新了联想 BIOS/UEFI (1.22)
- Ubuntu 16.04.02 LTS
- 键盘:Coolermaster MasterKeys S(似乎适用于 Linux 上的其他键盘)
- 其他 USB 键盘(Logitech)工作正常
- 尝试了所有 USB 端口(基座、直接)
- 当我插入键盘时它工作了第一次。
- 设置键盘设置以禁用键盘重复,但没有成功
- 当单击快速打字时,它只输入一个字符
没有制造商的是键盘:
$ lsusb
Bus 002 Device 002: ID 17ef:1010 Lenovo
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 138a:0090 Validity Sensors, Inc.
Bus 001 Device 006: ID 04f2:b52c Chicony Electronics Co., Ltd
Bus 001 Device 004: ID 8087:0a2b Intel Corp.
Bus 001 Device 009: ID 2516:003c
Bus 001 Device 007: ID 17ef:100f Lenovo
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 17ef:1010 Lenovo
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ dmesg
[ 43.169824] usb 1-4.4.1: new full-speed USB device number 9 using xhci_hcd
[ 43.269936] usb 1-4.4.1: New USB device found, idVendor=2516, idProduct=003c
[ 43.269937] usb 1-4.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 43.269938] usb 1-4.4.1: Product: MASTERKEYS PRO S with intelligent RGB
[ 43.269939] usb 1-4.4.1: Manufacturer: Cooler Master Technology Inc.
[ 43.790796] input: Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4.1/1-4.4.1:1.0/0003:2516:003C.0005/input/input19
[ 43.854216] hid-generic 0003:2516:003C.0005: input,hidraw2: USB HID v1.11 Keyboard [Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB] on usb-0000:00:14.0-4.4.1/input0
[ 43.854793] hid-generic 0003:2516:003C.0006: hiddev0,hidraw3: USB HID v1.11 Device [Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB] on usb-0000:00:14.0-4.4.1/input1
[ 43.855475] input: Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.4/1-4.4.1/1-4.4.1:1.2/0003:2516:003C.0007/input/input20
[ 43.913950] hid-generic 0003:2516:003C.0007: input,hidraw4: USB HID v1.11 Keyboard [Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB] on usb-0000:00:14.0-4.4.1/input2
$ xinput list
xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech MX Master id=9 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=13 [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)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=14 [slave keyboard (3)]
↳ Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB id=15 [slave keyboard (3)]
↳ Cooler Master Technology Inc. MASTERKEYS PRO S with intelligent RGB id=16 [slave keyboard (3)]
dmesg
在和中出现两次xinput
但没有完全出现是正常的lsusb
吗?可能是因为设备被“安装”了两次,所以“第一个”设备和“第二个”设备会干扰?请帮我找出原因,我快要疯了……很高兴提供更多日志。
答案1
这不是 Ubuntu 或操作系统的问题,只需重置键盘即可解决问题(手册没有说明如何正确重置)。请参阅这篇博文重置键盘(自行格式化):
选项1:
拔下键盘
按 FN+右 Alt
重新插入键盘(同时按住 FN+右 Alt 键)
à 此选项应使键盘恢复到出厂设置/演示模式。
选项 2:
保持键盘插入 PC
按住 FN+E 约 3 至 5 秒
Ã此选项将清除键盘板载内存