Closed leperjulien closed 6 years ago
First, make sure you build from master branch, and on Mac, be sure to install libusb-1.0.22 (current version in homebrew).
If you connect hub that supports PPPS (per-port power switching) to Mac or Linux, it should be always detected. However, on Linux you may need to use sudo or configure udev USB permissions - otherwise hub may not be detected due to permissions.
Since your hub is USB 3.0 hub, it may behave differently depending on upstream USB connection type. MacBook Pro has USB 3.0, some older Macs have USB 2.0. If upstream port is USB 3.0, hub should be detected as 2 virtual hubs - USB2 and USB3. Otherwise, it will be detected as only USB2.
USB3 hubs require to change power state on both USB 2 and USB 3 hubs for power changes to really take effect. Most recent version of uhubctl will try to do this automatically.
I would not be surprised if your hub doesn't properly change power state when it's connected to USB 2 upstream port...
Can you try to make sure you have true USB 3 upstream connection and repeat your tests?
Thanks a lot for the (crazy)-fast answer ;)
As you thought i'm experimenting on an old macbook pro which has USB 2.0 only, and i was hoping to use your tool and my anker hub on a raspberry project and since neither my Macbook or my raspberry pi use USB 3.0 i'm afraid i need to look for an other way to achieve this..
Warning: libusb 1.0.22 is already installed and up-to-date
To reinstall 1.0.22, run `brew reinstall libusb`
I will try it anyway and repeat same test to let you know if this Hub can be added to the list , once i have access to a computer using USB 3.0 :)
Thanks for the assist!
Note that Raspberry Pi internal USB hub is supported by uhubctl. The only catch is that you can control only port 2, and it will turn off/on ports 2-5 at once.
Also, you can attach any hub on supported list to Raspberry Pi and control ports individually.
Yep i saw this but since i have 3 devices plugged in usb and i need to control them individually :) Thats why i opted for a D link hub and purchased on amazon but i don't know if the one they sell is a rev D1!
Will update here before monday!
Yes, unfortunately, D-Link makes it very difficult to tell those models apart. I recommend looking very carefully at pictures for your hub on Amazon or eBay. Sometimes they have a picture of serial number, model name and hw revision.
Glad to hear that it works for you. DUB-H4 rev D1 is already in supported list, and we know that it works well - but still thanks for extra confirmation. Closing this issue...
Hi,
So i know mine isn't in the supported list but i gave it a try, and that's weird because when i plug the hub to my Macbookpro (with nothing attached to it) and run
uhubctl
i got what i expected :but if i plug in my iphone to it and run the same command again i got :
then i tried
uhubctl -a off -p 4
and my iphone stopped charging !but then i added a small 5V fan for PC from amazon to the hub (the fan started) but when i tried to do
uhubctl -a off -p 123
the fan kept running :/So, i would only works with phones or is there something wrong with my fan ?
Thanks guys !