View previous topic :: View next topic |
Author |
Message |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sat Aug 05, 2023 10:41 pm Post subject: USB-C devices not recognized |
|
|
I'm having trouble getting a USB-C port to work. When I plug a device into it, nothing happens. I get no output on dmesg, nothing shows up on lsusb, etc. The port in question doubles is also the charging port for my computer, and it does charge when plugged in. The devices I've tried to connect to the port do work on USB-C ports on my other machines, so they aren't the issue. I've enabled pretty much everything related to USB in my kernel config (see below). This computer is a Samsung Chromebook 4. When I opened it up, the first chip connected to the USB-C port is a "Parade" chip (the numbers are too small to read), which I believe has something to do with mode-switching. Regardless, here are my kernel config and dmesg:
.config: http://0x0.st/H_-i.txt
dmesg: https://bpa.st/2WIQ
Any help or advice would be much appreciated |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sat Aug 05, 2023 11:30 pm Post subject: |
|
|
I hadn't looked into genkernel. The way this thing is booted, I have to format the kernel a "special" way. That involves building the initramfs into the kernel itself, then dd-ing the kernel directly to a "chromeOS kernel" partition. There's some coreboot/chromeOS firmware stuff that requires I do it that way. I'm not familiar enough with genkernel to know if that can be done...
And that also prevents me from booting from USB, unless I make my own custom image. Gentoo is the only distro I was able to boot on this laptop (not that that's a bad thing ). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiodef Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/121230830564ba822c25c21.jpg)
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Aug 06, 2023 12:05 am Post subject: |
|
|
I just found one device that seems to work just fine.
Code: | Bus 004 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 002 Device 002: ID 0fd9:007b Elgato Systems GmbH Cam Link 4K
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 002: ID 04f2:b657 Chicony Electronics Co., Ltd 720p HD Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
It's the "Elgato Systems GmbH Cam Link 4K" listed above. Works perfectly fine - I can capture video from it just as designed.
I hadn't previously tested that one. But devices that don't work include:
-Flash drives
-Android phone
-2.5" external mechanical hard drive |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Aug 06, 2023 12:07 am Post subject: |
|
|
audiodef wrote: | What if you go into the USB options in the kernel config and enable them all? |
I have. Everything I see that could affect it is enabled (built-in, not as modules). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1890 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5380 Location: Bavaria
|
Posted: Sun Aug 06, 2023 9:33 am Post subject: |
|
|
Maybe you need also "Unified support for USB4 and Thunderbolt" in your kernel configuration ?
You have:
Code: | # CONFIG_USB4 is not set |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Aug 06, 2023 9:24 pm Post subject: |
|
|
pietinger wrote: | Maybe you need also "Unified support for USB4 and Thunderbolt" in your kernel configuration ?
You have:
Code: | # CONFIG_USB4 is not set |
|
I enabled that, but still no luck. Same symptoms as before.
I did read through that document and had everything set up according to it. USB-C is enabled.
Thanks for everyone's input so far... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54835 Location: 56N 3W
|
Posted: Sun Aug 06, 2023 9:28 pm Post subject: |
|
|
skiwarz,
Pastebin your entire kernel config please.
It should take the guesswark out of this.
Also check the date/time in Thats the build date/time of the running kernel.
Is it when you last remember building the kernel or are you not booting the kernel you think you are. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Aug 06, 2023 9:33 pm Post subject: |
|
|
NeddySeagoon wrote: | skiwarz,
Pastebin your entire kernel config please.
It should take the guesswark out of this.
Also check the date/time in Thats the build date/time of the running kernel.
Is it when you last remember building the kernel or are you not booting the kernel you think you are. |
Here's my latest config: http://0x0.st/H_Zx.txt
uname -a shows a timestamp of 45 minutes ago, when I built with the above config.
edit: made some more changes to my config, re-enabled every USB option I could find, but still nothing. Here's the config for that (my latest one): http://0x0.st/H_ZG.txt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Wed Aug 09, 2023 4:40 am Post subject: |
|
|
I've done some more troubleshooting, and if I do a "hard reset" or so (on these chrome OS devices it's the power+f3 combo), WITHOUT a power cable connected, the usb-c port works as it's supposed to - USB storage works without issue. As soon as I connect a charger to the USB-C port, that port again prevents any usb storage devices plugged into it from being recognized. Reboots via ctl-alt-del, "shutdown -r now", and my DE's power menu have no effect. But as soon as I do that "hard reset" as stated above, the port once again recognizes storage devices.
I've also managed to get debian (with its generic, modular kernel) to boot off usb, and it exhibits similar symptoms.
Any thoughts? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1890 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2203
|
Posted: Wed Aug 09, 2023 5:54 pm Post subject: |
|
|
I also don't know this hardware, but came across a thread on Reddit. _________________ Greybeard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
C5ace Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 23 Dec 2013 Posts: 489 Location: Brisbane, Australia
|
Posted: Thu Aug 10, 2023 9:56 am Post subject: |
|
|
My Desktop has a USB-C socket on it's front pannel for charging only. Verified that there is a 2 wire connection from the USB-C socket to the +5V and ground on the main board. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
skiwarz Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Aug 13, 2023 7:28 am Post subject: |
|
|
Turns out it was crappy firmware. I uodated the "EC" (embedded controller) device's firmware provided by google, and now it works perfectly. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|