Estou enfrentando o problema descrito no tópico: link
Afeta o trackman & trackman da Logitech o teclado.
E meu problema é que não sei como fazer: peculiar HID_QUIRK_ALWAYS_POLL (0x00000400) , mencionado no link acima.
onde devo procurar o arquivo adequado para alterar algo ? Eu estou usando o Ubuntu Mate.
lsusb
para os 2 dispositivos fornece:
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
para os 2 dispositivos fornece:
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
dá
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
Eu acho que o problema não está relacionado com o autosuspend, mas sim com o estouro de buffer para os dispositivos específicos, porque eles não são suportados no código do kernel.
Atualização 1
Isso infelizmente não é uma resposta, mas aponta para começar a procurar outra direção, ou seja, o BIOS. Embora o trackball USB seja detectado no Ubuntu Companion ao executar o comando lsusb
, o trackball provavelmente se comporta mal devido a um problema com o BIOS. Verifique a saída do seguinte comando, especialmente as linhas no final.
$ 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
Atualização 2
IMO isso é importante, então estou postando
Por alguma razão, o Trackball está ativo - por pelo menos 20 'até agora - então eu executei o comando dmesg | grep 2-1.2
novamente para verificar o que ele dá na saída quando o trackball funciona corretamente:
[ 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
Atualização 3
Abaixo está a saída do comando dmesg | grep 2-1.2
quando o dispositivo USB Trackball não responde:
[ 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
E abaixo da saída do mesmo comando quando o USB Trackball está de volta à vida:
[ 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