Ubuntu Mate 16.04.4 中的 USB 设备(轨迹球和 PS2 转 USB 键盘)停止响应

Ubuntu Mate 16.04.4 中的 USB 设备(轨迹球和 PS2 转 USB 键盘)停止响应

我正面临线程中描述的问题:https://ubuntuforums.org/showthread.php?t=2342985

它会影响 Logitech 轨迹球和键盘。

我的问题是我不知道该怎么做:怪癖 HID_QUIRK_ALWAYS_POLL (0x00000400),上面的链接中提到过。

在哪里我应该寻找正确的文件来更改某物?我正在使用 Ubuntu Mate。

lsusb对于这两个设备,结果为:

Bus 002 Device 009: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 002 Device 010: ID 0a81:0205 Chesen Electronics Corp. PS/2 Keyboard+Mouse Adapter

tlp-stat -u对于这两个设备,结果为:

Bus 002 Device 009 ID 046d:c404 control = on,   autosuspend_delay_ms = -1000 -- Logitech, Inc. TrackMan Wheel (usbhid)
Bus 002 Device 010 ID 0a81:0205 control = on,   autosuspend_delay_ms = -1000 -- Chesen Electronics Corp. PS/2 Keyboard+Mouse Adapter (usbhid)

uname -ra给出

Linux dell 4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

我认为问题与自动暂停无关,而与特定设备的缓冲区溢出有关,因为内核代码不支持它们。

更新 1

不幸的是,这不是答案,而是指向另一个方向,即 BIOS。即使在执行lsusb命令时在 Ubuntu Mate 中检测到 USB 轨迹球,轨迹球也可能由于 BIOS 问题而出现故障。检查以下命令的输出,尤其是末尾的几行。

$ dmesg | grep 2-1.2   
 [    1.900039] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
 [    2.020547] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
 [    2.020554] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 [    2.020559] usb 2-1.2: Product: Trackball
 [    2.020564] usb 2-1.2: Manufacturer: Logitech
 [    2.033380] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0001/input/input8
 [    3.488019] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
 [    3.789745] usb 2-1.2: device firmware changed
 [    3.790112] usb 2-1.2: USB disconnect, device number 4
 [    3.924089] usb 2-1.2: new low-speed USB device number 6 using ehci-pci
 [    4.040117] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
 [    4.040124] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 [    4.040129] usb 2-1.2: Product: Trackball
 [    4.040133] usb 2-1.2: Manufacturer: Logitech
 [    4.044948] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0002/input/input10
 [    5.800078] usb 2-1.2: reset low-speed USB device number 6 using ehci-pci
 [    7.844136] usb 2-1.2: reset low-speed USB device number 6 using ehci-pci
 [    8.145979] usb 2-1.2: device firmware changed
 [    8.146222] usb 2-1.2: USB disconnect, device number 6
 [    8.264032] usb 2-1.2: new low-speed USB device number 7 using ehci-pci
 [    8.381466] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
 [    8.381473] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 [    8.381478] usb 2-1.2: Product: Trackball
 [    8.381483] usb 2-1.2: Manufacturer: Logitech
 [    8.388461] usbhid 2-1.2:1.0: can't add hid device: -32
 [    8.388469] usbhid: probe of 2-1.2:1.0 failed with error -32

更新 2

我觉得这很重要,所以我发布它

由于某种原因,轨迹球还活着 -到目前为止至少有 20 分钟- 因此我再次执行了该命令dmesg | grep 2-1.2来检查轨迹球正常运行时输出的内容:

[    1.896048] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
[    2.010037] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    2.010039] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.010040] usb 2-1.2: Product: Trackball
[    2.010042] usb 2-1.2: Manufacturer: Logitech
[    2.021341] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0001/input/input8

更新 3

dmesg | grep 2-1.2以下是当 USB 轨迹球设备完全没有响应时命令的输出:

[    1.851702] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0001/input/input8

[    1.908511] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0002/input/input9
[    1.912113] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
[    2.029673] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    2.029680] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.029685] usb 2-1.2: Product: Trackball
[    2.029689] usb 2-1.2: Manufacturer: Logitech
[    2.034921] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0003/input/input10
[ 1872.440676] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2458.374411] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2458.642416] usb 2-1.2: device descriptor read/64, error -32
[ 2472.750656] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2496.911127] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2706.502301] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2706.770215] usb 2-1.2: device descriptor read/64, error -32

当 USB 轨迹球恢复正常时,相同命令的输出如下:

[    1.851702] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0001/input/input8
[    1.908511] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0002/input/input9
[    1.912113] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
[    2.029673] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    2.029680] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.029685] usb 2-1.2: Product: Trackball
[    2.029689] usb 2-1.2: Manufacturer: Logitech
[    2.034921] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0003/input/input10
[ 1872.440676] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2458.374411] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2458.642416] usb 2-1.2: device descriptor read/64, error -32
[ 2472.750656] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2496.911127] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2706.502301] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2706.770215] usb 2-1.2: device descriptor read/64, error -32
[ 2720.342390] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2744.194663] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4084.945618] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4174.840297] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4277.658573] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0004/input/input21
[ 4277.726031] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0005/input/input22
[ 4408.074526] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4533.168035] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0006/input/input23
[ 4533.243550] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0007/input/input24
[ 4597.074360] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4629.927191] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4728.505113] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4877.560053] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0008/input/input25
[ 4877.631227] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0009/input/input26
[ 4926.383190] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4928.815665] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2720.342390] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 2744.194663] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4084.945618] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4174.840297] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4277.658573] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0004/input/input21
[ 4277.726031] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0005/input/input22
[ 4408.074526] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[ 4533.168035] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A81:0205.0006/input/input23
[ 4533.243550] input: CHESEN PS2 to USB Converter as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:0A81:0205.0007/input/input24

答案1

我觉得这很重要,所以我发布它

由于某种原因,轨迹球还活着 -到目前为止至少有 20 分钟- 因此我再次执行了该命令dmesg | grep 2-1.2来检查轨迹球正常运行时输出的内容:

[    1.896048] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
[    2.010037] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    2.010039] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.010040] usb 2-1.2: Product: Trackball
[    2.010042] usb 2-1.2: Manufacturer: Logitech
[    2.021341] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0001/input/input8

答案2

不幸的是,这不是答案,而是指向另一个方向,即 BIOS。即使在执行lsusb命令时在 Ubuntu Mate 中检测到 USB 轨迹球,轨迹球也可能由于 BIOS 问题而出现故障。检查以下命令的输出,尤其是末尾的几行。

$ dmesg | grep 2-1.2  
[    1.900039] usb 2-1.2: new low-speed USB device number 4 using ehci-pci
[    2.020547] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    2.020554] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.020559] usb 2-1.2: Product: Trackball
[    2.020564] usb 2-1.2: Manufacturer: Logitech
[    2.033380] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0001/input/input8
[    3.488019] usb 2-1.2: reset low-speed USB device number 4 using ehci-pci
[    3.789745] usb 2-1.2: device firmware changed
[    3.790112] usb 2-1.2: USB disconnect, device number 4
[    3.924089] usb 2-1.2: new low-speed USB device number 6 using ehci-pci
[    4.040117] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    4.040124] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.040129] usb 2-1.2: Product: Trackball
[    4.040133] usb 2-1.2: Manufacturer: Logitech
[    4.044948] input: Logitech Trackball as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:046D:C404.0002/input/input10
[    5.800078] usb 2-1.2: reset low-speed USB device number 6 using ehci-pci
[    7.844136] usb 2-1.2: reset low-speed USB device number 6 using ehci-pci
[    8.145979] usb 2-1.2: device firmware changed
[    8.146222] usb 2-1.2: USB disconnect, device number 6
[    8.264032] usb 2-1.2: new low-speed USB device number 7 using ehci-pci
[    8.381466] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c404
[    8.381473] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.381478] usb 2-1.2: Product: Trackball
[    8.381483] usb 2-1.2: Manufacturer: Logitech
[    8.388461] usbhid 2-1.2:1.0: can't add hid device: -32
[    8.388469] usbhid: probe of 2-1.2:1.0 failed with error -32

相关内容