大约一周前,我的 USB 鼠标停止工作。插入后,它会显示电源并工作约 1 秒。几个月前,我试用了 16.04,当时它仍处于测试阶段,此后一直在更新,几乎没有出现问题。但是,为了让它在那之后正常工作,我必须使用终端发出
sudo rmmod usbhid
sudo modprobe usbhid
虽然我遇到问题的鼠标并不是那么旧,但这似乎不是新鼠标的问题。
插入鼠标时 lsusb 的输出 - 电源灯亮但没有反应。
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 002: ID 1bcf:2b8a Sunplus Innovation Technology Inc.
Bus 001 Device 005: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
这没有什么大不了的,因为我有一个解决方法,但我有兴趣找出发生这种情况的原因。
dmesg 的输出
[11860.450870] usb 1-2: USB disconnect, device number 4
[11865.825215] usb 1-2: new low-speed USB device number 5 using xhci_hcd
[11865.956965] usb 1-2: New USB device found, idVendor=15d9, idProduct=0a4c
[11865.956968] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[11865.956969] usb 1-2: Product: USB OPTICAL MOUSE
[11865.957078] usb 1-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[11865.959228] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:15D9:0A4C.0003/input/input18
[11865.959383] hid-generic 0003:15D9:0A4C.0003: input,hidraw1: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-0000:00:14.0-2/input0
[11866.472640] usb 1-2: input irq status -75 received
[11866.480624] usb 1-2: input irq status -75 received
[11866.488650] usb 1-2: input irq status -75 received
[11866.496634] usb 1-2: input irq status -75 received
[11866.504634] usb 1-2: input irq status -75 received
[11866.512614] usb 1-2: input irq status -75 received
[11866.520655] usb 1-2: input irq status -75 received
[11866.528649] usb 1-2: input irq status -75 received
[11866.536634] usb 1-2: input irq status -75 received
[11866.544659] usb 1-2: input irq status -75 received
.
.
.
##### 400+ LINES OF THE SAME ##########
.
.
.
[11913.057603] usb 1-2: input irq status -75 received
[12068.629678] usbcore: deregistering interface driver usbhid
[12076.999960] usbhid: unknown parameter 'id' ignored
[12077.001568] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:15D9:0A4C.0004/input/input19
[12077.001690] hid-generic 0003:15D9:0A4C.0004: input,hidraw1: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-0000:00:14.0-2/input0
[12077.001708] usbcore: registered new interface driver usbhid
[12077.001709] usbhid: USB HID core driver
[12186.835154] usbcore: deregistering interface driver usbhid
[12186.900747] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:15D9:0A4C.0005/input/input20
[12186.956426] hid-generic 0003:15D9:0A4C.0005: input,hidraw1: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-0000:00:14.0-2/input0
[12186.956488] usbcore: registered new interface driver usbhid
[12186.956489] usbhid: USB HID core driver
答案1
这是一个已知的错误,我亲自遇到过它并将其报告给 GNOME 软件开发人员,问题恰恰出在 fwupd 包中。
如果您想解决它并删除 fwupd,请运行:
$ sudo apt remove fwupd
$ sudo killall fwupd
然后重新插入 USB 鼠标,它应该可以正常工作。这是错误报告,请在那里添加您的评论:https://bugzilla.redhat.com/show_bug.cgi?id=1322259
答案2
当我打开 Ubuntu 软件时,我遇到了完全相同的问题!移动鼠标时会出现 400 多行相同的内容,您可以通过运行以下命令来查看:
tail -f /var/log/syslog
如您所见,当您移动它时,将显示新行。我不知道打开 Ubuntu 软件时到底发生了什么,以及它对我的鼠标做了什么。但在关闭 Ubuntu 软件后,从内核中删除并再次添加驱动程序可以修复它。我还尝试将其拔下并再次插入同一端口,但没有希望,但当 Ubuntu 软件关闭时,其他端口可以正常工作。