-
Notifications
You must be signed in to change notification settings - Fork 221
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
Can't address port on chained hub #227
Comments
Which version of uhubctl (try building from master branch)? Which version of libusb (try 1.0.23 - should be the one installed by brew install libusb)? It's suspicious that even lsusb shows 2 devices with identical serial number A806006164CB - serial numbers are supposed to be unique. That said, I wouldn't fully trust lsusb from brew on MacOS because it simply parses ioreg output. Can you try using it on Linux and see if it works better? To answer your questions:
|
uhubctl is HEAD-d576db9 updated a few days ago. The only Linux I have available is a Raspberry PI 3+. Does that help? -p all is not working in my case
This is the chain up to the webcam from lsusb -v:
|
Somehow libusb is returning list of USB devices in which 2 which have identical port path 20-4 - that should not be possible. And try attaching your devices (camera or monitor) to RPi3B+ - Raspbian should be ok to test it. Also, you almost never need to use -e option. If you have to, it typically means a bug somewhere. |
I'll need some time to get that Raspberry going again. lsusb gives me this error 6x as the first output:
This is the full uhubctl output:
|
Here is what I get on the Raspberry PI.
BTW the serial numbers of the 2 hubs are different. It's just hard to spot.
|
Interesting - so it suggests that on Linux it works fine. It suggests that libusb on Mac is broken. Similar happened couple years ago when libusb 1.0.21 was broken on MacOS Yousemite, was fixed in libusb 1.0.22... |
I can't reproduce anything like that on MacOS 10.15.4 (19E266), uhubctl built from master (v2.1.0-31-gd576db98), and libusb 1.0.23 (installed by brew install libusb).
|
The results are identical to the brew version. Just upgraded to MacOS 10.15.4 now, but that didn't change anything. |
I have deleted libusb-1.0.23 (was installed in Oct 2019), reinstalled it again with brew install libusb and built uhubctl against it. Now I can reproduce empty brackets. It seems that something has changed in libusb-1.0.23 in brew, even if version did not. looking at it... |
This appears to be breaking change Homebrew/homebrew-core@02bb855 |
I still could not quite figure out what is wrong with libusb-1.0.23 on catalina, but I found workaround.
Let me know if you can find a way to force installing mojave bottle without patching this formula. Now everything should work. In meantime, I will keep looking for a real fix. |
Ok, I found actual reason - libusb is broken on MacOS newer than Mojave libusb/libusb#707 |
This provides workaround for issue #227. Will be fully solved only by libusb/libusb#707.
I have documented this in e3734e0. Please use workaround mentioned in README.md, it should work for you now. |
Thanks for the workaround. It works now as expected. |
Closing since workaround is available and is documented. Will need libusb to actually fix it and remove workaround. |
Now that libusb-1.0.24 is released libusb/libusb#618, workaround is no longer needed. Also, replace MacOS X references to just MacOS (since it works on MacOS 11 Big Sur too). This finally fixes issue #227.
Hi,
I have a webcam on my DELL U2715H monitors USB hub that doesn't work after wake from sleep.
So I wan't to cycle its power with sleepwatcher.
This is on a MacBook Pro 16" with OSX 10.15.3.
The hubs 6 ports seems to be split in two.
lsusb shows this for Bus 020:
Device 009 is the webcam I want to cycle.
Thanks for your help! Stay safe!
The text was updated successfully, but these errors were encountered: