You are not logged in.

#1 2025-02-21 14:41:52

filz0r
Member
Registered: 2022-12-03
Posts: 8

USB devices randomly stop working until system is rebooted

Hello, I've recently started to get a lot of issues with my USB devices suddenly stopping to work, I tough it might have been an issue caused by me forgetting to update my system for a couple of weeks in the beginning of the year (when the issue started) but I've been updating my system constantly recently and the issue persists.

So far I've been able to determine that randomly the devices just stop working and looking at demsg I don't see any indicators that the USB is on powersaving mode or something like that, I do run autocpu-freq to change between powersaving and performance governors on the fly when the laptop isn't plugged in, but the thing is that this happens with both governors, usually when I leave the computer for a couple of minutes and it locks it self, but it also happens randomly when I'm using the computer, I started to notice this because my USB mouse would randomly disconnect, I thought it was because the battery was low, but then I noticed that all of the builtin USB devices (fingerprint, webcam and bluetooth) all stop working, so I started to capture the outputs of lsusb and demsg before and after the issues happened.

The computer in question is a Thinkpad T480S, I don't know if this matters, and I'll also post my cmdline configuration in case something changed and I didn't notice:

fbcon=nodefer rw rd.luks.allow-discards rd.luks.options=tpm2-device=auto quiet bgrt_disable root=LABEL=system rootflags=subvol=@root,rw splash vt.global_cursor_default=0 resume=/dev/disk/by-partlabel/cryptswap

Here is the outputs of both demsg and lsusb with and without the -t flag before the issue happens:

lsusb:
❯ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 001 Device 003: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
Bus 001 Device 004: ID 06cb:009a Synaptics, Inc. Metallica MIS Touch Fingerprint Reader
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 0424:2743 Microchip Technology, Inc. (formerly SMSC) USB2744
Bus 003 Device 004: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 005: ID 0c76:120c JMTek, LLC. VG-016
Bus 003 Device 006: ID 3443:930f SHENZHEN AONI ELECTRONIC CO., LTD NexiGo N930AF FHD Webcam
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
Bus 004 Device 003: ID 0424:5743 Microchip Technology, Inc. (formerly SMSC) USB5744
Bus 004 Device 004: ID 05e3:0626 Genesys Logic, Inc. Hub

lsusb -t:
❯ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 007: Dev 002, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 007: Dev 002, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 008: Dev 003, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 008: Dev 003, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 009: Dev 004, If 0, Class=Vendor Specific Class, Driver=usbfs, 12M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 004: Dev 003, If 0, Class=Hub, Driver=hub/3p, 480M
            |__ Port 001: Dev 004, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 002: Dev 005, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 002: Dev 005, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 002: Dev 005, If 2, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 003: Dev 006, If 0, Class=Video, Driver=uvcvideo, 480M
            |__ Port 003: Dev 006, If 1, Class=Video, Driver=uvcvideo, 480M
            |__ Port 003: Dev 006, If 2, Class=Audio, Driver=snd-usb-audio, 480M
            |__ Port 003: Dev 006, If 3, Class=Audio, Driver=snd-usb-audio, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 10000M
        |__ Port 004: Dev 003, If 0, Class=Hub, Driver=hub/1p, 5000M
            |__ Port 001: Dev 004, If 0, Class=Hub, Driver=hub/4p, 5000M
demsg:
❯ sudo dmesg | grep -i usb 
[    0.023291] ACPI: SSDT 0x000000006FFAF000 000678 (v02 LENOVO UsbCTabl 00001000 INTL 20160527)
[    0.589528] ACPI: bus type USB registered
[    0.589528] usbcore: registered new interface driver usbfs
[    0.589528] usbcore: registered new interface driver hub
[    0.589528] usbcore: registered new device driver usb
[    1.031278] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[    1.033253] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.033258] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
[    1.033325] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[    1.033331] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.033335] usb usb1: Product: xHCI Host Controller
[    1.033338] usb usb1: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.033341] usb usb1: SerialNumber: 0000:00:14.0
[    1.033663] hub 1-0:1.0: USB hub found
[    1.036267] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[    1.036274] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.036278] usb usb2: Product: xHCI Host Controller
[    1.036281] usb usb2: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.036284] usb usb2: SerialNumber: 0000:00:14.0
[    1.036516] hub 2-0:1.0: USB hub found
[    1.038246] xhci_hcd 0000:3c:00.0: new USB bus registered, assigned bus number 3
[    1.039868] xhci_hcd 0000:3c:00.0: new USB bus registered, assigned bus number 4
[    1.039873] xhci_hcd 0000:3c:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[    1.039929] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[    1.039934] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.039938] usb usb3: Product: xHCI Host Controller
[    1.039941] usb usb3: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.039944] usb usb3: SerialNumber: 0000:3c:00.0
[    1.040220] hub 3-0:1.0: USB hub found
[    1.041497] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[    1.041504] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.041508] usb usb4: Product: xHCI Host Controller
[    1.041511] usb usb4: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.041514] usb usb4: SerialNumber: 0000:3c:00.0
[    1.041723] hub 4-0:1.0: USB hub found
[    1.042989] usbcore: registered new interface driver usbserial_generic
[    1.043000] usbserial: USB Serial support registered for generic
[    1.277874] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[    1.277889] usb 1-7: new full-speed USB device number 2 using xhci_hcd
[    1.403024] usb 1-7: New USB device found, idVendor=8087, idProduct=0029, bcdDevice= 0.01
[    1.403031] usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.406487] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=64.00
[    1.406493] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.406496] usb 3-1: Product: USB2.1 Hub
[    1.406498] usb 3-1: Manufacturer: GenesysLogic
[    1.407656] hub 3-1:1.0: USB hub found
[    1.515929] usb 4-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[    1.516787] usb 1-8: new high-speed USB device number 3 using xhci_hcd
[    1.530565] usb 4-1: New USB device found, idVendor=05e3, idProduct=0625, bcdDevice=64.00
[    1.530572] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.530575] usb 4-1: Product: USB3.2 Hub
[    1.530577] usb 4-1: Manufacturer: GenesysLogic
[    1.532284] hub 4-1:1.0: USB hub found
[    1.687724] usb 1-8: New USB device found, idVendor=04f2, idProduct=b604, bcdDevice= 0.27
[    1.687729] usb 1-8: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[    1.687732] usb 1-8: Product: Integrated Camera
[    1.687735] usb 1-8: Manufacturer: Chicony Electronics Co.,Ltd.
[    1.687737] usb 1-8: SerialNumber: 0001
[    1.735843] usb 3-1.4: new high-speed USB device number 3 using xhci_hcd
[    1.802782] usb 1-9: new full-speed USB device number 4 using xhci_hcd
[    1.834606] usb 3-1.4: New USB device found, idVendor=0424, idProduct=2743, bcdDevice= 2.86
[    1.834610] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.834612] usb 3-1.4: Product: USB2744
[    1.834614] usb 3-1.4: Manufacturer: Microchip Tech
[    1.835488] hub 3-1.4:1.0: USB hub found
[    1.896932] usb 4-1.4: new SuperSpeed USB device number 3 using xhci_hcd
[    1.908546] usb 4-1.4: New USB device found, idVendor=0424, idProduct=5743, bcdDevice= 2.86
[    1.908550] usb 4-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[    1.908552] usb 4-1.4: Product: USB5744
[    1.908553] usb 4-1.4: Manufacturer: Microchip Tech
[    1.910025] hub 4-1.4:1.0: USB hub found
[    1.927314] usb 1-9: New USB device found, idVendor=06cb, idProduct=009a, bcdDevice= 1.64
[    1.927319] usb 1-9: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[    1.927322] usb 1-9: SerialNumber: bfb398866606
[    2.120784] usb 3-1.4.1: new high-speed USB device number 4 using xhci_hcd
[    2.210213] usb 3-1.4.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice= 6.55
[    2.210218] usb 3-1.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.210220] usb 3-1.4.1: Product: USB2.1 Hub
[    2.210221] usb 3-1.4.1: Manufacturer: GenesysLogic
[    2.211416] hub 3-1.4.1:1.0: USB hub found
[    2.270988] usb 4-1.4.1: new SuperSpeed USB device number 4 using xhci_hcd
[    2.286083] usb 4-1.4.1: New USB device found, idVendor=05e3, idProduct=0626, bcdDevice= 6.55
[    2.286092] usb 4-1.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.286096] usb 4-1.4.1: Product: USB3.1 Hub
[    2.286099] usb 4-1.4.1: Manufacturer: GenesysLogic
[    2.287804] hub 4-1.4.1:1.0: USB hub found
[    2.358951] usb 3-1.4.2: new full-speed USB device number 5 using xhci_hcd
[    2.445023] usb 3-1.4.2: New USB device found, idVendor=0c76, idProduct=120c, bcdDevice= 1.00
[    2.445043] usb 3-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.445051] usb 3-1.4.2: Product: VG-016
[    2.445057] usb 3-1.4.2: Manufacturer: Solid State System Co.,Ltd.
[    2.445063] usb 3-1.4.2: SerialNumber: 010000000000
[    2.473114] usbcore: registered new interface driver usbhid
[    2.473123] usbhid: USB HID core driver
[    2.490817] input: Solid State System Co.,Ltd. VG-016 as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.2/3-1.4.2:1.2/0003:0C76:120C.0001/input/input6
[    2.526868] usb 3-1.4.3: new high-speed USB device number 6 using xhci_hcd
[    2.543089] hid-generic 0003:0C76:120C.0001: input,hidraw0: USB HID v1.00 Device [Solid State System Co.,Ltd. VG-016] on usb-0000:3c:00.0-1.4.2/input2
[    2.695588] usb 3-1.4.3: New USB device found, idVendor=3443, idProduct=930f, bcdDevice=10.11
[    2.695603] usb 3-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.695610] usb 3-1.4.3: Product: NexiGo N930AF FHD Webcam
[    2.695615] usb 3-1.4.3: Manufacturer: SHENZHEN AONI ELECTRONIC CO., LTD
[    2.695620] usb 3-1.4.3: SerialNumber: 20211010002
[   10.374910] typec port0: bound usb3-port1 (ops connector_ops)
[   10.374919] typec port0: bound usb4-port1 (ops connector_ops)
[   10.555071] usb 3-1.4.2: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
[   10.555076] usb 3-1.4.2: [50] FU [Mic Capture Volume] ch = 1, val = 0/7936/16
[   10.557413] usbcore: registered new interface driver btusb
[   10.557762] usb 1-8: Found UVC 1.00 device Integrated Camera (04f2:b604)
[   10.625220] usb 3-1.4.3: 3:1: cannot get freq at ep 0x86
[   10.628240] usb 3-1.4.3: 3:2: cannot set freq 32000 to ep 0x86
[   10.680124] usb 3-1.4.3: 3:3: cannot set freq 44100 to ep 0x86
[   10.783635] usb 3-1.4.3: 3:4: cannot get freq at ep 0x86
[   10.826432] usb 3-1.4.3: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[   10.826436] usb 3-1.4.3: [7] FU [Mic Capture Volume] ch = 1, val = 0/4096/1
[   10.826672] usbcore: registered new interface driver snd-usb-audio
[   10.832897] usb 3-1.4.3: Found UVC 1.00 device NexiGo N930AF FHD Webcam (3443:930f)
[   10.933362] usbcore: registered new interface driver uvcvideo
[   11.111759] typec port1: bound usb3-port2 (ops connector_ops)
[   11.111770] typec port1: bound usb4-port2 (ops connector_ops)
[   15.117864] usb 3-1.4.3: 3:4: cannot get freq at ep 0x86

And here is the after:

lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 0424:2744 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 003 Device 008: ID 1532:0083 Razer USA, Ltd RC30-0315, Gaming Mouse [Basilisk X HyperSpeed]
Bus 003 Device 009: ID 0c76:120c JMTek, LLC. VG-016
Bus 003 Device 010: ID 3443:930f SHENZHEN AONI ELECTRONIC CO., LTD NexiGo N930AF FHD Webcam
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
Bus 004 Device 003: ID 0424:5744 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 004 Device 004: ID 05e3:0626 Genesys Logic, Inc. Hub

lsusb -t:
❯ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/12p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 004: Dev 003, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 002: Dev 008, If 0, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 002: Dev 008, If 1, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 002: Dev 008, If 2, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 003: Dev 009, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 003: Dev 009, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 003: Dev 009, If 2, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 004: Dev 010, If 0, Class=Video, Driver=uvcvideo, 480M
            |__ Port 004: Dev 010, If 1, Class=Video, Driver=uvcvideo, 480M
            |__ Port 004: Dev 010, If 2, Class=Audio, Driver=snd-usb-audio, 480M
            |__ Port 004: Dev 010, If 3, Class=Audio, Driver=snd-usb-audio, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 10000M
        |__ Port 004: Dev 003, If 0, Class=Hub, Driver=hub/2p, 5000M
            |__ Port 001: Dev 004, If 0, Class=Hub, Driver=hub/4p, 5000M
❯ sudo dmesg | grep -i usb 
[    0.025594] ACPI: SSDT 0x000000006FFAF000 000678 (v02 LENOVO UsbCTabl 00001000 INTL 20160527)
[    0.647317] ACPI: bus type USB registered
[    0.647361] usbcore: registered new interface driver usbfs
[    0.647372] usbcore: registered new interface driver hub
[    0.647386] usbcore: registered new device driver usb
[    1.128412] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[    1.130451] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.130458] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
[    1.130528] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[    1.130535] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.130539] usb usb1: Product: xHCI Host Controller
[    1.130543] usb usb1: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.130547] usb usb1: SerialNumber: 0000:00:14.0
[    1.130877] hub 1-0:1.0: USB hub found
[    1.133857] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[    1.133864] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.133869] usb usb2: Product: xHCI Host Controller
[    1.133872] usb usb2: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.133876] usb usb2: SerialNumber: 0000:00:14.0
[    1.134175] hub 2-0:1.0: USB hub found
[    1.136241] xhci_hcd 0000:3c:00.0: new USB bus registered, assigned bus number 3
[    1.137896] xhci_hcd 0000:3c:00.0: new USB bus registered, assigned bus number 4
[    1.137902] xhci_hcd 0000:3c:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[    1.137968] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[    1.137974] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.137979] usb usb3: Product: xHCI Host Controller
[    1.137982] usb usb3: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.137986] usb usb3: SerialNumber: 0000:3c:00.0
[    1.138294] hub 3-0:1.0: USB hub found
[    1.139786] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[    1.139794] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.139799] usb usb4: Product: xHCI Host Controller
[    1.139803] usb usb4: Manufacturer: Linux 6.13.3-arch1-1 xhci-hcd
[    1.139806] usb usb4: SerialNumber: 0000:3c:00.0
[    1.140123] hub 4-0:1.0: USB hub found
[    1.141605] usbcore: registered new interface driver usbserial_generic
[    1.141618] usbserial: USB Serial support registered for generic
[    1.370119] usb 1-7: new full-speed USB device number 2 using xhci_hcd
[    1.496174] usb 1-7: New USB device found, idVendor=8087, idProduct=0029, bcdDevice= 0.01
[    1.496179] usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.608831] usb 1-8: new high-speed USB device number 3 using xhci_hcd
[    1.780486] usb 1-8: New USB device found, idVendor=04f2, idProduct=b604, bcdDevice= 0.27
[    1.780490] usb 1-8: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[    1.780492] usb 1-8: Product: Integrated Camera
[    1.780494] usb 1-8: Manufacturer: Chicony Electronics Co.,Ltd.
[    1.780495] usb 1-8: SerialNumber: 0001
[    1.894824] usb 1-9: new full-speed USB device number 4 using xhci_hcd
[    2.019790] usb 1-9: New USB device found, idVendor=06cb, idProduct=009a, bcdDevice= 1.64
[    2.019794] usb 1-9: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[    2.019796] usb 1-9: SerialNumber: bfb398866606
[    5.882880] usbcore: registered new interface driver btusb
[    6.027312] typec port0: bound usb3-port1 (ops connector_ops)
[    6.027321] typec port0: bound usb4-port1 (ops connector_ops)
[    6.073585] usb 1-8: Found UVC 1.00 device Integrated Camera (04f2:b604)
[    6.089016] usbcore: registered new interface driver uvcvideo
[    6.726352] typec port1: bound usb3-port2 (ops connector_ops)
[    6.726361] typec port1: bound usb4-port2 (ops connector_ops)
[    7.551586] ucsi_acpi USBC000:00: possible UCSI driver bug 2
[    7.594862] ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
[   23.681837] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[   23.808824] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=64.00
[   23.808847] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   23.808860] usb 3-1: Product: USB2.1 Hub
[   23.808869] usb 3-1: Manufacturer: GenesysLogic
[   23.811790] hub 3-1:1.0: USB hub found
[   23.919179] usb 4-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[   23.935569] usb 4-1: New USB device found, idVendor=05e3, idProduct=0625, bcdDevice=64.00
[   23.935587] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   23.935595] usb 4-1: Product: USB3.2 Hub
[   23.935602] usb 4-1: Manufacturer: GenesysLogic
[   23.938940] hub 4-1:1.0: USB hub found
[   28.896838] usb 4-1.4: new SuperSpeed USB device number 3 using xhci_hcd
[   28.908321] usb 4-1.4: New USB device found, idVendor=0424, idProduct=5744, bcdDevice= 2.86
[   28.908330] usb 4-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[   28.908335] usb 4-1.4: Product: USB5744
[   28.908338] usb 4-1.4: Manufacturer: Microchip Tech
[   28.909850] hub 4-1.4:1.0: USB hub found
[   29.169849] usb 3-1.4: new high-speed USB device number 3 using xhci_hcd
[   29.268547] usb 3-1.4: New USB device found, idVendor=0424, idProduct=2744, bcdDevice= 2.86
[   29.268557] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   29.268561] usb 3-1.4: Product: USB2744
[   29.268564] usb 3-1.4: Manufacturer: Microchip Tech
[   29.269746] hub 3-1.4:1.0: USB hub found
[   29.330206] usb 4-1.4.1: new SuperSpeed USB device number 4 using xhci_hcd
[   29.344069] usb 4-1.4.1: New USB device found, idVendor=05e3, idProduct=0626, bcdDevice= 6.55
[   29.344078] usb 4-1.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   29.344082] usb 4-1.4.1: Product: USB3.1 Hub
[   29.344086] usb 4-1.4.1: Manufacturer: GenesysLogic
[   29.345754] hub 4-1.4.1:1.0: USB hub found
[   29.554783] usb 3-1.4.1: new full-speed USB device number 4 using xhci_hcd
[   29.627852] usb 3-1.4.1: device descriptor read/64, error -32
[   29.803880] usb 3-1.4.1: device descriptor read/64, error -32
[   29.978842] usb 3-1.4.1: new full-speed USB device number 5 using xhci_hcd
[   30.052886] usb 3-1.4.1: device descriptor read/64, error -32
[   30.226913] usb 3-1.4.1: device descriptor read/64, error -32
[   30.329907] usb 3-1.4-port1: attempt power cycle
[   30.916829] usb 3-1.4.1: new full-speed USB device number 6 using xhci_hcd
[   30.916990] usb 3-1.4.1: Device not responding to setup address.
[   31.122023] usb 3-1.4.1: Device not responding to setup address.
[   31.330105] usb 3-1.4.1: device not accepting address 6, error -71
[   31.330178] usb 3-1.4.1: WARN: invalid context state for evaluate context command.
[   31.403085] usb 3-1.4.1: new full-speed USB device number 7 using xhci_hcd
[   31.403211] usb 3-1.4.1: Device not responding to setup address.
[   31.610055] usb 3-1.4.1: Device not responding to setup address.
[   31.817836] usb 3-1.4.1: device not accepting address 7, error -71
[   31.817922] usb 3-1.4.1: WARN: invalid context state for evaluate context command.
[   31.817972] usb 3-1.4-port1: unable to enumerate USB device
[   31.890897] usb 3-1.4.2: new full-speed USB device number 8 using xhci_hcd
[   31.977522] usb 3-1.4.2: New USB device found, idVendor=1532, idProduct=0083, bcdDevice= 2.00
[   31.977531] usb 3-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   31.977535] usb 3-1.4.2: Product: Razer Basilisk X HyperSpeed
[   31.977539] usb 3-1.4.2: Manufacturer: Razer
[   32.059836] usb 3-1.4.3: new full-speed USB device number 9 using xhci_hcd
[   32.146010] usb 3-1.4.3: New USB device found, idVendor=0c76, idProduct=120c, bcdDevice= 1.00
[   32.146020] usb 3-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   32.146024] usb 3-1.4.3: Product: VG-016
[   32.146027] usb 3-1.4.3: Manufacturer: Solid State System Co.,Ltd.
[   32.146031] usb 3-1.4.3: SerialNumber: 010000000000
[   32.223039] usb 3-1.4.4: new high-speed USB device number 10 using xhci_hcd
[   32.390415] usb 3-1.4.4: New USB device found, idVendor=3443, idProduct=930f, bcdDevice=10.11
[   32.390425] usb 3-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   32.390429] usb 3-1.4.4: Product: NexiGo N930AF FHD Webcam
[   32.390432] usb 3-1.4.4: Manufacturer: SHENZHEN AONI ELECTRONIC CO., LTD
[   32.390435] usb 3-1.4.4: SerialNumber: 20211010002
[   32.406009] usb 3-1.4.4: Found UVC 1.00 device NexiGo N930AF FHD Webcam (3443:930f)
[   32.542339] usbcore: registered new interface driver usbhid
[   32.542348] usbhid: USB HID core driver
[   32.565525] input: Razer Razer Basilisk X HyperSpeed as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.2/3-1.4.2:1.0/0003:1532:0083.0001/input/input16
[   32.565750] hid-generic 0003:1532:0083.0001: input,hidraw0: USB HID v1.11 Mouse [Razer Razer Basilisk X HyperSpeed] on usb-0000:3c:00.0-1.4.2/input0
[   32.566236] input: Razer Razer Basilisk X HyperSpeed Keyboard as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.2/3-1.4.2:1.1/0003:1532:0083.0002/input/input17
[   32.601709] usb 3-1.4.3: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
[   32.601717] usb 3-1.4.3: [50] FU [Mic Capture Volume] ch = 1, val = 0/7936/16
[   32.617016] input: Razer Razer Basilisk X HyperSpeed as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.2/3-1.4.2:1.1/0003:1532:0083.0002/input/input18
[   32.617284] hid-generic 0003:1532:0083.0002: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Basilisk X HyperSpeed] on usb-0000:3c:00.0-1.4.2/input1
[   32.617615] input: Razer Razer Basilisk X HyperSpeed as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.2/3-1.4.2:1.2/0003:1532:0083.0003/input/input19
[   32.670651] usb 3-1.4.4: 3:1: cannot get freq at ep 0x86
[   32.694235] hid-generic 0003:1532:0083.0003: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer Basilisk X HyperSpeed] on usb-0000:3c:00.0-1.4.2/input2
[   32.694469] input: Solid State System Co.,Ltd. VG-016 as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.4/3-1.4.3/3-1.4.3:1.2/0003:0C76:120C.0004/input/input20
[   32.728044] usb 3-1.4.4: 3:2: cannot get freq at ep 0x86
[   32.745333] hid-generic 0003:0C76:120C.0004: input,hidraw3: USB HID v1.00 Device [Solid State System Co.,Ltd. VG-016] on usb-0000:3c:00.0-1.4.3/input2
[   32.784659] usb 3-1.4.4: 3:3: cannot get freq at ep 0x86
[   32.787647] usb 3-1.4.4: 3:4: cannot set freq 48000 to ep 0x86
[   32.883180] usb 3-1.4.4: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[   32.883187] usb 3-1.4.4: [7] FU [Mic Capture Volume] ch = 1, val = 0/4096/1
[   32.883533] usbcore: registered new interface driver snd-usb-audio
[  937.417282] xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x411, Reinit
[  937.417287] usb usb3: root hub lost power or was reset
[  937.417289] usb usb4: root hub lost power or was reset
[  937.647905] usb 1-8: reset high-speed USB device number 3 using xhci_hcd
[  937.649727] Modules linked in: snd_usb_audio hid_generic snd_usbmidi_lib snd_ump usbhid snd_rawmidi rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm uhid cmac algif_hash algif_skcipher af_alg bnep vfat fat intel_uncore_frequency intel_uncore_frequency_common intel_pmc_core_pltdrv intel_pmc_core intel_vsec pmt_telemetry snd_soc_avs pmt_class snd_soc_hda_codec intel_tcc_cooling joydev snd_hda_codec_hdmi x86_pkg_temp_thermal snd_hda_ext_core intel_powerclamp mousedev coretemp snd_soc_core elan_i2c iwlmvm uvcvideo snd_compress snd_hda_codec_realtek iTCO_wdt ac97_bus kvm_intel snd_hda_codec_generic videobuf2_vmalloc intel_pmc_bxt snd_pcm_dmaengine snd_hda_scodec_component ee1004 iTCO_vendor_support uvc mac80211 snd_ctl_led btusb snd_hda_intel videobuf2_memops intel_rapl_msr kvm libarc4 btrtl snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi btintel mei_pxp mei_hdcp rapl videobuf2_common btbcm snd_hda_codec processor_thermal_device_pci_legacy processor_thermal_device btmtk e1000e i2c_i801 intel_cstate
[  937.649772]  snd_hda_core iwlwifi processor_thermal_wt_hint processor_thermal_rfim videodev snd_hwdep processor_thermal_rapl think_lmi i2c_smbus ucsi_acpi thinkpad_acpi ptp intel_uncore snd_pcm intel_rapl_common pcspkr psmouse mc typec_ucsi firmware_attributes_class wmi_bmof intel_wmi_thunderbolt thunderbolt bluetooth i2c_mux pps_core platform_profile snd_timer cfg80211 mei_me processor_thermal_wt_req crc16 intel_lpss_pci sparse_keymap processor_thermal_power_floor typec intel_xhci_usb_role_switch processor_thermal_mbox rfkill intel_lpss mei idma64 intel_soc_dts_iosf intel_pch_thermal roles snd soundcore int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel acpi_pad mac_hid i2c_dev crypto_user loop nfnetlink ip_tables x_tables btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_generic dm_crypt cbc encrypted_keys trusted asn1_encoder tee dm_mod crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 serio_raw atkbd sha256_ssse3 nvme libps2 sha1_ssse3
[  937.676675] usb 4-1: reset SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[  937.803452] usb 3-1: reset high-speed USB device number 2 using xhci_hcd
[  937.890558] usb 1-7: reset full-speed USB device number 2 using xhci_hcd
[  937.997762] usb 4-1.4: reset SuperSpeed USB device number 3 using xhci_hcd
[  938.263536] usb 3-1.4: reset high-speed USB device number 3 using xhci_hcd
[  938.427113] usb 4-1.4.1: reset SuperSpeed USB device number 4 using xhci_hcd
[  938.655751] usb 3-1.4.4: reset high-speed USB device number 10 using xhci_hcd
[  938.820544] usb 3-1.4.3: reset full-speed USB device number 9 using xhci_hcd
[  938.977800] usb 3-1.4.2: reset full-speed USB device number 8 using xhci_hcd
[  939.080563] usb 1-9: USB disconnect, device number 4
[  939.154239] usb 3-1.4.1: new full-speed USB device number 11 using xhci_hcd
[  939.195231] usb 1-9: new full-speed USB device number 5 using xhci_hcd
[  939.228254] usb 3-1.4.1: device descriptor read/64, error -32
[  939.319735] usb 1-9: New USB device found, idVendor=06cb, idProduct=009a, bcdDevice= 1.64
[  939.319740] usb 1-9: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  939.319742] usb 1-9: SerialNumber: bfb398866606
[  939.404301] usb 3-1.4.1: device descriptor read/64, error -32
[  939.581226] usb 3-1.4.1: new full-speed USB device number 12 using xhci_hcd
[  939.654291] usb 3-1.4.1: device descriptor read/64, error -32
[  939.828237] usb 3-1.4.1: device descriptor read/64, error -32
[  939.931280] usb 3-1.4-port1: attempt power cycle
[  940.518278] usb 3-1.4.1: new full-speed USB device number 13 using xhci_hcd
[  940.518415] usb 3-1.4.1: Device not responding to setup address.
[  940.723309] usb 3-1.4.1: Device not responding to setup address.
[  940.931243] usb 3-1.4.1: device not accepting address 13, error -71
[  940.931363] usb 3-1.4.1: WARN: invalid context state for evaluate context command.
[  941.004219] usb 3-1.4.1: new full-speed USB device number 14 using xhci_hcd
[  941.004359] usb 3-1.4.1: Device not responding to setup address.
[  941.211592] usb 3-1.4.1: Device not responding to setup address.
[  941.419225] usb 3-1.4.1: device not accepting address 14, error -71
[  941.419333] usb 3-1.4.1: WARN: invalid context state for evaluate context command.
[  941.419364] usb 3-1.4-port1: unable to enumerate USB device
[  948.068684] usb 1-9: USB disconnect, device number 5
[  948.314503] usb 1-9: new full-speed USB device number 6 using xhci_hcd
[  948.438967] usb 1-9: New USB device found, idVendor=06cb, idProduct=009a, bcdDevice= 1.64
[  948.438977] usb 1-9: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  948.438981] usb 1-9: SerialNumber: bfb398866606
[ 1722.577051] usb 1-7: USB disconnect, device number 2
[ 1722.613142] usb 1-8: USB disconnect, device number 3
[ 1722.616010] usb 1-9: USB disconnect, device number 6

As you can see the only thing that dmesg says is that the some devices disconected, mostly the builtin, even tough the other usb devices show up on lsusb they don't work, but if I reboot my system it starts working again.

I think its most likely a dumb user error on my end, so if anyone could help me look into this I would be really thankfull as I've never encountered any issues like this before, I'm not sure if its fine to post this big of an log in the forums, but if its better to place the logs into a pastebin let me know as well, thank you in advance for any tips on how to solve this

Offline

#2 2025-02-21 15:12:34

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,052
Website

Re: USB devices randomly stop working until system is rebooted

I think the issue might be the changed power policy https://wiki.archlinux.org/title/Power_ … utosuspend
Could you try the following for the right usb interface?

$ sudo sh -c "echo max_performance > /sys/class/scsi_host/host3/link_power_management_policy

Offline

#3 2025-02-21 16:38:14

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

gromit wrote:

I think the issue might be the changed power policy https://wiki.archlinux.org/title/Power_ … utosuspend
Could you try the following for the right usb interface?

$ sudo sh -c "echo max_performance > /sys/class/scsi_host/host3/link_power_management_policy

I took a look at the docs in both the wiki and the kernel docs linked at the end of that topic in the wiki, the /sys/class/scsi_host folder is empty on my system so I took a look at the /sys/bus/usb/devices folder and I did saw that the path corresponding to my Bluetooth card had a value of 2 in the autosuspend file, but then I noticed that the autosuspend feature is controlled by the usbcore kernel module so I ran

lsmod | grep usbcore

and it gave me an empty output, could it be that this issue is caused because the module isn't loaded into my kernel? If so why did it only became an issue recently?
I've been using Arch on this computer for almost an year and a half and this never happened before neither did I had to enable this module manually before

Offline

#4 2025-02-21 16:58:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: USB devices randomly stop working until system is rebooted

That can't be the case, usbcore is a built-in module on Arch, so it won't show up in lsmod, because it's actually always loaded. But you can try to disable autosuspend by setting usbcore.autosuspend=-1 on your kernel parameters. (or the less global approach gromit's suggestion would be)

Last edited by V1del (2025-02-21 16:59:49)

Offline

#5 2025-02-21 21:43:02

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

I noticed that all of the builtin USB devices (fingerprint, webcam and bluetooth) all stop working

Why would ALPM relevant here?

I'm not even sure it's usb autosuspend  either - some devices might not handle it well, but here things go completely south after/along

[  937.417282] xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x411, Reinit
[  937.417287] usb usb3: root hub lost power or was reset
[  937.417289] usb usb4: root hub lost power or was reset

Please don't grep  around in dmesg, but post your complete system journal for a boot covering such incident, eg.

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous ("-1") one.

Offline

#6 2025-02-21 22:04:59

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

I started to notice this when I was mostly using the computer as a laptop only, it would lock and suddenly the fingerprint sensor would not work anymore, at the time I thought it was an issue with it since the sensor on this computer has a couple issues because since the drivers aren't open source, but then I started to use the laptop connected to a couple monitors and an USB hub, so that I could add a better webcam, microphone and a mouse, and then it also started to happen with the devices connected to the hub, as well as the integrated USB devices that are on the first USB bus. At the time I thought it wasn't much of an issue since it only happened like once a week and I decided to wait a bit in case it was a bad update or something like that, but just today this happened 4 times until I added:

usbcore.autosuspend=-1

to my kernel parameters, since then it hasn't happened again, but I still think that something other than this is wrong because like I said I've been running Arch on this system for almost 1.5 years without any issues that weren't caused by myself.

Please don't grep  around in dmesg, but post your complete system journal for a boot covering such incident, eg.

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous ("-1") one.

I just ran this command on the first boot that caused this issue today http://0x0.st/8TAk.txt let me know if you see anything that could be causing this, if not I'll just keep that option in the kernel parameters and mark this as solved

Offline

#7 2025-02-22 08:35:38

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

Feb 20 20:30:56 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x411, Reinit
Feb 20 23:02:02 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit
Feb 21 01:40:26 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit
Feb 21 10:18:22 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit
Feb 21 12:07:21 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit

are all in response to waking from S3

Feb 21 12:20:56 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 9 using xhci_hcd
Feb 21 12:20:56 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 21 12:20:56 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 21 12:20:56 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 10 using xhci_hcd
Feb 21 12:20:57 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 21 12:20:57 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 21 12:20:57 ChadBook kernel: usb 3-1.4-port1: attempt power cycle
Feb 21 12:20:57 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 11 using xhci_hcd
Feb 21 12:20:57 ChadBook kernel: usb 3-1.4.1: Device not responding to setup address.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: Device not responding to setup address.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: device not accepting address 11, error -71
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: WARN: invalid context state for evaluate context command.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 12 using xhci_hcd
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: Device not responding to setup address.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: Device not responding to setup address.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: device not accepting address 12, error -71
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4.1: WARN: invalid context state for evaluate context command.
Feb 21 12:20:58 ChadBook kernel: usb 3-1.4-port1: unable to enumerate USB device

is some usb hub, looks external.
There's a microphone and a webcam attached.
External modnitor w/ usb hub?

Offline

#8 2025-02-22 12:21:52

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

seth wrote:

is some usb hub, looks external.
There's a microphone and a webcam attached.
External modnitor w/ usb hub?

Yes I upgraded to an usb c hub with display outputs for my monitors this week, but it also happened earlier when I was attaching the monitors to the display outputs of the laptop, one of them via usb-c, the other using the HDMI port, and with an normal usb hub that one of my monitors has to connect to the webcam and microphone.
I can dig around in previous boot logs from before adding the usb-c hub if the usb-c hub makes it harder to track the issue

Offline

#9 2025-02-22 13:15:28

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

I can dig around in previous boot logs from before adding the usb-c hub if the usb-c hub makes it harder to track the issue

It certainly seems to add errors that apprently are not relevant to the perceived problem, so a log free of such noise will hopefully highlight what's actually the problem.

For clarification: this has emerged after disabling usb autosuspend?

Offline

#10 2025-02-22 14:24:52

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

okay here are some more boot logs from January where I saw some of the xHC error logs

http://0x0.st/8TQd.txt
http://0x0.st/8TQ5.txt
http://0x0.st/8TQI.txt

For clarification: this has emerged after disabling usb autosuspend?

So far it hasn't happened again, however I've noticed that the laptop now discharges a little faster, but it's probably because now the devices on the builtin usb bus aren't being put to sleep.

EDIT: It just happened again, so I'm guessing that setting that kernel parameter didn't work you can find the logs from the current boot here http://0x0.st/8TjX.txt

Last edited by filz0r (2025-02-22 16:00:22)

Offline

#11 2025-02-22 16:37:38

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

"xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit" remains a response to an S3 cycle - do they still show up when you sleep the system now?

Offline

#12 2025-02-22 16:56:47

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

No, the latest "crash" was actually without the computer going to sleep for more than 2 hours.
I did put it to sleep manually while the devices attached to the usb hub show up in lsusb the devices on bus 1 don't show up or work. The webcam of connected to the usb hub works, but the microphone and usb mouse don't work

Offline

#13 2025-02-22 20:34:05

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

Do you remember the time (roughly) when that happened (or you noticed it)?

Offline

#14 2025-02-22 20:35:51

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

It was sometime around 16:50 if I'm not mistaken

Offline

#15 2025-02-23 16:08:19

filz0r
Member
Registered: 2022-12-03
Posts: 8

Re: USB devices randomly stop working until system is rebooted

I have a new update, I think I was able to determine what was causing the logs pointing to the S3 state causing these issues, I was having troubles with the charging of the device, something that sometimes happens with autocpu-freq, so I disabled trying to see if this was causing this issue, it wasn't but at the same time I saw that now there is no log message saying anything regarding the system entering an S3 state, I was also able to determine that the crash happened at 15:42 of the logs I'll edit into this post in a moment, I just updated the system again and removed the usb auto suspend disable from the kernel cmd line.

For more context I was having issues connecting to my monitor speakers so I unplugged the USB hub and plugged it back in and that's when the bluetooth controller and fingerprint sensor stopped working, the computer had woken from sleep like 10 minutes before this audio issue that also started this week with the new usb hub.

I'm going to reboot the computer and I'll edit this message with the logs of this boot

EDIT: Here is the log of the previous boot http://0x0.st/8TyF.txt.
At the end of this log you will see that the kernel sent a message saying that watchdog0 didn't stop, and because it hang on that message for about 5 minutes I was forced to manually shutdown the computer and turn it back on

Last edited by filz0r (2025-02-23 16:17:05)

Offline

#16 2025-02-23 23:22:54

seth
Member
Registered: 2012-09-03
Posts: 62,384

Re: USB devices randomly stop working until system is rebooted

Feb 23 15:33:15 ChadBook kernel: ACPI: PM: Waking up from system sleep state S3
…
Feb 23 15:33:15 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit
…
Feb 23 15:33:15 ChadBook kernel: iwlwifi 0000:3d:00.0: HW error, resetting before reading
Feb 23 15:33:15 ChadBook kernel: iwlwifi 0000:3d:00.0: Start IWL Error Log Dump:
…
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 5 using xhci_hcd
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 23 15:33:41 ChadBook uwsm_hyprland.desktop[1379]: [LOG] handlePreferredScale: 1.00 for 5f9c71eb0c40
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 6 using xhci_hcd
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 23 15:33:41 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
Feb 23 15:33:42 ChadBook kernel: usb 3-1.4-port1: attempt power cycle
…
Feb 23 15:36:42 ChadBook kernel: INFO: task kworker/7:0:15725 blocked for more than 122 seconds.
Feb 23 15:36:42 ChadBook kernel:       Tainted: G        W          6.13.3-arch1-1 #1
Feb 23 15:36:42 ChadBook kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 23 15:36:42 ChadBook kernel: task:kworker/7:0     state:D stack:0     pid:15725 tgid:15725 ppid:2      flags:0x00004000
Feb 23 15:36:42 ChadBook kernel: Workqueue: events dp_altmode_work [typec_displayport]
…
Feb 23 15:38:45 ChadBook kernel: INFO: task kworker/2:2:18097 blocked for more than 245 seconds.
Feb 23 15:38:45 ChadBook kernel:       Tainted: G        W          6.13.3-arch1-1 #1
Feb 23 15:38:45 ChadBook kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 23 15:38:45 ChadBook kernel: task:kworker/2:2     state:D stack:0     pid:18097 tgid:18097 ppid:2      flags:0x00004000
Feb 23 15:38:45 ChadBook kernel: Workqueue: events ucsi_handle_connector_change [typec_ucsi]
…
Feb 23 15:40:48 ChadBook kernel: INFO: task kworker/7:0:15725 blocked for more than 368 seconds.
Feb 23 15:40:48 ChadBook kernel:       Tainted: G        W          6.13.3-arch1-1 #1
Feb 23 15:40:48 ChadBook kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 23 15:40:48 ChadBook kernel: task:kworker/7:0     state:D stack:0     pid:15725 tgid:15725 ppid:2      flags:0x00004000
Feb 23 15:40:48 ChadBook kernel: Workqueue: events dp_altmode_work [typec_displayport]
…
Feb 23 15:42:22 ChadBook kernel: xhci_hcd 0000:3c:00.0: xHC error in resume, USBSTS 0x401, Reinit
Feb 23 15:42:22 ChadBook kernel: usb usb3: root hub lost power or was reset
Feb 23 15:42:23 ChadBook kernel: usb usb4: root hub lost power or was reset
…
Feb 23 15:42:34 ChadBook kernel: usb 3-1.4.1: device descriptor read/64, error -32
…
Feb 23 15:42:36 ChadBook kernel: usb 3-1.4.1: device not accepting address 15, error -71
Feb 23 15:42:36 ChadBook kernel: usb 3-1.4.1: WARN: invalid context state for evaluate context command.
Feb 23 15:42:36 ChadBook kernel: usb 3-1.4.1: new full-speed USB device number 16 using xhci_hcd
Feb 23 15:42:36 ChadBook kernel: usb 3-1.4.1: Device not responding to setup address.
Feb 23 15:42:36 ChadBook kernel: usb 3-1.4.1: Device not responding to setup addre

The system starts to act upo right after the wakeup and never really settles.
Can you reproduce this if you unplug the hub before sending the system to sleep and only connect it after the wakeup (is complete)?

Offline

Board footer

Powered by FluxBB