After some minutes of power up one of the usb ports of my laptop stops working, but the rest is still working
The USB port directy or is a USB-Hub connected to the port?
you can find disconnects with the command “dmesg” in a terminal.
if there is a look up the output will be in red, otherwise it will show disconnect for reconnect for the USB Port, in this example for my USB-Mouse
Blockquote
[ 592.644616] usb 5-2.4.2.1: USB disconnect, device number 8
[ 595.128324] usb 5-2.4.2.1: new low-speed USB device number 10 using xhci_hcd
[ 595.249015] usb 5-2.4.2.1: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[ 595.249026] usb 5-2.4.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 595.249030] usb 5-2.4.2.1: Product: USB Optical Mouse
[ 595.249033] usb 5-2.4.2.1: Manufacturer: PixArt
[ 595.304280] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:08.1/0000:06:00.4/usb5/5-2/5-2.4/5-2.4.2/5-2.4.2.1/5-2.4.2.1:1.0/0003:093A:2510.0004/input/input22
[ 595.304554] hid-generic 0003:093A:2510.0004: input,hidraw1: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:06:00.4-2.4.2.1/input0
I connected a usb hub, but use usb device to probe detection.
Additionally I had connected and disconnected the device two times to the port meanwhile reading dmesg
, no change was observed by both connection and disconnection.
If you do not see any sign on USB connect/disconnect the should be fixed first. With “dmesg --follow” you must see for example an USB stick that is inserted/removed.
No change has been observed
You can check the current status of all the USB devices on your system as follows:
> cat /sys/bus/usb/devices/*/power/runtime_status
suspended
suspended
active
unsupported
suspended
active
suspended
suspended
suspended
suspended
active
suspended
suspended
suspended
suspended
suspended
active
suspended
suspended
suspended
suspended
suspended
>
You can then dive deeper into your system’s current USB device power control settings:
> cat /sys/bus/usb/devices/*/power/control
on
on
auto
on
auto
auto
auto
auto
auto
auto
>
> cat /sys/bus/usb/devices/*/power/autosuspend_delay_ms
2000
2000
0
2000
0
0
0
0
0
0
>
We can only pinpoint the issue when, you’ve found out by means of the systemd Journal Kernel messages (dmesg), which USB device device is misbehaving.
@localhost:~> cat /sys/bus/usb/devices/*/power/runtime_status
suspended
suspended
suspended
suspended
suspended
suspended
active
active
suspended
active
suspended
active
suspended
And
@localhost:~> cat /sys/bus/usb/devices/*/power/control
auto
auto
auto
auto
auto
auto
Actions are reported by journal:
erlangen:~ # journalctl --since 17:00 _KERNEL_SUBSYSTEM=usb
Jul 03 17:12:45 erlangen kernel: usb 1-8: new full-speed USB device number 9 using xhci_hcd
Jul 03 17:12:45 erlangen kernel: usb 1-8: new high-speed USB device number 10 using xhci_hcd
Jul 03 17:12:45 erlangen kernel: usb 1-8: New USB device found, idVendor=04b8, idProduct=013d, bcdDevice= 1.00
Jul 03 17:12:45 erlangen kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 17:12:45 erlangen kernel: usb 1-8: Product: Epson Perfection V39
Jul 03 17:12:45 erlangen kernel: usb 1-8: Manufacturer: EPSON
Jul 03 17:12:45 erlangen kernel: usb 1-8: SerialNumber: VCGY024573
Jul 03 17:13:06 erlangen kernel: usb 1-8: USB disconnect, device number 10
Jul 03 18:42:13 erlangen kernel: usb usb1: root hub lost power or was reset
Jul 03 18:42:13 erlangen kernel: usb usb2: root hub lost power or was reset
Jul 03 18:42:13 erlangen kernel: usb 1-10: reset full-speed USB device number 2 using xhci_hcd
erlangen:~ #
The command returns no entries
A working USB port does. Run the command below. Plug and unplug a stick:
6700k:~ # journalctl -f
Jul 03 21:57:47 6700k zypper[12157]: dracut[I]: *** Stripping files done ***
Jul 03 21:57:47 6700k zypper[12157]: dracut[I]: *** Creating image file '/boot/initrd-6.3.9-1-default' ***
Jul 03 21:57:47 6700k zypper[12157]: dracut[I]: *** Creating initramfs image file '/boot/initrd-6.3.9-1-default' done ***
...
# PLUG IN
Jul 03 22:00:15 6700k kernel: usb 1-5: new high-speed USB device number 9 using xhci_hcd
Jul 03 22:00:15 6700k kernel: usb 1-5: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.12
Jul 03 22:00:15 6700k kernel: usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 03 22:00:15 6700k kernel: usb 1-5: Product: Mass Storage
Jul 03 22:00:15 6700k kernel: usb 1-5: Manufacturer: Generic
Jul 03 22:00:15 6700k kernel: usb 1-5: SerialNumber: 410D75AE
Jul 03 22:00:15 6700k kernel: usb-storage 1-5:1.0: USB Mass Storage device detected
Jul 03 22:00:15 6700k kernel: scsi host6: usb-storage 1-5:1.0
Jul 03 22:00:15 6700k kernel: usbcore: registered new interface driver usb-storage
Jul 03 22:00:15 6700k kernel: usbcore: registered new interface driver uas
Jul 03 22:00:16 6700k kernel: scsi 6:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: Attached scsi generic sg1 type 0
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: [sdb] 8073216 512-byte logical blocks: (4.13 GB/3.85 GiB)
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: [sdb] Write Protect is off
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Jul 03 22:00:16 6700k kernel: sdb: sdb1
Jul 03 22:00:16 6700k kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk
# UNPLUG
Jul 03 22:00:27 6700k kernel: usb 1-5: USB disconnect, device number 9
If it doesn’t it’s dead.
Effectively there was not observed change but I have the news that my wacom tablet works in the same exact usb port after rebot, no just that but I have posted this reply pressing the answer botton with the wacom tablet.
Some research bring me to
I tried
echo -1 >/sys/module/usbcore/parameters/autosuspend
and adding usbcore.autosuspend=-1
to the kernel command line, yet to see results, because it happens some time after connection.
The solution worked in solving my problem