The simplest could be something like these, https://www.amazon.ca/Powered-USB-Hub/s?k=Powered+USB+Hub. 11 (of the first 12) products are USB 3 hubs with individual port power controls. I have seen single-port USB cables with power switches, too, although I don't remember where.
Your idea could be better, but these already exist.

Only some (although, *most* AFAIK) USB hub chipsets support turning power on and off for individual ports. Under Linux you can use https://github.com/mvp/uhubctl to control it. Nothing exists (that I know of) under OpenBSD today.

You might also use a "smart" hub like those seen at https://electronics.stackexchange.com/questions/393468/efficient-way-to-selectively-unpower-usb-ports and port the necessary software to OpenBSD. (The ugen device driver would probably be adequate, but it might be more of a rewrite than a port. No idea how painful that would wind up being, I've never programmed anything using ugen.)

Options exist, but it's possible none of them are *exactly* what you want.

-Adam


On 2021-10-07 11:57, jeanfrancois wrote:
Ok thank both,

I might develop such device then, if other people interested I'd share
the product.

I'll be used to have backup / spare drives online for the work time only;

Jean-François

Le 06/10/2021 à 16:36, [email protected] a écrit :
If nothing can be found software-side, a dedicated hardware
could possibly do it.

If it exists driver side, some tool like this could give a
hint for finding it on other operating system, and then comparing
with OpenBSD as well as getting the actual standard names for
that feature: https://github.com/mvp/uhubctl

Not really a solution, but rather a way to get a little
closer.

Reply via email to