罗技游戏鼠标 G400 经常随机断开连接。在下面报告的事件中,它在 5.9 小时后断开连接。
我已经:
拆开鼠标,拉绳子进入老鼠体内几厘米
将鼠标列入黑名单usb 自动暂停:
# in /etc/udev/rules.d/50-usb_power_save.rules # blacklist for usb autosuspend ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9205", GOTO="power_usb_rules_end" ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto" LABEL="power_usb_rules_end"
设置内核启动参数:
acpi=off
和usbcore.autosuspend=-1
/var/log/Xorg.0.log
报告
[ 21216.637] (II) config/udev: removing device Logitech Gaming Mouse G400
[ 21216.637] (II) event1 - Logitech Gaming Mouse G400: device removed
[ 21216.715] (II) UnloadModule: "libinput"
和dmesg
报告
[21217.938985] usb 1-2: USB disconnect, device number 2
[21219.088604] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[21219.216597] usb 1-2: new full-speed USB device number 7 using xhci_hcd
[21219.828647] usb 1-2: device descriptor read/64, error -71
[21220.756698] usb 1-2: device descriptor read/64, error -71
[21220.864727] usb usb1-port2: attempt power cycle
[21221.792756] usb 1-2: new full-speed USB device number 8 using xhci_hcd
[21221.792877] usb 1-2: Device not responding to setup address.
[21222.000895] usb 1-2: Device not responding to setup address.
[21222.208774] usb 1-2: device not accepting address 8, error -71
[21222.612804] usb 1-2: new full-speed USB device number 9 using xhci_hcd
[21222.612907] usb 1-2: Device not responding to setup address.
[21222.820919] usb 1-2: Device not responding to setup address.
[21223.028823] usb 1-2: device not accepting address 9, error -71
[21223.028867] usb usb1-port2: unable to enumerate USB device
位于弯曲处的电缆较粗部分确实已经损坏,但将电缆拉入鼠标几厘米似乎已经解决了问题;如果我断开与 USB 端口的连接并重新连接,鼠标就可以再次工作。此外,即使电缆仍然存在一些问题,从dmesg
上面的报告来看,它似乎很快就回到了原位,并尝试重新连接。
为什么重新连接没有报告dmesg
成功,该怎么办?