You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compatible USB 3.0 hub connected to USB3 upstream port, it will be detected as 2 independent virtual hubs: USB2 and USB3, and USB devices will be connected to USB2 or USB3 virtual hub depending on their capabilities and connection speed (some more context in issue #68).
To control power for such hubs, one must turn off/on power on both USB2 and USB3
virtual hubs for power off/on changes to take effect.
We should change uhubctl to perform this dual power switch automatically.
Ideally, it should perform this dual power switch by default for affected ports, but add an option to disable dual switching for some odd usage cases.
The text was updated successfully, but these errors were encountered:
When compatible USB3 hub connected to USB3 upstream port,
it is detected as 2 independent virtual hubs: USB2 and USB3,
and USB devices will be connected to USB2 or USB3 virtual hub
depending on their capabilities and connection speed.
To control power for physical USB3 hubs, we must turn off/on power
on both USB2 and USB3 virtual hubs for power off/on changes to take effect.
Included fixes:
* Enumerate all USB hubs, but mark ones we will work on with actionable flag.
Because of this, increased max size of hubs array to 128 (maybe need even more?).
* Moved all code that was getting hub info into get_hub_info().
* Display "power" status as first status flag if port is powered.
(uhubctl is about USB port power, and we should display power as first flag).
* Display "off" status for USB3 port when it is off (was "5gbps SS.Disabled").
This makes both USB2 and USB3 status to display "off" consistently.
* Added expert option --exact which disables USB3 duality handling.
* Added small wait (150ms) after turning off USB3 port.
It seems that USB3 reacts slowly to power off command.
Perhaps we need to implement more deterministic approach for this,
e.g. keep querying new power state few times until it has finally changed.
Oddly enough, power on is always instant and does not need waiting.
This fixes issue #72.
When compatible USB 3.0 hub connected to USB3 upstream port, it will be detected as 2 independent virtual hubs: USB2 and USB3, and USB devices will be connected to USB2 or USB3 virtual hub depending on their capabilities and connection speed (some more context in issue #68).
To control power for such hubs, one must turn off/on power on both USB2 and USB3
virtual hubs for power off/on changes to take effect.
We should change
uhubctl
to perform this dual power switch automatically.Ideally, it should perform this dual power switch by default for affected ports, but add an option to disable dual switching for some odd usage cases.
The text was updated successfully, but these errors were encountered: