You are not logged in.
Hello
I use fully updated Arch + Gnome.
My Lenovo G400S Touch laptop has two usb 3.0 ports, and they have problems with my usb 3.0 flash drive. One of the ports always works as usb 2.0, the another one sometimes works as 2.0, sometimes it does not even detect the plugged usb 3.0 flash drive, and sporadicaly it detects the speed of the flash drive correctly.
When I connect my flash drive to the usb 3.0 port that sporadicaly works correctly and the device is not detected, kernel log prints these messages:
[sex out 27 21:37:40 2023] usb 3-2: new high-speed USB device number 51 using xhci_hcd
[sex out 27 21:37:43 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:43 2023] usb 3-2: new high-speed USB device number 52 using xhci_hcd
[sex out 27 21:37:46 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:46 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:37:49 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:49 2023] usb 3-2: new high-speed USB device number 54 using xhci_hcd
[sex out 27 21:37:49 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:37:49 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:37:49 2023] usb 3-2: device not accepting address 54, error -71
[sex out 27 21:37:49 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:37:49 2023] usb 3-2: new high-speed USB device number 55 using xhci_hcd
[sex out 27 21:37:52 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:53 2023] usb 3-2: new high-speed USB device number 56 using xhci_hcd
[sex out 27 21:37:56 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:56 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:37:58 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:37:58 2023] usb 3-2: new high-speed USB device number 58 using xhci_hcd
[sex out 27 21:37:58 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:37:59 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:37:59 2023] usb 3-2: device not accepting address 58, error -71
[sex out 27 21:37:59 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:37:59 2023] usb 3-2: new high-speed USB device number 59 using xhci_hcd
[sex out 27 21:38:02 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:02 2023] usb 3-2: new high-speed USB device number 60 using xhci_hcd
[sex out 27 21:38:05 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:05 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:08 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:08 2023] usb 3-2: new high-speed USB device number 62 using xhci_hcd
[sex out 27 21:38:08 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:08 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:08 2023] usb 3-2: device not accepting address 62, error -71
[sex out 27 21:38:08 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:09 2023] usb 3-2: new high-speed USB device number 63 using xhci_hcd
[sex out 27 21:38:12 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:12 2023] usb 3-2: new high-speed USB device number 64 using xhci_hcd
[sex out 27 21:38:15 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:15 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:18 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:18 2023] usb 3-2: new high-speed USB device number 66 using xhci_hcd
[sex out 27 21:38:18 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:18 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:18 2023] usb 3-2: device not accepting address 66, error -71
[sex out 27 21:38:18 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:18 2023] usb 3-2: new high-speed USB device number 67 using xhci_hcd
[sex out 27 21:38:21 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:22 2023] usb 3-2: new high-speed USB device number 68 using xhci_hcd
[sex out 27 21:38:25 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:25 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:27 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:27 2023] usb 3-2: new high-speed USB device number 70 using xhci_hcd
[sex out 27 21:38:27 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:27 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:28 2023] usb 3-2: device not accepting address 70, error -71
[sex out 27 21:38:28 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:28 2023] usb 3-2: new high-speed USB device number 71 using xhci_hcd
[sex out 27 21:38:31 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:31 2023] usb 3-2: new high-speed USB device number 72 using xhci_hcd
[sex out 27 21:38:34 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:34 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:37 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:37 2023] usb 3-2: new high-speed USB device number 74 using xhci_hcd
[sex out 27 21:38:37 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:37 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:37 2023] usb 3-2: device not accepting address 74, error -71
[sex out 27 21:38:37 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:38 2023] usb 3-2: new high-speed USB device number 75 using xhci_hcd
[sex out 27 21:38:41 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:41 2023] usb 3-2: new high-speed USB device number 76 using xhci_hcd
[sex out 27 21:38:44 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:44 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:46 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:47 2023] usb 3-2: new high-speed USB device number 78 using xhci_hcd
[sex out 27 21:38:47 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:47 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:47 2023] usb 3-2: device not accepting address 78, error -71
[sex out 27 21:38:47 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:47 2023] usb 3-2: new high-speed USB device number 79 using xhci_hcd
[sex out 27 21:38:50 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:50 2023] usb 3-2: new high-speed USB device number 80 using xhci_hcd
[sex out 27 21:38:54 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:54 2023] usb usb3-port2: attempt power cycle
[sex out 27 21:38:56 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:38:56 2023] usb 3-2: new high-speed USB device number 82 using xhci_hcd
[sex out 27 21:38:56 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:56 2023] usb 3-2: Device not responding to setup address.
[sex out 27 21:38:57 2023] usb 3-2: device not accepting address 82, error -71
[sex out 27 21:38:57 2023] usb usb3-port2: unable to enumerate USB device
[sex out 27 21:38:57 2023] usb 3-2: new high-speed USB device number 83 using xhci_hcd
[sex out 27 21:39:00 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:39:00 2023] usb 3-2: new high-speed USB device number 84 using xhci_hcd
[sex out 27 21:39:03 2023] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[sex out 27 21:39:03 2023] usb usb3-port2: attempt power cycleWhen the plugged flash drive is detected but works with usb 2.0 speed, kernel log prints this:
[sex out 27 21:57:33 2023] usb 4-2: Device not responding to setup address.
[sex out 27 21:57:33 2023] usb 4-2: Device not responding to setup address.
[sex out 27 21:57:33 2023] usb 4-2: device not accepting address 26, error -71
[sex out 27 21:57:34 2023] usb 3-2: new high-speed USB device number 13 using xhci_hcd
[sex out 27 21:57:34 2023] usb 3-2: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
[sex out 27 21:57:34 2023] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[sex out 27 21:57:34 2023] usb 3-2: Product: DataTraveler 3.0
[sex out 27 21:57:34 2023] usb 3-2: Manufacturer: Kingston
[sex out 27 21:57:34 2023] usb 3-2: SerialNumber: <removed>
[sex out 27 21:57:34 2023] usb-storage 3-2:1.0: USB Mass Storage device detected
[sex out 27 21:57:34 2023] scsi host6: usb-storage 3-2:1.0
[sex out 27 21:57:35 2023] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[sex out 27 21:57:35 2023] sd 6:0:0:0: Attached scsi generic sg2 type 0
[sex out 27 21:57:35 2023] sd 6:0:0:0: [sdb] 60555264 512-byte logical blocks: (31.0 GB/28.9 GiB)
[sex out 27 21:57:35 2023] sd 6:0:0:0: [sdb] Write Protect is off
[sex out 27 21:57:35 2023] sd 6:0:0:0: [sdb] Mode Sense: 45 00 00 00
[sex out 27 21:57:35 2023] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[sex out 27 21:57:35 2023] sdb: sdb1
[sex out 27 21:57:35 2023] sd 6:0:0:0: [sdb] Attached SCSI removable diskAnd sometimes I get errors even when the plugged flash drive is correctly detected as usb 3.0.
[sex out 27 21:54:05 2023] usb 3-2: new high-speed USB device number 5 using xhci_hcd
[sex out 27 21:54:05 2023] usb usb4-port2: config error
[sex out 27 21:54:06 2023] usb usb4-port2: config error
[sex out 27 21:54:07 2023] usb 4-2: new SuperSpeed USB device number 25 using xhci_hcd
[sex out 27 21:54:07 2023] usb 4-2: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
[sex out 27 21:54:07 2023] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[sex out 27 21:54:07 2023] usb 4-2: Product: DataTraveler 3.0
[sex out 27 21:54:07 2023] usb 4-2: Manufacturer: Kingston
[sex out 27 21:54:07 2023] usb 4-2: SerialNumber: <removed>
[sex out 27 21:54:07 2023] usb-storage 4-2:1.0: USB Mass Storage device detected
[sex out 27 21:54:07 2023] scsi host6: usb-storage 4-2:1.0
[sex out 27 21:54:08 2023] scsi 6:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[sex out 27 21:54:08 2023] sd 6:0:0:0: Attached scsi generic sg2 type 0
[sex out 27 21:54:08 2023] sd 6:0:0:0: [sdb] 60555264 512-byte logical blocks: (31.0 GB/28.9 GiB)
[sex out 27 21:54:08 2023] sd 6:0:0:0: [sdb] Write Protect is off
[sex out 27 21:54:08 2023] sd 6:0:0:0: [sdb] Mode Sense: 45 00 00 00
[sex out 27 21:54:08 2023] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[sex out 27 21:54:08 2023] sdb: sdb1
[sex out 27 21:54:08 2023] sd 6:0:0:0: [sdb] Attached SCSI removable diskI use the default kernel.
$ uname -r
6.5.9-arch2-1The same usb 3.0 flash drive works perfectly when connected to my desktop computer also running Arch, but with KDE Plasma.
Any idea on how I can solve these problems with usb 3.0?
Thanks.
Offline
Cannot enable. Maybe the USB cable is bad?
Power saving?
Disable TLP and the likes and enable the "always on" feature in the UEFI.
Any impact on the situation?
Offline
Just a sanity check. Are we using any kind of cable or extender?
Do these ports work with other devices?
Have you tried using a different operating system? (Windows, for example)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
My Arch is installed in bios legacy mode, the system does not boot if uefi is enabled in the bios setup.
I do not use any cable or extender, the flash drive is connected directly to the usb 3.0 port. This laptop also have a usb 2.0 port, the flash drive is always detected when connected to it.
I have just tested the usb 3.0 ports by connecting and disconnecting a usb mouse and a usb keyboard repeatedly. Both devices are always detected when connected.
I have another distribution based on Ubuntu 22.04 called neon unstable installed on this laptop, and the usb 3.0 ports have the same problems on it.
I do not have a Windows system on this laptop.
Offline
The "always on" lenovo feature is regardless of how you installed any OS.
Do you run any PM tools like TLP?
Offline
TLP is not installed on my system. Now I uninstalled power-profiles-daemon package, rebooted, and nothing changed.
Found these instructions on the internet:
For some Lenovo computers with always-on connectors, the always-on function can be enabled or disabled in the UEFI/BIOS setup utility.
Step 1 Open the UEFI/BIOS setup utility.
Step 2 Select Configuration ➙ Always On USB and press Enter.
Step 3 Change the setting to Disabled or Enabled.
Step 4 Select Exit ➙ Exit Saving Changes."Always on" feature is not available in the UEFI.
Offline
Look out for firmware/uefi updates and make sure to fully insert the key (sometimes the cases collide and the key isn't injected all the way in) - itr. you could try an adapter cable w/ lower profile.
In particular wrt the non-deterministic behavior this has all the signs of a HW issue and if it's b/c the bus doesn't power up (fast enough) I also don't know what else to do.
Offline
There is no firmware/uefi update, and the device is fully inserted.
In the past two Kingston flash drives (same model and capacity as my current drive) connected to a usb 3.0 port of this laptop were damaged. Both devices became "write protected" after copying a large amount of data to them at once. Probably it's a hardware failure with the usb 3.0 ports.
Thank you all for the help.
Offline