Skip to content
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

Multiple HUC9002V1SBL Amazonbasics USB hubs #255

Closed
thesocialproxy opened this issue Jul 8, 2020 · 7 comments
Closed

Multiple HUC9002V1SBL Amazonbasics USB hubs #255

thesocialproxy opened this issue Jul 8, 2020 · 7 comments

Comments

@thesocialproxy
Copy link

thesocialproxy commented Jul 8, 2020

Finally, I had the chance to plug all 4 of my HUC9002V1SBL to my Linux, I also have a macOS device that I can connect them to if needed.

As requested, here is the output of uhubctl and lsusb -v, hopefully, this can give some insight for correctly correlating the USB2.0 and USB3.0 hubs.

Currently, as a workaround, I use a wrapper script that lists them by order and assumes the USB3 loads right after the USB2, this works every time and after reboots but I have not tested it on any other machine than my own.

Also worth mentioning - uhubctl worked very slow with all 4 hubs connected and would sometimes hang. I disabled usbcore with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1" and as soon as I did everything started to work smoothly and with no delay. I have no idea why.

uhubctl:

Current status for hub 8-1 [8087:8000]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
  Port 5: 0100 power
  Port 6: 0100 power
Current status for hub 5-1 [8087:8008]
  Port 1: 0100 power
  Port 2: 0103 power enable connect [24ae:1813 RAPOO Rapoo 2.4G Wireless Device]
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [0bda:0129 Generic USB2.0-CRW 20100201396000000]
Current status for hub 12-1.4.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 12-1.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 12-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 12 [1d6b:0003 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:06:00.0, USB 3.00, 2 ports]
  Port 1: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 2: 02a0 power 5gbps Rx.Detect
Current status for hub 11-1.4.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
Current status for hub 11-1.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 11-1 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 11 [1d6b:0002 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:06:00.0]
  Port 1: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 2: 0100 power
Current status for hub 9-1.4.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
Current status for hub 9-1.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 9-1 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 9 [1d6b:0002 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:05:00.0]
  Port 1: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 2: 0100 power
Current status for hub 10-1.4.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 10-1.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 10-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 10 [1d6b:0003 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:05:00.0, USB 3.00, 2 ports]
  Port 1: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 2: 02a0 power 5gbps Rx.Detect
Current status for hub 7-1.4.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 7-1.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 7-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 7 [1d6b:0003 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0, USB 3.00, 2 ports]
  Port 1: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 2: 02a0 power 5gbps Rx.Detect
Current status for hub 6-1.4.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
Current status for hub 6-1.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 6-1 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 6 [1d6b:0002 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:04:00.0]
  Port 1: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 2: 0100 power
Current status for hub 4-1.4.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 4-1.4 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 4-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
Current status for hub 4 [1d6b:0003 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:03:00.0, USB 3.00, 2 ports]
  Port 1: 0203 power 5gbps U0 enable connect [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 2: 02a0 power 5gbps Rx.Detect
Current status for hub 3-1.4.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
Current status for hub 3-1.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 3-1 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
Current status for hub 3 [1d6b:0002 Linux 4.19.0-9-amd64 xhci-hcd xHCI Host Controller 0000:03:00.0]
  Port 1: 0503 power highspeed enable connect [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 2: 0100 power

lsusb -v: https://gist.github.com/mvp/fa5f658ee7ca994005350e4d98bd7698

@mvp
Copy link
Owner

mvp commented Jul 8, 2020

Thanks! Unfortunately, lsusb -v doesn't provide full information. Can you please get output of sudo lsusb -v?

@mvp
Copy link
Owner

mvp commented Jul 8, 2020

And yes, getting uhubctl output with the same hubs on Macos is much appreciated. Note that just by looking at these logs, it's impossible to tell correlation. Can you also manually mark correlating hub numbers (if you found it manually?)

@thesocialproxy
Copy link
Author

thesocialproxy commented Jul 10, 2020

I will attach the macOS output in a few days when I have access to it.

As I said in my first post, I have a method to correlate the USB hubs which works every time, but I am not sure if it only on my Debian machine. It also only works if I can tell which hub is external and which is internal.

  1. List the external USB hubs.
  2. Sort them by smallest to largest hub number.
  3. The USB3.0 will always be on the following line from the USB2.0 hub.

So for the above uhubctl output:

hub1 usb2 - 3-1
hub1 usb3 - 4-1
hub2 usb2 - 6-1
hub2 usb3 - 7-1
hub3 usb2 - 9-1
hub3 usb3 - 10-1
hub4 usb2 - 11-1
hub4 usb3 - 12-1

5-1 and 8-1 are internal hubs so they are skipped.

Hopefully this helps.

Here is sudo lsusb -v: https://gist.github.com/mvp/6d6274e1911a3cba23b6fc64cf808e94#file

@mvp
Copy link
Owner

mvp commented Jul 10, 2020

Thanks a lot, @Roeeklinger60. That output is impossibly long - perhaps next time link to pastebin.com :-)
Its weird that BOS ContainerID still failed to work even with sudo lsusb -v.

I have just one StarTech ST4300USB3 4-port USB3 hub (which does not support vbus off), and while your theory seems to be true on Linux, it breaks down on Mac.
I observe this on Macbook Pro, connecting ST4300USB3 to different USB-C ports:

MBP USB-C port usb2 usb3
Left port 1 20-4 0-2
Left port 2 20-6 0-1
Right port 1 20-1 1-1
Right port 2 20-5 1-2

Bus and port numbering does not seem to follow any pattern 👎

When I connect this hub to Linux box, I observe nice predictable numbering, when USB2 and USB3 device busses always differ by 1, e.g.:

usb2 usb3
3-3.1 4-3.1

Looking forward for your output from Mac. I wish I had 2 10-port hubs to play with...

@c-MM
Copy link

c-MM commented Aug 12, 2020

At least in my case #261 it would solve the problem if the level would have to be equal for the pair.
Adding the level to the command line doesn't help:

root@z2srv:~# ~mm/uhubctl/uhubctl -L 2 -l 2-1 -p 1 -a on
Current status for hub 2-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
Sent power on request
New status for hub 2-1 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.10, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
Current status for hub 1-3.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power
Sent power on request
New status for hub 1-3.4 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0100 power

It still uses the wrong pair.
Another option which would make things more convenient on those broken hubs would be to allow specification of the pair like:

uhubctl -e -l 2-1 -l 1-3 -p 1 -a off

@c-MM
Copy link

c-MM commented Aug 12, 2020

Looking forward for your output from Mac. I wish I had 2 10-port hubs to play with...

I offer you one, let me know how to get it it you.

@mvp
Copy link
Owner

mvp commented Nov 26, 2020

This should be solved by #288, please try it, @c-MM, @Roeeklinger60.
I am closing this as duplicate of #220.

@mvp mvp closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants