You are not logged in.
Hi
I have a lenovo ideapad 330 laptop, running a fresh Arch installation. (5.17.1-arch1-1). My USB-C port seems not to work. I tried plugging in a USB-C to VGA adapter and a USB-C phone, neither of them was identified. Even dmesg and lsusb remained unchanged. Reboot changed nothing. Both of them worked on a different computer (Windows 11).
I had previously Windows 11, and as far as I can recall, the USB-C port worked then perfectly.
After some searching on Google I saw that it might be because of auto-suspend, so according to the wiki I added to
/etc/udev/rules.d/50-usb_power_save.rules
this line:
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{idVendor}=="045e", ATTR{idProduct}=="07fd", ATTR{power/control}="auto"
After that I rebooted. Changed nothing.
lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 174f:241a Syntek EasyCamera
Bus 001 Device 004: ID 8087:0a2a Intel Corp. Bluetooth wireless interface
Bus 001 Device 003: ID 03f0:0024 HP, Inc KU-0316 Keyboard
Bus 001 Device 002: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Any help will be gratefully accepted!
Last edited by avibag (2022-04-14 14:02:18)
Offline
Why are you trying to control the power supply of the Microsoft Corp. Nano Transceiver which is attached to a usb 2 hub (which is probably rather not usb-c?)
Does the phone charge on the port?
Offline
I am having similar problem, but sometimes it works sometimes not, second USB-C works always, the first one that is meant to be the main power supply line for the laptop just drops out like this, sometimes for minutes, sometimes for hours, replugging doesn't help
posting my lsusb, maybe some similarities could be found to help fix this
lsusb(probably useless):
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 04f2:b6be Chicony Electronics Co., Ltd Integrated Camera
Bus 003 Device 002: ID 0489:e0cd Foxconn / Hon Hai Wireless_Device
Bus 003 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 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but here I have this
journalctl -p 3 -b 0:
kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
kernel: ucsi_acpi USBC000:00: PPM init failed (-110)
Maybe OP check if in the journal you don't have this message too?
Offline
Unfortunately I see nothing:
journalctl -p 3 -b 0
Apr 13 22:33:51 Menachem-Mendel kernel: x86/cpu: SGX disabled by BIOS.
Apr 13 22:33:53 Menachem-Mendel kernel:
Apr 13 22:34:02 Menachem-Mendel sddm-helper[4360]: gkr-pam: unable to locate daemon control file
Last edited by avibag (2022-04-13 19:40:15)
Offline
@Arisa, is there an nvidia chip in your notebook?
Does the phone charge on the port?
Offline
@seth when It stops charging nothing else works with the port at all, and I do not have nvidia chip, I have ryzen 5800h and using the integrated vega 8
Offline
@seth
Why are you trying to control the power supply of the Microsoft Corp. Nano Transceiver which is attached to a usb 2 hub (which is probably rather not usb-c?)
Microsoft Corp. Nano Transceiver 1.1 is my mouse; I don;t really care if autosuspend is enabled for it, as long as it works. I just did it because I don't really know how to work with udev, and on the wiki it was said this is how you setup a whitelist, which is what I want - so it won't automatically suspend my type C port. So I just copied the code from there and changed it to something that will make sense.
Does the phone charge on the port?
The phone charges perfectly on the other ports.
is there an nvidia chip in your notebook?
There is in my computer. (Nvidia GForce MX150). There is also an intel graphics card, if it matters.
Last edited by avibag (2022-04-13 20:04:58)
Offline
The phone charges perfectly on the other ports.
Yeah, but the question was whether it can at least draw power from the *bogus* one.
You can disable usb autosuspend completely by passing "usbcore.autosuspend=-1" to the kernel, but nb. that power management tools like TLP will usually alter that value and you'll have to configure them (as well)
I do not have nvidia chip/There is in mine.
I asked because the "PPM init failed (-110)" is often found along the nvidia driver.
Offline
Yeah, but the question was whether it can at least draw power from the *bogus* one.
Sorry, didn't notice. No power. Nothing at all.
You can disable usb autosuspend completely by passing "usbcore.autosuspend=-1" to the kernel, but nb. that power management tools like TLP will usually alter that value and you'll have to configure them (as well)
I tried; Changed nothing. So how do I configure each one of them?
By the way, forgot to mention - I tried it also after booting from Arch live USB into the installation console. Nothing. Is the autosuspend feature enabled also there?
Offline
There's a 2s autosuspend default in the kernel module.
So how do I configure each one of them?
Each of what? Power management daemons?
Depends on what you've installed.
Can you boot from a usb device plugged into that port?
Offline
Depends on what you've installed.
I don't think that I installed anything. How do I check?
Can you boot from a usb device plugged into that port?
I don't know, I do not have a type-c flash drive.
In the meantime I am trying to install Windows on an external drive and boot it, so I will be able to check whether this problem exists on WIndows as well (so probably the port is faulty), or it's Arch problem. I will notify you.
Offline
Ok, this is strange. I tried burning windows 11 ISO to a flash drive using both dd and Etcher. Both times the USB drive didn't appear at the UEFI boot menu. I tried burning Arch ISO using dd, worked perfectly.
Do you have any idea of what can cause that?
Offline
Ok, this is strange. I tried burning windows 11 ISO to a flash drive using both dd and Etcher. Both times the USB drive didn't appear at the UEFI boot menu. I tried burning Arch ISO using dd, worked perfectly.
Do you have any idea of what can cause that?
As far as I know the windows isos cannot be used directly for a flash drive. You'll hava to mount the iso, create an NTFS or ExFAT partition on the drive and copy the files over. Alternatively you can use WoeUSB or Ventoy.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
What do you mean? I installed windows using a flash drive tons of times. (Rufus etc..)
Offline
A simple dd does not work for a windows iso. As I said, you have to format the flash drive and then copy the files contained in the iso over instead. rufus probably does that as well.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
OK, I will try and update you. Thanks.
Edit: It is indeed working. Installing windows now.
Last edited by avibag (2022-04-14 11:20:26)
Offline
Ok, it's not working on Windows 11 as well. So is my USB c dead?
Offline
No idea if it requires some special driver on windows or maybe a BIOS/EFI update can help.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Update: it's only getting weirder. I have just noticed that connecting a phone using USB C on Windows is working perfectly (including files transfer), even though the VGA adapter is not. (I tested the adapter on a different computer, of course). I also did a BIOS update, changed nothing. There are no more available drivers update for my machine.
Offline
Please run "dmesg -w" and attach the phone (on linux)
Don't try to use any other device on the port and post the output of the above.
See whether "simple-mtpfs -l" finds the phone, https://aur.archlinux.org/packages/simple-mtpfs
Offline
The VGA adapter might need the DP alt-mode and your ideapad does not have that I guess.
Last edited by progandy (2022-04-14 13:43:07)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Is it hardware or software dependent?
Update: I checked it up on the web, and according to this site: https://www.club-3d.com/en/technology/1 … _alt_mode/
My port does not support it. So that's it, I suppose.
Thanks everyone for the help!
Last edited by avibag (2022-04-14 13:53:17)
Offline
Hardware. Is there a displayport icon next to the usb port? (Not mandatory, but good indicator)
Edit: remais the phone situation.
Last edited by seth (2022-04-14 13:54:24)
Offline
No.
Offline
Is a regular USB to VGA adapter supposed to work? If not, what more options do I have to work with 2 monitors and one HDMI port?
Offline