Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Type-C Front Panel Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Sep 04, 2019 3:07 am    Post subject: USB Type-C Front Panel Problems Reply with quote

This isn't about Gentoo, so I'm putting it here.

I have a SilverStone RL05 case with an ASUS Prime X570-P motherboard. The case has a Type-C port on the front that connects to the motherboard via one of these.

USB 2 devices don't work through this port in Windows 10; I get this repeating message that the device cannot be initialized. Booting a Fedora 30 LiveCD and messing around revealed something interesting. This is the dmesg output from plugging a USB 2 device in and leaving it in for several seconds:

Code:
[  341.716227] usb 1-3: new high-speed USB device number 4 using xhci_hcd
[  341.831281] usb 1-3: device descriptor read/64, error -71
[  342.051018] usb 1-3: device descriptor read/64, error -71
[  342.273760] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[  342.388704] usb 1-3: device descriptor read/64, error -71
[  342.610103] usb 1-3: device descriptor read/64, error -71
[  342.719443] usb usb1-port3: attempt power cycle
[  343.346847] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[  343.461807] usb 1-3: device descriptor read/64, error -71
[  343.681623] usb 1-3: device descriptor read/64, error -71
[  343.904388] usb 1-3: new high-speed USB device number 7 using xhci_hcd
[  344.019321] usb 1-3: device descriptor read/64, error -71
[  344.241149] usb 1-3: device descriptor read/64, error -71
[  344.350082] usb usb1-port3: unable to enumerate USB device
[  344.598803] usb 1-4: new high-speed USB device number 8 using xhci_hcd
[  344.714745] usb 1-4: device descriptor read/64, error -71
[  344.936554] usb 1-4: device descriptor read/64, error -71
[  345.159291] usb 1-4: new high-speed USB device number 9 using xhci_hcd
[  345.274379] usb 1-4: device descriptor read/64, error -71
[  345.496089] usb 1-4: device descriptor read/64, error -71
[  345.605017] usb usb1-port4: attempt power cycle
[  346.232416] usb 1-4: new high-speed USB device number 10 using xhci_hcd
[  346.347338] usb 1-4: device descriptor read/64, error -71
[  346.567268] usb 1-4: device descriptor read/64, error -71
[  346.789797] usb 1-4: new high-speed USB device number 11 using xhci_hcd
[  346.904910] usb 1-4: device descriptor read/64, error -71
[  347.126708] usb 1-4: device descriptor read/64, error -71
[  347.235645] usb usb1-port4: unable to enumerate USB device
[  347.484367] usb 1-3: new high-speed USB device number 12 using xhci_hcd
[  347.599302] usb 1-3: device descriptor read/64, error -71
[  347.822190] usb 1-3: device descriptor read/64, error -71
[  348.044893] usb 1-3: new high-speed USB device number 13 using xhci_hcd
[  348.159812] usb 1-3: device descriptor read/64, error -71
[  348.381143] usb 1-3: device descriptor read/64, error -71
[  348.490593] usb usb1-port3: attempt power cycle
[  349.118015] usb 1-3: new high-speed USB device number 14 using xhci_hcd
[  349.232921] usb 1-3: device descriptor read/64, error -71
[  349.452779] usb 1-3: device descriptor read/64, error -71
[  349.675514] usb 1-3: new high-speed USB device number 15 using xhci_hcd
[  349.790494] usb 1-3: device descriptor read/64, error -71
[  350.011757] usb 1-3: device descriptor read/64, error -71
[  350.120744] usb usb1-port3: unable to enumerate USB device
[  350.369413] usb 1-4: new high-speed USB device number 16 using xhci_hcd
[  350.484884] usb 1-4: device descriptor read/64, error -71
[  350.706219] usb 1-4: device descriptor read/64, error -71
[  350.922000] usb 1-4: new high-speed USB device number 17 using xhci_hcd
[  351.036980] usb 1-4: device descriptor read/64, error -71
[  351.259253] usb 1-4: device descriptor read/64, error -71
[  351.368157] usb usb1-port4: attempt power cycle
[  352.003563] usb 1-4: new high-speed USB device number 18 using xhci_hcd
[  352.118530] usb 1-4: device descriptor read/64, error -71
[  352.338395] usb 1-4: device descriptor read/64, error -71
[  352.561118] usb 1-4: new high-speed USB device number 19 using xhci_hcd
[  352.676024] usb 1-4: device descriptor read/64, error -71
[  352.897852] usb 1-4: device descriptor read/64, error -71
[  353.006784] usb usb1-port4: unable to enumerate USB device
[  353.255501] usb 1-3: new high-speed USB device number 20 using xhci_hcd
[  353.370458] usb 1-3: device descriptor read/64, error -71
[  353.593255] usb 1-3: device descriptor read/64, error -71
[  353.816033] usb 1-3: new high-speed USB device number 21 using xhci_hcd
[  353.931023] usb 1-3: device descriptor read/64, error -71
[  354.152803] usb 1-3: device descriptor read/64, error -71
[  354.261719] usb usb1-port3: attempt power cycle
[  354.889125] usb 1-3: new high-speed USB device number 22 using xhci_hcd
[  355.004065] usb 1-3: device descriptor read/64, error -71
[  355.223892] usb 1-3: device descriptor read/64, error -71
[  355.446661] usb 1-3: new high-speed USB device number 23 using xhci_hcd
[  355.561638] usb 1-3: device descriptor read/64, error -71
[  355.783393] usb 1-3: device descriptor read/64, error -71
[  355.892349] usb usb1-port3: unable to enumerate USB device
[  356.141194] usb 1-4: new high-speed USB device number 24 using xhci_hcd
[  356.256039] usb 1-4: device descriptor read/64, error -71
[  356.478837] usb 1-4: device descriptor read/64, error -71
[  356.701633] usb 1-4: new high-speed USB device number 25 using xhci_hcd
[  356.816565] usb 1-4: device descriptor read/64, error -71
[  357.038346] usb 1-4: device descriptor read/64, error -71
[  357.147319] usb usb1-port4: attempt power cycle
[  357.774705] usb 1-4: new high-speed USB device number 26 using xhci_hcd
[  357.889648] usb 1-4: device descriptor read/64, error -71
[  358.109472] usb 1-4: device descriptor read/64, error -71
[  358.332228] usb 1-4: new high-speed USB device number 27 using xhci_hcd
[  358.446733] usb 1-4: device descriptor read/64, error -71
[  358.668988] usb 1-4: device descriptor read/64, error -71
[  358.778025] usb usb1-port4: unable to enumerate USB device
[  359.026638] usb 1-3: new high-speed USB device number 28 using xhci_hcd
[  359.141589] usb 1-3: device descriptor read/64, error -71
[  359.364395] usb 1-3: device descriptor read/64, error -71
[  359.587310] usb 1-3: new high-speed USB device number 29 using xhci_hcd
[  359.702107] usb 1-3: device descriptor read/64, error -71
[  359.923925] usb 1-3: device descriptor read/64, error -71
[  360.032865] usb usb1-port3: attempt power cycle
[  360.660263] usb 1-3: new high-speed USB device number 30 using xhci_hcd
[  360.775235] usb 1-3: device descriptor read/64, error -71
[  360.994629] usb 1-3: device descriptor read/64, error -71
[  361.217335] usb 1-3: new high-speed USB device number 31 using xhci_hcd
[  361.332740] usb 1-3: device descriptor read/64, error -71
[  361.554542] usb 1-3: device descriptor read/64, error -71
[  361.663488] usb usb1-port3: unable to enumerate USB device
[  361.912209] usb 1-4: new high-speed USB device number 32 using xhci_hcd
[  362.027011] usb 1-4: device descriptor read/64, error -71
[  362.249992] usb 1-4: device descriptor read/64, error -71
[  362.472731] usb 1-4: new high-speed USB device number 33 using xhci_hcd
[  362.587653] usb 1-4: device descriptor read/64, error -71
[  362.809516] usb 1-4: device descriptor read/64, error -71
[  362.918432] usb usb1-port4: attempt power cycle
[  363.545831] usb 1-4: new high-speed USB device number 34 using xhci_hcd
[  363.660788] usb 1-4: device descriptor read/64, error -71
[  363.880611] usb 1-4: device descriptor read/64, error -71

Notice how it's cycling between ports 3 and 4? This is the same physical port on the case.

Then I plugged in a USB 3 device into the same port and it worked on 2-3. For kicks, I flipped the connector and it showed up on 2-4. I was able to repeat this.

Observed behavior:

1. When plugging in a USB 2 device, the OS will repeatedly try to initialize the device and fail, cycling the "port" used every other time (I don't know if the OS is causing the cycling or the device).
2. Controlling the port used for a USB 3 device can be deterministically controlled using the orientation of the C connector.

Now I would think the header cable would only map the pins from one port to the physical C port, not two. And the header works fine when plugged into a standard pair of Type-A ports.

What the hell is going on?
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1000
Location: The Holy city of Honolulu

PostPosted: Wed Sep 04, 2019 3:46 am    Post subject: Reply with quote

Have you checked the connections with a multimeter? I'm talking about on the motherboard and the front panel.

I would absolutely try with another cable as well.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
"It's not a big truck. It's a series of tubes." ~ Senator Ted Stevens describing the Internet
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5707
Location: Removed by Neddy

PostPosted: Wed Sep 04, 2019 7:20 am    Post subject: Reply with quote

This defiantly looks like an electrical continuity issue. If USB cannot enunciate the link it fails. USB3 (usb-c connectors ) has a pin used to configure the link (voltage, etc...). USB2 needs to see a weak pullup on D+.

The driver will try USB3 then USB2 before defaulting to usb1.

Do you have any usb1 devices to try as this will show if it is todo with the hardware enunciation
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Sep 04, 2019 4:49 pm    Post subject: Reply with quote

What devices are commonly USB 1?

And I'm still baffled at why a single Type-C port is being mapped from two legacy Type-A ports. Flipping the Type-C connector causes it to alternate which logical port is used, according to the kernel.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum