USB ports stop working (Hub) a few hours after reboot

Obviously the cause may not be the same for everyone, but the symptoms are probably similar.

This may solve your problem: https://unix.stackexchange.com/questions/91027/how-to-disable-usb-autosuspend-on-kernel-3-7-10-or-above

 

If you still have problems:

Run `dmesg`

If you see something like the following problem:

[ 3288.238904] xhci_hcd 0000:05:00.0: ERROR unknown event type 15
[ 3293.386519] xhci_hcd 0000:05:00.0: xHCI host not responding to stop endpoint command.
[ 3293.386540] xhci_hcd 0000:05:00.0: xHCI host controller not responding, assume dead
[ 3293.386572] xhci_hcd 0000:05:00.0: HC died; cleaning up
[ 3293.386589] usb 3-1: USB disconnect, device number 2
[ 3293.386591] usb 3-1.2: USB disconnect, device number 7
[ 3293.386763] usb 4-1: USB disconnect, device number 2
[ 3293.387035] usb 4-2: USB disconnect, device number 3
[ 3293.387037] usb 4-2.3: USB disconnect, device number 4
[ 3293.540647] usb 4-2.4: USB disconnect, device number 5
[ 3293.742897] usb 3-1.3: USB disconnect, device number 6
[ 3293.790530] ipheth 3-1.3:4.2: Apple iPhone USB Ethernet now disconnected
[ 3293.791062] usb 3-2: USB disconnect, device number 3
[ 3293.791064] usb 3-2.2: USB disconnect, device number 5

 

Pay attention to the `0000:05:00.0` part. Replace with yours in the following commands to run:

sudo sh -c "echo '0000:05:00.0' | tee /sys/bus/pci/drivers/xhci_hcd/unbind"
sudo sh -c "echo '0000:05:00.0' | tee /sys/bus/pci/drivers/xhci_hcd/bind"


This temporary solution just resets the USB controller that failed.

I am considering writing a script to check dmesg and rebind on a cron.


Leave us a comment!