USB stops working after a while

Bug #1254581 reported by Colan Schwartz
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
System76
Triaged
High
Unassigned
linux (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

After leaving my workstation for a while, and then returning, my USB keyboard and USB mouse stop working. Actually, all USB ports stop working.

The peripherals are plugged into the USB hub on my monitor. When I return, and the monitor wakes up, USB is dead. Plugging them into other USB ports has no effect.

As far as I can tell, the only way to fix this is to reboot. Is there a better workaround, like removing and reinserting a kernel module? I tried this with "ahci", but it gives me "Error: Module ahci is in use". Having to reboot every time is quite bothersome.

Here's what may be useful from the syslog:

Nov 24 14:41:02 snake kernel: [108346.613267] xhci_hcd 0000:00:14.0: Timeout while waiting for address device command
Nov 24 14:41:07 snake kernel: [108351.815323] xhci_hcd 0000:00:14.0: Timeout while waiting for address device command
Nov 24 14:41:08 snake kernel: [108352.019314] usb 3-1.4: device not accepting address 112, error -62
Nov 24 14:41:08 snake kernel: [108352.103502] usb 3-1.4: new high-speed USB device number 113 using xhci_hcd
Nov 24 14:41:12 snake whoopsie[1274]: online
Nov 24 14:41:13 snake kernel: [108357.101470] xhci_hcd 0000:00:14.0: Timeout while waiting for address device command
Nov 24 14:41:18 snake kernel: [108362.303556] xhci_hcd 0000:00:14.0: Timeout while waiting for address device command
Nov 24 14:41:18 snake kernel: [108362.507519] usb 3-1.4: device not accepting address 113, error -62
Nov 24 14:41:24 snake kernel: [108368.513290] xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command.
Nov 24 14:41:24 snake kernel: [108368.513301] xhci_hcd 0000:00:14.0: Assuming host is dying, halting host.
Nov 24 14:41:24 snake kernel: [108368.513347] Bluetooth: hci0 urb ffff880403ba5540 failed to resubmit (22)
Nov 24 14:41:24 snake kernel: [108368.513356] Bluetooth: hci0 urb ffff880403ba5e40 failed to resubmit (22)
Nov 24 14:41:24 snake kernel: [108368.513362] Bluetooth: hci0 urb ffff880403e466c0 failed to resubmit (22)
Nov 24 14:41:24 snake kernel: [108368.513384] hub 3-1:1.0: cannot disable port 4 (err = -110)
Nov 24 14:41:24 snake kernel: [108368.513390] xhci_hcd 0000:00:14.0: HC died; cleaning up
Nov 24 14:41:29 snake kernel: [108373.511466] xhci_hcd 0000:00:14.0: Timeout while waiting for a slot
Nov 24 14:41:29 snake kernel: [108373.511475] xhci_hcd 0000:00:14.0: Abort the command ring, but the xHCI is dead.
Nov 24 14:41:29 snake kernel: [108373.511498] xHCI xhci_free_dev called with unaddressed device
Nov 24 14:41:34 snake kernel: [108378.509722] xhci_hcd 0000:00:14.0: Timeout while waiting for a slot
Nov 24 14:41:34 snake kernel: [108378.509732] xhci_hcd 0000:00:14.0: Abort the command ring, but the xHCI is dead.
Nov 24 14:41:34 snake kernel: [108378.509754] xHCI xhci_free_dev called with unaddressed device
Nov 24 14:41:34 snake kernel: [108378.509792] usb 3-1: USB disconnect, device number 109
Nov 24 14:41:34 snake kernel: [108378.509797] usb 3-1.1: USB disconnect, device number 110
Nov 24 14:41:34 snake kernel: [108378.542604] usb 3-1.2: USB disconnect, device number 111
Nov 24 14:41:34 snake bluetoothd[583]: Adapter /org/bluez/583/hci0 has been disabled
Nov 24 14:41:34 snake bluetoothd[583]: Unregister path: /org/bluez/583/hci0
Nov 24 14:41:34 snake bluetoothd[583]: Endpoint unregistered: sender=:1.70 path=/MediaEndpoint/A2DPSink
Nov 24 14:41:34 snake bluetoothd[583]: Endpoint unregistered: sender=:1.70 path=/MediaEndpoint/A2DPSource
Nov 24 14:41:34 snake bluetoothd[583]: Endpoint unregistered: sender=:1.70 path=/MediaEndpoint/HFPAG
Nov 24 14:41:34 snake bluetoothd[583]: Endpoint unregistered: sender=:1.70 path=/MediaEndpoint/HFPHS
Nov 24 14:41:34 snake kernel: [108378.634281] usb 3-2: USB disconnect, device number 13
Nov 24 14:41:34 snake kernel: [108378.634593] usblp0: removed
Nov 24 14:41:34 snake kernel: [108378.635507] usb 3-4: USB disconnect, device number 4
Nov 24 14:41:34 snake kernel: [108378.637049] usb 3-10: USB disconnect, device number 5
Nov 24 14:41:34 snake colord: device removed: sysfs-Generic-BisonCam__NB_Pro
Nov 24 14:41:34 snake udev-configure-printer: remove /devices/pci0000:00/0000:00:14.0/usb3/3-2
Nov 24 14:41:34 snake colord: device removed: sysfs-04f9-0217
Nov 24 14:41:34 snake kernel: [108378.681797] usb 4-1: USB disconnect, device number 14
Nov 24 14:41:34 snake kernel: [108378.681831] usb 4-1: Failed to set U1 timeout to 0x0,error code -19
Nov 24 14:41:34 snake kernel: [108378.681833] usb 4-1: Set SEL for device-initiated U1 failed.
Nov 24 14:41:34 snake kernel: [108378.681835] usb 4-1: Set SEL for device-initiated U2 failed.
Nov 24 14:41:34 snake kernel: [108378.681897] usb 4-1: Failed to set U1 timeout to 0x0,error code -19
Nov 24 14:41:34 snake kernel: [108378.681899] usb 4-1: Set SEL for device-initiated U1 failed.
Nov 24 14:41:34 snake kernel: [108378.681901] usb 4-1: Set SEL for device-initiated U2 failed.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: linux-image-3.11.0-13-generic 3.11.0-13.20
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: colan 2408 F.... pulseaudio
 /dev/snd/controlC1: colan 2408 F.... pulseaudio
 /dev/snd/pcmC1D0p: colan 2408 F...m pulseaudio
 /dev/snd/controlC0: colan 2408 F.... pulseaudio
Date: Sun Nov 24 22:22:31 2013
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=a9d32626-3b65-4683-a561-cb1c17e0fcba
MachineType: System76, Inc. Galago UltraPro
MarkForUpload: True
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-13-generic root=UUID=9a35e457-d298-41c4-9274-a5e8eb9f78c5 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-13-generic N/A
 linux-backports-modules-3.11.0-13-generic N/A
 linux-firmware 1.116
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/09/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: Tag 12345
dmi.board.name: Galago UltraPro
dmi.board.vendor: System76, Inc.
dmi.board.version: galu1
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: System76, Inc,
dmi.chassis.version: galu1
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd07/09/2013:svnSystem76,Inc.:pnGalagoUltraPro:pvrgalu1:rvnSystem76,Inc.:rnGalagoUltraPro:rvrgalu1:cvnSystem76,Inc,:ct9:cvrgalu1:
dmi.product.name: Galago UltraPro
dmi.product.version: galu1
dmi.sys.vendor: System76, Inc.

Revision history for this message
Colan Schwartz (colan) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.
Could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.13-rc1

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Colan Schwartz (colan) wrote :
Download full text (3.7 KiB)

Here's the top of the most recent logs where things appear to go wrong. The log data I posted initially is more where things stop working. I'm going to unplug the hub to see if that solves the problem. And I'll see if I can test a newer kernel.

Nov 25 11:53:44 snake kernel: [18708.164897] usb 3-1: USB disconnect, device number 2
Nov 25 11:53:44 snake kernel: [18708.164910] usb 3-1.4: USB disconnect, device number 5
Nov 25 11:53:44 snake colord: device removed: sysfs-317GAWCM001LON2AS1ST-USB_Video_device
Nov 25 11:53:44 snake kernel: [18708.331928] usb 4-1: USB disconnect, device number 2
Nov 25 11:53:44 snake kernel: [18708.332195] usb 4-1: Set SEL for device-initiated U1 failed.
Nov 25 11:53:44 snake kernel: [18708.332201] usb 4-1: Set SEL for device-initiated U2 failed.
Nov 25 11:53:45 snake kernel: [18709.387650] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
Nov 25 11:53:45 snake kernel: [18709.405680] usb 4-1: New USB device found, idVendor=2109, idProduct=8110
Nov 25 11:53:45 snake kernel: [18709.405690] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 25 11:53:45 snake kernel: [18709.405695] usb 4-1: Product: USB 3.0 HUB
Nov 25 11:53:45 snake kernel: [18709.405695]
Nov 25 11:53:45 snake kernel: [18709.405700] usb 4-1: Manufacturer: VLI Labs, Inc.
Nov 25 11:53:45 snake kernel: [18709.407594] hub 4-1:1.0: USB hub found
Nov 25 11:53:45 snake kernel: [18709.407720] hub 4-1:1.0: 4 ports detected
Nov 25 11:53:45 snake kernel: [18709.647434] usb 3-1: new high-speed USB device number 9 using xhci_hcd
Nov 25 11:53:45 snake kernel: [18709.665557] usb 3-1: New USB device found, idVendor=2109, idProduct=2811
Nov 25 11:53:45 snake kernel: [18709.665566] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Nov 25 11:53:45 snake kernel: [18709.665571] usb 3-1: Product: USB 2.0 HUB
Nov 25 11:53:45 snake kernel: [18709.665571]
Nov 25 11:53:45 snake kernel: [18709.666438] hub 3-1:1.0: USB hub found
Nov 25 11:53:45 snake kernel: [18709.666697] hub 3-1:1.0: 4 ports detected
Nov 25 11:53:46 snake kernel: [18709.955410] usb 3-1.4: new high-speed USB device number 10 using xhci_hcd
Nov 25 11:53:46 snake kernel: [18710.538596] usb 3-1.4: Device not responding to set address.
Nov 25 11:53:46 snake kernel: [18710.739134] usb 3-1.4: Device not responding to set address.
Nov 25 11:53:47 snake kernel: [18710.942888] usb 3-1.4: device not accepting address 10, error -71
Nov 25 11:53:47 snake kernel: [18711.182972] usb 3-1.4: new high-speed USB device number 12 using xhci_hcd
Nov 25 11:53:47 snake kernel: [18711.313242] usb 3-1.4: New USB device found, idVendor=0bda, idProduct=58fe
Nov 25 11:53:47 snake kernel: [18711.313252] usb 3-1.4: New USB device strings: Mfr=3, Product=1, SerialNumber=2
Nov 25 11:53:47 snake kernel: [18711.313257] usb 3-1.4: Product: USB Video device
Nov 25 11:53:47 snake kernel: [18711.313261] usb 3-1.4: Manufacturer: 317GAWCM001LON2AS1ST
Nov 25 11:53:47 snake kernel: [18711.313265] usb 3-1.4: SerialNumber: 200901010001
Nov 25 11:53:47 snake kernel: [18711.317310] uvcvideo: Found UVC 1.00 device USB Video device (0bda:58fe)
Nov 25 11:53:47 snake kernel: [18711.329069] input: USB...

Read more...

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Colin,

Thank you very much for this bug report. I've encountered some stability issues with USB3 hard drives and the 3.11.0-13-generic kernel, but your report makes it sound like it effects all USB devices (at least when plugged into USB3 ports, it seems).

I probably wont have a chance to dig into this tell next week, but I'll do my best.

Thanks again!

Changed in system76:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Colan Schwartz (colan) wrote :

Might be related to bug #1151622.

Revision history for this message
Paz Bom (pazbom) wrote :

Since someone mentioned USB3 hard drives, this is some info I can add.
I am having USB related problems with a USB-3 RAID hard drive in 12.04.3 LTS - kenel 3.5.0-32-generic.

I have a USB external hard drive and all was fine until a few month's ago when I started getting USB disconnect a few minutes after plugging the device or rebooting the system (Ex: usb 1-7: USB disconnect, device number 18).

From my investigation so far the problem seems to have started 31 October 2013 and now I believe since a specific update:
Start-Date: 2013-10-30 23:33:59
Commandline: aptdaemon role='role-commit-packages' sender=':1.21820'
Upgrade: upower:i386 (0.9.15-3git1, 0.9.15-3git1ubuntu0.1), libdecoration0:i386 (0.9.7.12-0ubuntu2, 0.9.7.12-0ubuntu3), libupower-glib1:i386 (0.9.15-3git1, 0.9.15-3git1ubuntu0.1), fire
fox-globalmenu:i386 (24.0+build1-0ubuntu0.12.04.1, 25.0+build3-0ubuntu0.12.04.1), compiz-plugins-default:i386 (0.9.7.12-0ubuntu2, 0.9.7.12-0ubuntu3), firefox:i386 (24.0+build1-0ubuntu0
.12.04.1, 25.0+build3-0ubuntu0.12.04.1), gir1.2-upowerglib-1.0:i386 (0.9.15-3git1, 0.9.15-3git1ubuntu0.1), firefox-locale-en:i386 (24.0+build1-0ubuntu0.12.04.1, 25.0+build3-0ubuntu0.12
.04.1), firefox-locale-pt:i386 (24.0+build1-0ubuntu0.12.04.1, 25.0+build3-0ubuntu0.12.04.1), compiz:i386 (0.9.7.12-0ubuntu2, 0.9.7.12-0ubuntu3), compiz-core:i386 (0.9.7.12-0ubuntu2, 0.
9.7.12-0ubuntu3), compiz-gnome:i386 (0.9.7.12-0ubuntu2, 0.9.7.12-0ubuntu3)
End-Date: 2013-10-30 23:34:11
Probably "upower" related?

Revision history for this message
Colan Schwartz (colan) wrote :

I seem to be getting bug #1413440 now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.