-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB C dock/cable #96
Comments
I had another shot at googling issue, bad cable, r8152 etc.. still stuck.
I've tried unload r8152 mod, then reload. booting with cable plugged, and unplugged. All the same. Ethernet won't work, even though it used to (with this exact same cable) |
I've had the same problem with of my hubs recently. I'm going to try a much
older kernel to see if it's a userland issue or an issue in the kernel.
I've been able to "wake" the device up by doing a probe with ```lsusb``` or
another tool to probe the entire USB tree. So I'd expect something changed
in the kernel and USB is a bit lazy.
…On Wed, Mar 13, 2019, 8:16 PM Marc ***@***.***> wrote:
I had another shot at googling issue, bad cable, r8152 etc.. still stuck.
- with Pluggable cable, ethernet works booting OSX (and all the other
ports as well)
- with Apple cable, ethernet works (as all the other ports) booting
linux (4.16)
- with Pluggable cable, ethernet works booting linux at work (same USB
dock model, not same dock though)
- all USB port + audio + charging work with Pluggable cable booting
linux, but Ethernet won't. logs above.
I've tried unload r8152 mod, then reload. booting with cable plugged, and
unplugged. All the same. Ethernet won't work, even though it used to (with
this exact same cable)
Any way to override the usb_reset_and_verify_device Failed to disable LTM?
It seems very related to same 'security' issue I had with thunderbolt a
few months ago.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAApxdrkpRdpJ4c9QSeX8UcD4fqjIbMLks5vWb8ngaJpZM4bpu_R>
.
|
(I just had to do this, so I thought I'd update with how it's done) When I reattached after a meeting, my hub w/ ethernet did not reconnect and was not detected by the system. I then ran |
|
Wait. I wonder if it's a power issue. I have an cdc_ether/r8152 ethernet ported hub. It won't work unless I pass my laptop charger through the USB-C port on the hub. i.e. power must flow through the hub or ethernet doesn't work. Is that what you mean when you say you must use Apple's cable? |
Hmm, not sure I follow. Hub is a powered hub. So in that sense yes, I use the hub to power the laptop and for the ports it has (USB, Ethernet, Audio). When I use the hub/dock (the brand is Pluggable) with the provided Pluggable USBC cable the Ethernet port is not recognized (it used to with exact same cable) and everything else does. But if I use Apple's cable (the one provided with the laptop) and only the cable (not the Apple charger) everything on the Pluiggable hub/dock works. |
Using Apple's cable with the Dock works and gives another Ethernet name for the port : Also tried using usb_modeswitch, not better. |
Yes, that's expected behaviour, see Predictable Network Interface Names. You can rename a specific network interface to a consistent name using udev rules, by creating a file
Just replace the address with the MAC address of your interface. |
@christophgysin thank you. However reading your link it seems ethernet port should stick to the same name shall I use apple's cable or pluggable's cable. |
There are two USB controllers on the *,1 machines, and it looks like a different one is used depending on which cable you use (enp0s20... is pci dev 00:14.0, enp7s0... is pci dev 07:00.0). The only reason for this I can think of offhand is that a different mode is being negotiated when using different cables (e.g. direct USB 2/3/3.1 mode vs DP+USB-3.1 vs Thunderbolt), but why that would be the case I don't know either. |
@roadrunner2 thank you, makes complete sense. Now, why is it the case I have no clue either. |
Some magic, the thunderbolt adapter TB3 to TB2 that was causing issue (issue #87) is now working... ie I have Ethernet, USB, audio and Display working. So it seems port 07:00.0 is working ok. What seems to be the issue is the switch/selection between 00:14:0 and 07:00.0.... not sure. Also I did try booting the Arch USB install and issue with USB dock Ethernet port not being recognized is there as well.. |
@mfauvain Do you got any new insights in the meanwhile? |
Luckily on holidays so could not try at work. Wifi works anywhere I've been though. I guess I will have to avoid work in the future ha! |
I still have a similar problem daily on the 14,3. My consistent fix has been to run Every great once-and-a-while, it won't work, when that happens, I unplug the dock, unplug the power from the dock, wait a few seconds and then hook it all back up. After that I'm back in business. |
Sorry I wasn't able to help more! |
Had another shot at it today, now with kernel 5.12.14 and did what @jboyens suggested.. surprise, ethernet is back.. I powered down the dock, and ran |
As you've narrowed down the problem a bit now: Have you considered opening an issue in the kernel bugzilla, so that hopefully somebody with more knowledge of the USB stack can have a look at it? |
Still very unclear to me, however I submited the bug in bugzilla : https://bugzilla.kernel.org/show_bug.cgi?id=204871 |
back again with the issue. Same as last time. power failure while connected. after power is back up, ethernet port not recognized with original usb-c cable. again, 'sudo lsusb -v' not doing any magic. Reported the issue again to linux-usb@vger.kernel.org as asked on bugzilla. |
Still present yes, the only 'workaround' that 'works' is to boot macOS, unplug USBc cable, shutdown and plug USBc Cable, this triggers the poweron. Mac is setup to boot to Linux by default (systemd-boot) and cable/dock is then recognized with all ports working... |
Macbookpro14,1 (kernel 4.16) was running fine on a USBc dock (pluggable) up until today when Ethernet connection from dock is not recognized anymore. Or more precisely, it is recognized and then (after a few seconds) drops with below log
[ 5074.197445] r8152 4-2.3:1.0 enp7s0u2u3: carrier on
[ 5075.895104] r8152 4-2.3:1.0 enp7s0u2u3: Stop submitting intr, status -71
[ 5083.461988] usb 4-2.3: Disable of device-initiated U1 failed.
[ 5083.476025] usb 4-2.3: Disable of device-initiated U2 failed.
[ 5083.490031] usb 4-2.3: usb_reset_and_verify_device Failed to disable LTM
[ 5083.676896] usb 4-2.3: USB disconnect, device number 7
[ 5083.810423] usb 4-2.3: Device not responding to setup address.
[ 5084.023994] usb 4-2.3: Device not responding to setup address.
[ 5084.230311] usb 4-2.3: device not accepting address 9, error -71
[ 5084.543813] usb 4-2.3: new SuperSpeed USB device number 10 using xhci_hcd
[ 5084.561039] usb 4-2.3: New USB device found, idVendor=0bda, idProduct=8153
[ 5084.561045] usb 4-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 5084.561049] usb 4-2.3: Product: USB 10/100/1000 LAN
[ 5084.561053] usb 4-2.3: Manufacturer: Realtek
[ 5084.561056] usb 4-2.3: SerialNumber: 000001
[ 5084.570004] usb 4-2.3: Enable of device-initiated U1 failed.
[ 5084.576999] usb 4-2.3: Set SEL for device-initiated U2 failed.
[ 5084.605608] usb 4-2.3: Disable of device-initiated U1 failed.
[ 5084.614191] usb 4-2.3: Disable of device-initiated U2 failed.
[ 5084.621000] usb 4-2.3: Set SEL for device-initiated U1 failed.
[ 5084.627996] usb 4-2.3: Set SEL for device-initiated U2 failed.
[ 5084.635069] r8152 4-2.3:2.0: Unknown version 0x0000
[ 5084.642019] usb 4-2.3: Set SEL for device-initiated U1 failed.
[ 5084.649013] usb 4-2.3: Set SEL for device-initiated U2 failed.
[ 5084.657937] usb 4-2.3: usb_reset_and_verify_device Failed to disable LTM
[ 5085.618803] usb 4-2-port3: Cannot enable. Maybe the USB cable is bad?
[ 5085.619600] usb 4-2.3: USB disconnect, device number 10
What is very weird, is that I didn't change the USBc cable (from dock to laptop) and it was working fine before.
Now, changing cable to Apple usbc/usbc cable works! (who knows why) and also, same 'now non-working' cable (the one provided with the pluggable dock) used at work on the same pluggable usbc dock (and same laptop obvioulsly) works....
I am clueless. If cable works at work, why wouldn't it work at home on the same dock? Also, why apple's cable works (on same pluggable dock). I did experience a very weird behaviour with an apple thunderbolt 3 to 2 adapter (see issue #87 ) but here I am speechless.
The text was updated successfully, but these errors were encountered: