Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB mouse disconnecting
Date: Sun, 13 Jan 2019 17:50:28
Message-Id: 3PREC7J2.NJ4KETUF.E3E6JL2T@WPFTQBCG.X7WFJPJH.575SU6MT
In Reply to: [gentoo-user] USB mouse disconnecting by Pouru Lasse
1 On 2019.01.13 07:30, Pouru Lasse wrote:
2 > For the past few weeks I've had strange issues with my USB mouse
3 > randomly disconnecting and reconnecting right afterwards. At first I
4 > thought it might be the USB port dying, but it happens with multiple
5 > USB ports (both USB 2 and 3) and two different Logitech mice. I
6 > haven't noticed any issues with other USB devices.
7 >
8 > Is this more likely a hardware or a software problem? I'm on kernel
9 > 4.14.83 and I'm pretty sure the problems didn't start right after the
10 > update, although it's hard to tell because the disconnects seem
11 > completely random and don't even happen every day. Dmesg output looks
12 > something like this, sometimes with multiple disconnects in a row,
13 > with the device number being incremented each time:
14 >
15 > [41235.377257] usb 3-2: USB disconnect, device number 17
16 > [41235.645027] usb 3-2: new low-speed USB device number 18 using
17 > xhci_hcd
18 > [41235.778228] usb 3-2: New USB device found, idVendor=046d,
19 > idProduct=c01e
20 > [41235.778232] usb 3-2: New USB device strings: Mfr=1, Product=2,
21 > SerialNumber=0
22 > [41235.778234] usb 3-2: Product: USB-PS/2 Optical Mouse
23 > [41235.778236] usb 3-2: Manufacturer: Logitech
24 > [41235.783149] input: Logitech USB-PS/2 Optical Mouse as
25 > /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:046D:C01E.001A/input/input41
26 > [41235.783504] hid-generic 0003:046D:C01E.001A: input,hidraw0: USB
27 > HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on
28 > usb-0000:00:14.0-2/input0
29 >
30 > Less often there are also errors like:
31 >
32 > [13844.911317] usb 3-2: device not accepting address 15, error -71
33 > [13844.911362] usb usb3-port2: unable to enumerate USB device
34 >
35 > and:
36 >
37 > [42555.126541] usb 3-2: reset low-speed USB device number 18 using
38 > xhci_hcd
39 > [42555.382373] usb 3-2: device descriptor read/64, error -71
40 > [42555.763574] usb 3-2: device descriptor read/all, error -71
41 > [42556.022536] usb 3-2: reset low-speed USB device number 18 using
42 > xhci_hc
43 >
44 > Usually the mouse starts working again right away, but sometimes I
45 > need to switch it to another port despite it being visible in lsusb.
46 > This, I guess, has something to do with the device number changing.
47 >
48 > One thing I suspected was USB power management, but as far as I know
49 > I haven't enabled any such options, at least not on purpose.
50 >
51 > - Lasse
52 I've been having a similar issue, but it never resolves by itself - I
53 have to unplug and re-plug the mouse, although I can use the same
54 port. However, I do not get any of those error messages, just the
55 disconnects.
56
57 [216909.342190] usb 3-2: USB disconnect, device number 40
58 [216910.812144] usb 3-2: new low-speed USB device number 41 using
59 uhci_hcd
60 [216911.007267] input: PixArt DynexWired USB Optical Mouse as
61 /devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:19FF:0238.002F/input/input66
62 [216911.007352] hid-generic 0003:19FF:0238.002F: input,hidraw4: USB HID
63 v1.11 Mouse [PixArt DynexWired USB Optical Mouse] on
64 usb-0000:00:1a.0-2/input0
65
66 It seems to most commonly occur when switching between X and one of the
67 text consoles, but not consistently. I'm on kernel 4.20.0, but it was
68 the same with several 4.19 kernels also.
69
70 I wonder if any of the kernel USB parameters might be involved here.
71
72 Jack

Replies

Subject Author
Re: [gentoo-user] USB mouse disconnecting Dale <rdalek1967@×××××.com>