power down USB
Bryan
brakeb at gmail.com
Tue Oct 28 03:27:44 CET 2008
I have an ALIX box with two USB ports on it. I plugged in an
external, bus powered 160 GB drive.
Here is a scenario of what I'd like to do:
1. I plug in the drive, OpenBSD senses the drive in the USB hub, and I
can mount it. Leave for work.
2. I'm at work. I SSH in to the server, and mount the drive. I
transfer items off of it, and am done with the box.
3. I realize that leaving my little bus powered drive running all the
time will only be detrimental, so I umount the drive, and issue a
command that allows me to power off the USB port/hub it is plugged
into, so as to save the drive.
4. Later, I realize I need to put something on the portable drive, so
I SSH in and issue a command to power up the USB hub. OpenBSD
re-senses the drive, and I can re-mount it.
Is this scenario possible with openbsd without console access, or
rebooting the server? Cause, you know, it would be nice to have...
I did read the name pages for usbhidctl(1), usbhidaction(1), uhid(4),
uhidev(4), and usb(4). Nothing mentioned power control...
Regards,
Bryan Brake
More information about the Openbsd-newbies
mailing list