PDA

View Full Version : Trigger an event to power down USB port(s)



chipzoller
February 21st, 2004, 09:44 PM
Do any of you gurus know of a way to have an event that will power down either all or better yet a certain USB port? And another press of the button will power-up that same port or ports. I have a device I wish to power down upon a button press.

thanks,


Chip

slavka012
February 21st, 2004, 10:32 PM
You can disable the device in the OS (unload drivers etc), but it is not possible to power down a USB device.

Regards, Slava

chipzoller
February 21st, 2004, 10:57 PM
This device is nothing more than a USB light and therefore has no drivers or anything the OS recognizes (other than a circuit).

Is it not possible to powerdown the port then?

miked
February 22nd, 2004, 01:19 AM
If you can find a program on the web that will do this, then you can have Girder execute it as appropriate.

Another idea is to hook up the LED's to a serial port -- I believe that Marsupial has done this. The serial port is more easily controlled than USB ports. See http://www.girder.nl/phpBB2/viewtopic.php?t=6097

Finally, the Rube Goldberg approach is to wire in a relay in the power-line of a usb cable, and then use Girder to control the relay (via the serial port). I did this with an IR emitter:

http://www.girder.nl/phpBB2/viewtopic.php?t=6073

slavka012
February 22nd, 2004, 08:43 AM
Is it not possible to powerdown the port then?

Nope.