Switching on/off 5V power to a USB port

Ian Lepore freebsd at damnhippie.dyndns.org
Tue Apr 3 22:26:19 UTC 2012

On Tue, 2012-04-03 at 17:13 -0500, Ron McDowell wrote:
> I just got a little USB powered fan and it sure would be nice if I could 
> have cron on my FreeBSD box turn it on or off at certain times by 
> switching off the 5V line on a USB port.  Anyone know how I can do 
> that?  Thanks.
> BTW this is a pretty decent fan for the money. :)  
> http://www.amazon.com/gp/product/B0033WSDOM/

The usbconfig(8) command has power_on and power_off commands.  I've
never used them so I can't say for sure they'll do what you want.

-- Ian

More information about the freebsd-current mailing list