Gentoo Archives: gentoo-user

From: Mike Edenfield <kutulu@××××××.org>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Intermittent USB device failures
Date: Sun, 17 Aug 2014 01:57:20
Message-Id: 001001cfb9be$87487030$95d95090$@kutulu.org
In Reply to: Re: [gentoo-user] Intermittent USB device failures by Volker Armin Hemmann
1 From: Volker Armin Hemmann [mailto:volkerarmin@××××××××××.com]
2 Sent: Friday, August 15, 2014 7:53 PM
3
4 > Am 14.08.2014 um 03:52 schrieb Mike Edenfield:
5 > > I've recently taken an old Windows XP system and rebuilt it to run Gentoo.
6 Since
7 > > then, I've been having issues using any type of USB input device (which is
8 > > particularly bad, since it has no PS/2 input ports).
9 > >
10 > > After some indeterminate period of time, the input device simply stops
11 responding.
12 > > Typically, I can use the console for a few days at a time before the
13 keyboard dies,
14 > > but if I load up a GUI and start using the mouse it takes less than a few
15 hours.
16 > > I'm fairly sure this problem is USB-related, since I believe I've
17 eliminated
18 > > everything downstream of that: I've tried using both evdev and legacy mouse
19 and
20 > > keyboard drivers in both the kernel and X and all of them work the same
21 way. evtest
22 > > shows no activity from the device once it breaks, nor do the legacy /dev
23 driver files.
24 > >
25 > > Most notably, removing and re-plugging the device doesn't register as a
26 device
27 > > attachment. If, for example, I take a working USB mouse and swap USB ports,
28 I get this:
29 > >
30 > > [ 1219.418050] usb 2-8: USB disconnect, device number 3
31 > > [ 1225.258011] usb 2-7: new low-speed USB device number 4 using ohci-> pci
32 > > [ 1225.449627] usb 2-7: New USB device found, idVendor=046d, idProduct=c044
33 > > [ 1225.449946] usb 2-7: New USB device strings: Mfr=1, Product=2,
34 SerialNumber=0
35 > > [ 1225.450240] usb 2-7: Product: USB-PS/2 Optical Mouse
36 > > [ 1225.450740] usb 2-7: Manufacturer: Logitech
37 > > [ 1225.464165] input: Logitech USB-PS/2 Optical Mouse as
38 > > /devices/pci0000:00/0000:00:0b.0/usb2/2-7/2-7:1.0/input/input6
39 > > [ 1225.464666] hid-generic 0003:046D:C044.0003: input,hidraw1: USB HID
40 v1.10
41 > > Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:0b.0-7/input0
42 > >
43 > > If I do the same thing after the device has stopped functioning, I get the
44 > > disconnect message but that's it:
45 > >
46 > > [199729.451060] i2c i2c-3: sendbytes: NAK bailout.
47 > > [199733.215303] usb 2-7: USB disconnect, device number 4
48 > > [199814.495204] type=1006 audit(1394381639.494:3): pid=5861 uid=0 old
49 > > auid=4294967295 new auid=1000 old ses=4294967295 new ses=2 res=1
50 >
51 > you can use the power button + acpid to reload the usb modules (I hope
52 > you have usb support as modules and not built into the kernel) and see
53 > what happens next time usb acts up.
54
55 Thanks for the suggestion! Fortunately network access to the machine works fine
56 even with the USB down, so I was able to log in and unload/reload the USB
57 modules remotely.
58
59 When I `modprobe -r ochi_pci` while the system is operating normally, I see all
60 four modules (ohci-pci, ohci-hcd, ehci-pci, and ehci-hcd) unloading properly:
61
62 [25603.370000] ohci-pci 0000:00:0b.0: remove, state 1
63 [25603.370395] usb usb2: USB disconnect, device number 1
64 [25603.370414] usb 2-6: USB disconnect, device number 2
65 [25603.383451] usb 2-7: USB disconnect, device number 3
66 [25603.384217] ohci-pci 0000:00:0b.0: USB bus 2 deregistered
67 [25603.384597] ehci-pci 0000:00:0b.1: remove, state 1
68 [25603.384611] usb usb1: USB disconnect, device number 1
69 [25603.386306] ehci-pci 0000:00:0b.1: USB bus 1 deregistered
70
71 If I try to do the same thing after the mouse has locked up, modprobe stalls
72 trying to unload the first module:
73
74 wombat kutulu # modprobe -r -v ohci_pci
75 rmmod ohci_pci
76
77 wombat kutulu # dmesg
78 [38091.627389] ohci-pci 0000:00:0b.0: remove, state 1
79 [38091.627400] usb usb2: USB disconnect, device number 1
80
81 Any ideas what's going wrong here? Any chance I can salvage this hardware?
82
83 --Mike

Replies

Subject Author
Re: [gentoo-user] Intermittent USB device failures Mick <michaelkintzios@×××××.com>