Manjaro ignored my USB hub - usb 2-5.1: device descriptor read/64, error -110 & Timeout while waiting for setup device command

My mouse and keyboard (connected to a USB hub) stopped working, fortunately i am using laptop so i was able to do something. HUB reconnecting & peripherals reconnecting not helped.

Kernel: 5.8.18-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0

$ lsusb -t

/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
|__ Port 4: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 5: Dev 99, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 8: Dev 83, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 8: Dev 83, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M

$ sudo dmesg

[66830.783459] usb 2-5: USB disconnect, device number 94
[66842.603963] usb 2-5-port1: attempt power cycle
[66843.175049] usb 2-5: new high-speed USB device number 99 using xhci_hcd
[66843.321275] usb 2-5: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=92.24
[66843.321280] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[66843.321283] usb 2-5: Product: USB2.0 Hub
[66843.321285] usb 2-5: Manufacturer: GenesysLogic
[66843.322331] hub 2-5:1.0: USB hub found
[66843.322720] hub 2-5:1.0: 4 ports detected
[66843.325974] usb 2-1: USB disconnect, device number 19
[66843.501770] usb 2-2: USB disconnect, device number 100
[66843.605088] usb 2-5.1: new low-speed USB device number 101 using xhci_hcd
[66859.101580] usb 2-5.1: device descriptor read/64, error -110
[66874.674835] usb 2-5.1: device descriptor read/64, error -110
[66874.854794] usb 2-5.1: new low-speed USB device number 102 using xhci_hcd
[66890.247947] usb 2-5.1: device descriptor read/64, error -110
[66905.821242] usb 2-5.1: device descriptor read/64, error -110
[66905.928072] usb 2-5-port1: attempt power cycle
[66906.521190] usb 2-5.1: new low-speed USB device number 103 using xhci_hcd
[66911.721127] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[66917.054388] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[66917.261094] usb 2-5.1: device not accepting address 103, error -62
[66917.334404] usb 2-5.1: new low-speed USB device number 104 using xhci_hcd
[66922.387751] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[66927.724316] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[66927.930961] usb 2-5.1: device not accepting address 104, error -62
[66927.931273] usb 2-5-port1: unable to enumerate USB device
[66928.004536] usb 2-5.2: new full-speed USB device number 105 using xhci_hcd
[66943.367476] usb 2-5.2: device descriptor read/64, error -110
[66958.944065] usb 2-5.2: device descriptor read/64, error -110
[66959.127372] usb 2-5.2: new full-speed USB device number 106 using xhci_hcd
[66974.513924] usb 2-5.2: device descriptor read/64, error -110
[66990.090505] usb 2-5.2: device descriptor read/64, error -110
[66990.197458] usb 2-5-port2: attempt power cycle
[66990.793748] usb 2-5.2: new full-speed USB device number 107 using xhci_hcd
[66995.987069] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[67001.320352] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[67001.526992] usb 2-5.2: device not accepting address 107, error -62
[67001.600291] usb 2-5.2: new full-speed USB device number 108 using xhci_hcd
[67006.653629] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[67011.990301] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[67012.196881] usb 2-5.2: device not accepting address 108, error -62
[67012.197247] usb 2-5-port2: unable to enumerate USB device

$ ls /sys/bus/pci/drivers/ -A1

8250_lpss
8250_mid
ahci
dw_dmac_pci
ehci-pci
hsw_uncore
i801_smbus
i915
intel_scu
iosf_mbi_pci
iwlwifi
lpc_ich
mei_me
nouveau
nvme
pcieport
pci-stub
r8169
sdv_gpio
serial
shpchp
snd_hda_intel
xen-platform-pci
xhci_hcd

# echo -n “0000:00:13.0” | tee /sys/bus/pci/drivers/xhci_hcd/unbind

0000:00:13.0tee: /sys/bus/pci/drivers/xhci_hcd/unbind: No such device

# ls /sys/bus/pci/drivers/xhci_hcd

0000:00:14.0 bind module new_id remove_id uevent unbind

Why i ran that echo command?
Because i have found some instructions how to reset usb “subsystem”:

echo -n “0000:00:13.0” | tee /sys/bus/pci/drivers/ohci_hcd/bind

The address is the address of the device. The ‘ohci_hcd’ is from the ‘lsusb -t’ command. There are two terms to use at the end of the statement:

bind – enable the Root Hub
unbind – disable the Root Hub

The same Root Hub could be disabled with the following command:

echo -n “0000:00:13.0” | tee /sys/bus/pci/drivers/ohci_hcd/unbind

After reboot, it works again, so i am asking how to prevent that or if that happen again, which commands to run to discover cause or even fix it? Thank You

Hello @postcd :wink:

-110 means there is not enough power.

-62 means it is timed out.

So i would guess there is problem with usb suspend. Have you the same Problem with a power supply connected?

1 Like

Hello, when there are USB disconnects like this, can i discover any way to fix this or verify that this is random hardware failure?

5.8.18-1-MANJARO

The port to which the drive is connected is one of the two USB 2.0 ports. The other of the two is used by the 4 port USB hub. One more port is USB 3.0.

The disconnects happen, currently it is numerous time in a few hours without physical touch to the cable.

So if i know this is hardware failure, i would sold the computer as such (i guess no easy/cheap repair).

Thanks for the reply! Nice it show such detailed explanation (though i would prefer if says it right in dmesg output). Yes, i think that i have tried to plug the power adaptor to the hub (5V and enough mA) yet i think it not helped (maybe the hub is not made to be powered and the plug in it is fake (chinese one). Maybe there was some OS/software lag or whatever, because i even tried to connect just mouse or just keyboard and not other device. Do you have idea how i can reset/instruct kernel/OS to reset the USB re-read the data in case it is somehow broken? (beside reboot)
If this happen again and if this seems to be possible bug, let me know which commands to run to provide details needed, if you have time.
Thank you

I mean the power supply of your laptop and not the hub :slight_smile:

Maybe a bug, idk. I have a laptop where USB just doesn’t work if no power supply is connected to the laptop. That’s the reason why i mention auto suspending. Normally you can avoid this by disabling this in /etc/tlp.conf

Keep sure tlp is running:

systemctl status tlp

There is also a GUI: tlpui (you need to install it)

Default values i had following:

$ grep -B 4 USB_AUTOSUSPEND /etc/tlp.conf

# Set to 0 to disable, 1 to enable USB autosuspend feature.
# Default: 1
#USB_AUTOSUSPEND=1
--
# Set to 1 to disable autosuspend before shutdown, 0 to do nothing
# Note: use as a workaround for USB devices that cause shutdown problems.
# Default: 0
#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=0

so i have set USB_AUTOSUSPEND=0 and uncommented the line.

Regarding power supply of the laptop, i am NOT running from battery and the laptop has power adaptor that is able to power the dedicated Nvidia graphic card (which is hopefully not utilized during normal work in Linux - “pamac build powertop;sudo powertop” command shows no utilization and power management enabled for dedi GPU), so the PSU should be powerful enough and external drives has its own PSU.

Maybe issue will not happen again after disabling USB_AUTOSUSPEND.

@megavolt can you please share where one can find the meaning of various dmesg output negative error numbers regarding USB devices (usb 2-1.1: … 7, error -71 etc.), because i have seen today different error number.

Following is the dmesg output after connecting the USB hub and then connecting HDD which was recognized, but after connecting second HDD to the hub, it was not spinning this second HDD. Yet after i have connected third one, the second and third started spinning and was recognized. It may be fail at port 2 because it should be USB3, but has USB2 speed. Yet here is the dmesg output, showing also mentioned error codes to which i do not know where to find the meaning.

[121911.638762] usb 1-1: new high-speed USB device number 36 using xhci_hcd
[121911.789058] usb 1-1: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.04
[121911.789062] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[121911.789064] usb 1-1: Product: 4-Port USB 2.0 Hub
[121911.789066] usb 1-1: Manufacturer: Generic
[121911.789947] hub 1-1:1.0: USB hub found
[121911.790964] hub 1-1:1.0: 4 ports detected
[121911.909031] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[121911.935394] usb 2-1: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 1.04
[121911.935398] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[121911.935400] usb 2-1: Product: 4-Port USB 3.0 Hub
[121911.935402] usb 2-1: Manufacturer: Generic
[121911.940443] hub 2-1:1.0: USB hub found
[121911.941322] hub 2-1:1.0: 4 ports detected
[121952.575153] usb 1-1.2: new high-speed USB device number 37 using xhci_hcd
[121952.665936] usb 1-1.2: New USB device found, idVendor=152d, idProduct=2329, bcdDevice= 1.00
[121952.665939] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[121952.665941] usb 1-1.2: Product: USB to ATA/ATAPI bridge
[121952.665942] usb 1-1.2: Manufacturer: JMicron
[121952.665943] usb 1-1.2: SerialNumber: anonymized?
[121952.667785] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[121952.667932] usb-storage 1-1.2:1.0: Quirks match for vid 152d pid 2329: 8020
[121952.667980] scsi host4: usb-storage 1-1.2:1.0
[121953.678965] scsi 4:0:0:0: Direct-Access anonymized PQ: 0 ANSI: 5
[121953.679826] sd 4:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[121953.680088] sd 4:0:0:0: [sdb] anonymized 512-byte logical blocks: (anonymized)
[121953.680435] sd 4:0:0:0: [sdb] Write Protect is off
[121953.680443] sd 4:0:0:0: [sdb] Mode Sense: 28 00 00 00
[121953.680728] sd 4:0:0:0: [sdb] No Caching mode page found
[121953.680734] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[121953.737279] sdb: sdb1 sdb9
[121953.738752] sd 4:0:0:0: [sdb] Attached SCSI disk
[122008.714812] usb 1-1.1: new high-speed USB device number 38 using xhci_hcd
[122009.994830] usb 1-1.1: new high-speed USB device number 39 using xhci_hcd
> [122015.050509] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
[122016.138078] usb 1-1.1: new high-speed USB device number 42 using xhci_hcd
> [122017.127291] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
[122017.931369] usb 1-1.1: new high-speed USB device number 43 using xhci_hcd
> [122018.896759] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
> [122020.694086] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
> [122020.695356] usb 2-1-port1: config error
[122023.561362] usb 1-1.1: new high-speed USB device number 44 using xhci_hcd
> [122024.956732] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
> [122024.957891] usb 2-1-port1: config error
> [122025.994947] usb 2-1.1: Device not responding to setup address.
> [122026.204651] usb 2-1.1: Device not responding to setup address.
> [122026.411384] usb 2-1.1: device not accepting address 7, error -71

yet, after connecting third HDD, the second and thirds start spinning and was recognized:

[123426.956022] usb 1-1.1: new high-speed USB device number 45 using xhci_hcd
[123428.286153] usb 2-1.4: new SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[123428.303735] usb 2-1.4: New USB device found, idVendor=1058, idProduct=25a3, bcdDevice=10.13
[123428.303739] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[123428.303741] usb 2-1.4: Product: Elements 25A3
[123428.303742] usb 2-1.4: Manufacturer: Western Digital
[123428.303743] usb 2-1.4: SerialNumber: anonymized
[123428.305919] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[123428.306131] scsi host5: usb-storage 2-1.4:1.0
[123429.319969] scsi 5:0:0:0: Direct-Access WD Elements 25A3 1013 PQ: 0 ANSI: 6
[123429.321254] sd 5:0:0:0: [sdc] Spinning up disk…
[123430.332681] .
[123430.521161] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
[123430.522084] usb 2-1-port1: config error
[123431.306032] usb 1-1.1: new high-speed USB device number 46 using xhci_hcd
[123431.346012] …
[123432.599385] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[123432.672641] usb 1-1.1: new high-speed USB device number 47 using xhci_hcd
[123433.372621] …
[123434.892611] usb 1-1.1: new high-speed USB device number 48 using xhci_hcd
[123435.399236] .
[123435.586014] usb 1-1.1: device descriptor read/64, error -71
[123435.783404] usb 1-1.1: New USB device found, idVendor=1058, idProduct=25a3, bcdDevice=10.21
[123435.783409] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[123435.783412] usb 1-1.1: Product: Elements 25A3
[123435.783415] usb 1-1.1: Manufacturer: Western Digital
[123435.783417] usb 1-1.1: SerialNumber: anonymized
[123435.784932] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[123435.785251] scsi host6: usb-storage 1-1.1:1.0
[123436.415931] .
[123436.786449] scsi 6:0:0:0: Direct-Access WD Elements 25A3 1021 PQ: 0 ANSI: 6
[123436.787682] sd 6:0:0:0: [sdd] Spinning up disk…
[123442.492537] .ready
[123442.492800] sd 5:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
[123442.492934] sd 5:0:0:0: [sdc] anonymized 512-byte logical blocks: (anonymized TiB)
[123442.492936] sd 5:0:0:0: [sdc] 4096-byte physical blocks
[123442.493146] sd 5:0:0:0: [sdc] Write Protect is off
[123442.493149] sd 5:0:0:0: [sdc] Mode Sense: 47 00 10 08
[123442.493357] sd 5:0:0:0: [sdc] No Caching mode page found
[123442.493359] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[123442.532993] sd 5:0:0:0: [sdc] Attached SCSI disk
[123442.869183] …ready
[123456.039729] sd 6:0:0:0: [sdd] Very big device. Trying to use READ CAPACITY(16).
[123456.039968] sd 6:0:0:0: [sdd] anonymized 512-byte logical blocks: (anonymized TiB)
[123456.039973] sd 6:0:0:0: [sdd] 4096-byte physical blocks
[123456.040261] sd 6:0:0:0: [sdd] Write Protect is off
[123456.040265] sd 6:0:0:0: [sdd] Mode Sense: 47 00 10 08
[123456.040548] sd 6:0:0:0: [sdd] No Caching mode page found
[123456.040551] sd 6:0:0:0: [sdd] Assuming drive cache: write through
[123456.468183] sdd: sdd1
[123456.471553] sd 6:0:0:0: [sdd] Attached SCSI disk

@postcd

There is no real documentation for that, but with errno you can discover the issue:

$ LANG=C errno 110
ETIMEDOUT 110 Connection timed out

These errors are not really accurate, just like symptoms for an issue, but more a guessing what could be the issue.

Here is a list of usb specific errors:

https://www.kernel.org/doc/html/v4.17/driver-api/usb/error-codes.html

Good luck :wink:

1 Like

one may need to install “moreutils” (sudo pacman -S moreutils) for the errno to work.
And errno command works for me even without “LANG=C” prefix.

$ errno 71
EPROTO 71 Protocol error

:confused:

From the description, either it is software issue inside the hub or it is issue on the computer i guess, but in any case this i can not fix anyhow right, unless trying different USB port, cable or not using the usb device?