You are not logged in.

#1 2024-03-15 08:07:42

motaito
Member
Registered: 2015-02-07
Posts: 63

[SOLVED] usb-c not working

Hi all

I updated my arch install on my laptop yesterday. Since then all usb-c ports stopped working. I could not find any solution or clues in the wiki or anywhere online. It's a major problem since I can neither use nor charge any devices e.g. bluetooth-keyboard, phone etc.

I have been having a bunch of issues since KDE plasma 6. Not sure if it is related to it also.

Any help would be appreciated. Thanks.


Update [solution summary]:
The found solution comes form here: https://www.reddit.com/r/Lenovo/comment … 7_stopped/

Some lenovo laptops require to press the power button for 30 seconds to be reset.

Last edited by motaito (2024-03-17 23:42:11)

Offline

#2 2024-03-15 15:14:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] usb-c not working

Do uname -a and pacman -Q linux report the same version number?  (If you are using an alternate kernel, change the pacman command as appropriate)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2024-03-15 17:19:41

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

Yes they are the same. linux 6.7.9.arch1-1 in both cases.

Edit:
I used the zen kernel before and reinstalled the system today. Now I use the vanilla kernel. The problem persists and nothing changed.

Last edited by motaito (2024-03-15 17:23:15)

Offline

#4 2024-03-15 17:28:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] usb-c not working

So much for the low hanging fruit.

Does anything get added to the journal when you connect something to the port?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2024-03-15 17:40:23

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

Not that I can see. There are a bunch of errors in dmesg though but I could not find more info about them.

$ sudo dmesg | grep -i error

[    0.352317] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP6.WLAN], AE_NOT_FOUND (20230628/dswload2-162)
[    0.352331] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230628/psobject-220)
[    2.641747] RAS: Correctable Errors collector initialized.
[   14.507224] ACPI Error: No handler for Region [ECSI] (000000003a10863e) [EmbeddedControl] (20230628/evregion-130)
[   14.507270] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20230628/exfldio-261)
[   14.507314] ACPI Error: Aborting method \_SB.UBTC.ECRD due to previous error (AE_NOT_EXIST) (20230628/psparse-529)
[   14.507360] ACPI Error: Aborting method \_SB.UBTC._DSM due to previous error (AE_NOT_EXIST) (20230628/psparse-529)
[   14.548307] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   15.644364] ucsi_acpi: probe of USBC000:00 failed with error -5

$ sudo dmesg | grep -i fail

[    0.373786] ACPI: _OSC evaluation for CPUs failed, trying _PDC
[   12.505558] hub 6-0:1.0: config failed, hub doesn't have any ports! (err -19)
[   14.507452] ACPI: \_SB_.UBTC: failed to evaluate _DSM c298836f-a47c-e411-ad36-631042b5008f (0x6)
[   14.507457] ucsi_acpi USBC000:00: ucsi_acpi_dsm: failed to evaluate _DSM 2
[   14.548307] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   14.548312] cfg80211: failed to load regulatory.db
[   15.644364] ucsi_acpi: probe of USBC000:00 failed with error -5

Offline

#6 2024-03-15 18:23:21

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

lsusb -tv

Make sure USB isn't disabled in the UEFI (there've recently been some cases) and ultimately please post your complete system journal for the boot:

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

after attaching some USB device.

Is only USB-C affected or does the device simply not have any USB-A ports?

Online

#7 2024-03-16 01:19:53

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

I followed your advice. I can't find anything in the UEFI where USB is disabled. I then rebooted the system.

$ sudo journalctl -b | curl -F 'file=@-' 0x0.st
http://0x0.st/HFyK.txt

That's a fancy command. I didn't know that's a thing smile I ran the command after attaching a USB keyboard.

Here is the output from lsusb
$ lsusb -tv

/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 003: Dev 002, If 0, Class=Video, Driver=uvcvideo, 480M
        ID 30c9:0056 Luxvisions Innotech Limited 
    |__ Port 003: Dev 002, If 1, Class=Video, Driver=uvcvideo, 480M
        ID 30c9:0056 Luxvisions Innotech Limited 
    |__ Port 003: Dev 002, If 2, Class=Application Specific Interface, Driver=[none], 480M
        ID 30c9:0056 Luxvisions Innotech Limited 
    |__ Port 004: Dev 003, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        ID 048d:c978 Integrated Technology Express, Inc. 
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 002: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
        |__ Port 001: Dev 004, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            ID 046d:0a45 Logitech, Inc. 960 Headset
        |__ Port 001: Dev 004, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            ID 046d:0a45 Logitech, Inc. 960 Headset
        |__ Port 001: Dev 004, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            ID 046d:0a45 Logitech, Inc. 960 Headset
        |__ Port 001: Dev 004, If 3, Class=Human Interface Device, Driver=usbhid, 12M
            ID 046d:0a45 Logitech, Inc. 960 Headset
        |__ Port 002: Dev 005, If 0, Class=Human Interface Device, Driver=usbhid, 12M
            ID 3233:0009  
        |__ Port 002: Dev 005, If 1, Class=Human Interface Device, Driver=usbhid, 12M
            ID 3233:0009  
        |__ Port 002: Dev 005, If 2, Class=Human Interface Device, Driver=usbhid, 12M
            ID 3233:0009  
        |__ Port 004: Dev 006, If 0, Class=Vendor Specific Class, Driver=[none], 12M
            ID 27c6:550a Shenzhen Goodix Technology Co.,Ltd. 
    |__ Port 003: Dev 003, If 0, Class=Wireless, Driver=btusb, 480M
        ID 0489:e0d8 Foxconn / Hon Hai Bluetooth Adapter
    |__ Port 003: Dev 003, If 1, Class=Wireless, Driver=btusb, 480M
        ID 0489:e0d8 Foxconn / Hon Hai Bluetooth Adapter
    |__ Port 003: Dev 003, If 2, Class=Wireless, Driver=[none], 480M
        ID 0489:e0d8 Foxconn / Hon Hai Bluetooth Adapter
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 002: Dev 002, If 0, Class=Hub, Driver=hub/3p, 5000M
        ID 0bda:0411 Realtek Semiconductor Corp. Hub
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 001: Dev 002, If 0, Class=Communications, Driver=cdc_acm, 12M
        ID 17ef:6131 Lenovo 
    |__ Port 001: Dev 002, If 1, Class=CDC Data, Driver=cdc_acm, 12M
        ID 17ef:6131 Lenovo 
    |__ Port 001: Dev 002, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        ID 17ef:6131 Lenovo 
    |__ Port 001: Dev 002, If 3, Class=Human Interface Device, Driver=usbhid, 12M
        ID 17ef:6131 Lenovo 
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/0p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 009.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 010.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub

I have 2 USB-A ports they work fine.
I also have 4 USB-C ports none of them work since I made an update.

I usually update every 2-3 weeks. for the last ~6-7 month everything worked fine. There must be something that recently changed.

Edited for typo...

Last edited by motaito (2024-03-16 01:24:49)

Offline

#8 2024-03-16 08:25:58

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

XHCI loads and there're 5 USB3 root hubs.

Mar 16 02:08:39 hiei kernel: hub 6-0:1.0: config failed, hub doesn't have any ports! (err -19)

looks mildly suspicious - does the LTS kernel still work?


That's a fancy command.

https://bbs.archlinux.org/viewtopic.php … 1#p2157261 wink

Online

#9 2024-03-16 17:04:01

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

I must have screwed something up... I installed the LTS kernel and it won't even boot. I am dropped into an emergency shell. The vanilla kernel works though (except the USB-C).

Offline

#10 2024-03-16 17:08:17

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

unscrew it - you're typically in an emergency shell because the initramfs is corrupted or the booted and installed kernel versions mismatch.
And there's probably an error message about this ahead.

Online

#11 2024-03-16 17:21:50

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

The LTS kernel can't find the disks. I am using systemd-boot I tried using the partuuid as well as the designation of the disks

options root=PARTUUID=...part_uuid_goes_here... rw resume=PARTUUID=...part_uuid_goes_here...
as well as
options root=/dev/nvme0n1p3 rw resume=/dev/nvme0n1p1

I am currently looking into. In a worst case I'll reinstall with the LTS kernel.

Last edited by motaito (2024-03-16 17:24:44)

Offline

#12 2024-03-16 17:26:37

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

First try to boot some live distro (eg. grml, but maybe even the arch install iso will give a hint) and see whether the USB-C ports work there.

Online

#13 2024-03-17 01:08:29

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

Ok, I could not get the LTS kernel to work. I tried grml it doesn't recognize the USB-C ports either. In the meantime there was an update with a new kernel.

$ uname -a

Linux 6.8.1-arch1-1

still not working. I can try a new install with only the LTS kernel and see if that works. But that has to wait till tomorrow... I don't think that it would solve the problem though.


Update:
After the update all USB-C ports were dead. When I updated again to the new kernel (Linux 6.8.1-arch1-1) I only tried the ports on one side of the laptop. I have since tried all of them.
- Before the update all ports were fine. Plugging in the phone would detect and charge the phone
- After the update all ports were dead
- Now 2 ports start charging the phone. However, I need to activate file transfer in the phone for it to be detected

The 2 ports that are not working are on the same side of the laptop. I am starting to think it might be a hardware failure. Can I check somehow if that is the case?

Last edited by motaito (2024-03-17 06:38:27)

Offline

#14 2024-03-17 07:38:07

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

I am starting to think it might be a hardware failure. Can I check somehow if that is the case?

I tried grml it doesn't recognize the USB-C ports either.

Do devices you attach there show up in the UEFI?
Did you recently update the UEFI?

Online

#15 2024-03-17 16:25:44

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

I can't find any section in the UEFI that would list attached devices. I tried with plugging a USB keyboard in (I tried with all USB-C ports).

No, I have not updated the UEFI.

Offline

#16 2024-03-17 22:09:06

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

If the keyboard doesn't work in the UEFI, USB-C doesn't work in random live distros and there's really nothing that even remotely looks like a related UEFI setting it very much sounds like the port is gone.

BUT:

I updated my arch install on my laptop yesterday. Since then

That's also quite some coincidence.
Anything special happened before/during/after the update?
Do you have https://archlinux.org/packages/extra/x86_64/fwupd/ installed?
What kind of laptop is this? (vendor/model)

Online

#17 2024-03-17 22:43:09

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

I did not notice any thing out of the ordinary before/during/after the update. At some point I connected my phone and nothing happened that's when I noticed. It was maybe 1-2 hours after the update. It can be that the port got broken around that time just by coincidence. If that is the most likely case, I'll have it checked to be sure. But that means I have to leave the laptop for repairs and spend some money.

I don't have fwupd installed. I can give it a shot.

I have a lenovo legion 7 gen7. All amd cpu and gpu.

Offline

#18 2024-03-17 22:52:58

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

I don't have fwupd installed. I can give it a shot.

I was speculating that it might actually have updated the firmware.

Ave you tried to reset the UEFI and/or take the battery out (wait 30 minutes) and put it back?
Edit: "almost" - https://www.reddit.com/r/Lenovo/comment … 7_stopped/

The probability of this being a coincidence depends on the timeframe of you confirming that the ports were still working (hours before the update? Days? Months?) the update and you noticing it's broken (2h is of course very narrow here)

Last edited by seth (2024-03-17 22:54:08)

Online

#19 2024-03-17 23:20:00

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

Holly molly. I followed the tip on the website you liked. I kept pressing the power button for 30 seconds after shutting down the laptop. It stared and shut down immediately after. Then it stayed turned of. After I gave it a minute and started the laptop again. Low and behold the port works again. It charges the phone. I still need to turn on file transfer in the phone to connect to it. Before that happened on it's own. But that is good enough. I can use the port again.

In the very least I now know it's an issue with the laptop and not linux or any of the installed packages.

Just in case I connect things on the port pretty much multiple times a day. So, the port braking after an update would not be too surprising. Given that I update ever 2-3 weeks it would have to break at some point.

Anyway, thanks a lot for your help. It is very much appreciated! I would never have figured that out on my own smile

Offline

#20 2024-03-17 23:33:51

seth
Member
Registered: 2012-09-03
Posts: 51,690

Re: [SOLVED] usb-c not working

a4Yroxp_700b.jpg

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#21 2024-03-17 23:39:16

motaito
Member
Registered: 2015-02-07
Posts: 63

Re: [SOLVED] usb-c not working

That's a legendary image smile
Thanks again for the help, I marked it as solved.

Offline

Board footer

Powered by FluxBB