You are not logged in.

#1 2016-11-24 11:46:34

nicholat
Member
Registered: 2015-08-05
Posts: 35

Optical USB mouse keeps disconnecting

I've used this mouse for a long time now, so it might be hardware failure, but not really sure how to proceed to find out. It intermittently stops working, and starts working again when I leave it alone for some time or plug it into a different USB port, but soon stops working again. Based on some similar posts and replies I found, I figure the output of

dmesg | tail -20

is useful, but not really sure what to read from it:

[71633.939918] usb 3-1: new high-speed USB device number 55 using xhci_hcd
[71645.100754] usb 3-1: new high-speed USB device number 82 using xhci_hcd
[71901.966018] usb 3-1: new high-speed USB device number 101 using xhci_hcd
[111885.546925] usb 3-1: new high-speed USB device number 71 using xhci_hcd
[114574.771621] usb 3-9: USB disconnect, device number 14
[114575.078311] usb 3-9: new low-speed USB device number 11 using xhci_hcd
[114575.216820] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:046D:C03D.002B/input/input64
[114575.216955] hid-generic 0003:046D:C03D.002B: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-9/input0
[114681.186167] usb 3-9: USB disconnect, device number 11
[114683.132834] usb 3-6: new low-speed USB device number 124 using xhci_hcd
[114683.272027] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:046D:C03D.002C/input/input65
[114683.272356] hid-generic 0003:046D:C03D.002C: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-6/input0
[114748.420899] usb 3-6: USB disconnect, device number 124
[114748.714211] usb 3-6: new low-speed USB device number 44 using xhci_hcd
[114748.853182] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:046D:C03D.002D/input/input66
[114748.853454] hid-generic 0003:046D:C03D.002D: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-6/input0
[116840.785772] usb 3-6: USB disconnect, device number 44
[116841.085616] usb 3-6: new low-speed USB device number 25 using xhci_hcd
[116841.224401] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:046D:C03D.002E/input/input67
[116841.224663] hid-generic 0003:046D:C03D.002E: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-6/input0

Any help is appreciated.

Last edited by nicholat (2016-11-24 11:46:59)

Offline

#2 2016-11-24 13:35:11

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: Optical USB mouse keeps disconnecting

Looks like you may have a lot of devices on same controller, please post lsusb & lsusb -t output.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-11-24 16:05:36

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: Optical USB mouse keeps disconnecting

Also may be powersaving?
Is this a mobile pc and do you use eg. powertop to suspend the usb bus if unneeded (the mouse should wake it, but that may fail for several reasons)

Offline

#4 2016-11-24 16:52:38

nicholat
Member
Registered: 2015-08-05
Posts: 35

Re: Optical USB mouse keeps disconnecting

The output of lsusb:

Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04f2:b43b Chicony Electronics Co., Ltd 
Bus 003 Device 004: ID 8087:07dc Intel Corp. 
Bus 003 Device 025: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The output of lsusb -t:

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 6: Dev 25, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 7: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 8: Dev 5, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 5, If 1, Class=Video, Driver=uvcvideo, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

As for powersaving, that would be strange, since I haven't changed any power settings in a long time, and the problem appeared earlier this week. It's a laptop, but I don't use powertop or anything similar.

Offline

#5 2016-11-24 20:43:00

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: Optical USB mouse keeps disconnecting

Install powertop and change the present state of usb suspension. If active, try to disable it.
Wild shot, though.

Offline

#6 2016-11-25 00:09:58

nicholat
Member
Registered: 2015-08-05
Posts: 35

Re: Optical USB mouse keeps disconnecting

I'm not really sure that is the problem, but if anyone else seconds that, I will try it. Here is some more output from dmesg, including some error messages not included in my first post:

[159124.179786] usb 3-2: new high-speed USB device number 126 using xhci_hcd
[159129.536849] usb 3-2: new high-speed USB device number 127 using xhci_hcd
[159131.880330] usb 3-2: new high-speed USB device number 12 using xhci_hcd
[159131.993709] usb 3-2: Device not responding to setup address.
[159132.200432] usb 3-2: Device not responding to setup address.
[159132.407080] usb 3-2: device not accepting address 12, error -71
[159132.710418] usb 3-2: new high-speed USB device number 14 using xhci_hcd
[159138.070817] usb 3-2: new high-speed USB device number 15 using xhci_hcd
[159138.184200] usb 3-2: Device not responding to setup address.
[159138.390876] usb 3-2: Device not responding to setup address.
[159138.597480] usb 3-2: device not accepting address 15, error -71
[159138.900864] usb 3-2: new high-speed USB device number 17 using xhci_hcd
[159139.014315] usb 3-2: Device not responding to setup address.
[159139.220836] usb 3-2: Device not responding to setup address.
[159139.427578] usb 3-2: device not accepting address 17, error -71
[159139.730907] usb 3-2: new high-speed USB device number 19 using xhci_hcd
[159140.514234] usb 3-2: new high-speed USB device number 22 using xhci_hcd
[159140.627674] usb 3-2: Device not responding to setup address.
[159140.834385] usb 3-2: Device not responding to setup address.
[159141.040962] usb 3-2: device not accepting address 22, error -71
[159141.344344] usb 3-2: new high-speed USB device number 24 using xhci_hcd
[159141.457811] usb 3-2: Device not responding to setup address.
[159141.664379] usb 3-2: Device not responding to setup address.
[159141.871048] usb 3-2: device not accepting address 24, error -71
[159142.174446] usb 3-2: new high-speed USB device number 26 using xhci_hcd
[159142.287830] usb 3-2: Device not responding to setup address.
[159142.494480] usb 3-2: Device not responding to setup address.
[159142.701108] usb 3-2: device not accepting address 26, error -71
[159143.004467] usb 3-2: new high-speed USB device number 28 using xhci_hcd
[159143.177626] usb 3-2: USB disconnect, device number 28
[159143.907896] usb 3-2: new high-speed USB device number 31 using xhci_hcd
[159149.411639] usb 3-2: new high-speed USB device number 32 using xhci_hcd
[159660.418576] usb 3-6: USB disconnect, device number 65
[159660.711877] usb 3-6: new low-speed USB device number 75 using xhci_hcd
[159660.850517] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:046D:C03D.003A/input/input79
[159660.850700] hid-generic 0003:046D:C03D.003A: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-6/input0
[159662.155470] usb 3-6: USB disconnect, device number 75
[159662.448778] usb 3-6: new low-speed USB device number 82 using xhci_hcd
[159662.587915] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:046D:C03D.003B/input/input80
[159662.588099] hid-generic 0003:046D:C03D.003B: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-6/input0

Specifically, the messages about device not responding to address and not accepting address, if that is of any more help to anyone.

Offline

#7 2016-11-25 07:24:04

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: Optical USB mouse keeps disconnecting

you could try to blacklist xhci_hcd to enforce USB 2.0 (and see whether that's more reliable)

Offline

#8 2016-11-25 10:41:55

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: Optical USB mouse keeps disconnecting

Nicholat,

Bus 3 is also used by your webcam and bluetooth.
Bus 4 is USB 3 , while bus 1 & 2 have nothing connected to them .

Try to locate the ports connected to bus 1 & 2 and connect the mouse to one of those.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2016-11-25 10:57:22

nicholat
Member
Registered: 2015-08-05
Posts: 35

Re: Optical USB mouse keeps disconnecting

Thanks for the reply. It seems, however, that all 4 USB ports on the laptop are on bus 3; I just tried plugging the mouse into all of them, and lsusb still showed the mouse as connected on bus 3.

Offline

#10 2016-11-25 12:11:08

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Optical USB mouse keeps disconnecting

Stupid question: are you sure it's not the cable? Check in other machine.

If not, probably some kernel issue if it started after an update.

And BTW, blacklisting xhci_hcd will only render all USB 3.0 ports completely unusable. Try it smile

Offline

Board footer

Powered by FluxBB