USB Power(5 Volt) Switching Off/On?

Hi,

I have a project that needs to switch USB power (5 Volt) Off/On every 1 minute periodically. Now I'm using the poweroff command at startup, but I must turn on the PC every minute and It's very hard :( Is there any way to perform this procedure automatically?
 
A mobile phone charger could also supply the power, but you would need some means of switching it. Maybe there is some way along the apropos lspci things which can allow you to turn the power to some device on and off. Script away as needed.
 
Thanks, I'm trying with apropos lspci now. I read/write on my USB but need to switch it periodically.
 
Thanks to all,

I tried all of the suggestions but all of them could not completely switch off/on the USB Power. I must completely power down and then power on my PC every minute! Is there any command to power down the PC and then automatically power on?
 
Not really, if I remember correctly. The system can allow you to power off any PCI endpoint which has no driver attached. So you would need to load the driver and unload the driver, and then check if the power is also following this. I would need access to my laptop to check this out.
 
What about using WoL (wake on LAN) to power the PC back up?

Have you considered looking into something like an Arduino to do what you want? Not sure what your skill set or budget is, but I'd imagine that you could easily build a circuit that switches on/off using a USB port or phone charger, parts from DigiKey, and a schematic found online for under $20.00. Think along the lines of a simple LED blinking circuit, but with longer pauses between cycles. Just a thought.
 
Back
Top