mvp / uhubctl

uhubctl - USB hub per-port power control
Other
2.23k stars 232 forks source link

Feature request: turn off port #469

Closed N6REJ closed 2 years ago

N6REJ commented 2 years ago

Is it possible to have your program work on a port if no hub is detected? When using octoprint the 5v from usb port powers up the screens which is a problem. Would be nice if we could turn the 5v off on the usb port itself.

mvp commented 2 years ago

USB ports cannot exist by themselves in a thin air - they always belong to some hub. Even if port is onboard, it still belongs to some USB hub, perhaps root hub. Root hub means one where connection to USB bus originates from.

uhubctl can control port power on any USB hub as long as hub advertises power control support. You can try operating hubs that don't advertise such support with option -f (--force), but it is extremely unlikely to actually work.

N6REJ commented 2 years ago

apparently I had to use sudo uhubctl not just uhubctl it shows 2 hubs with 8 ports. One port of which says broadcom but I don't know if thats the right port or not. This is on a laptop