How to switch off power to USB ports when computer is switched off?
When I switch off my MacBook Pro but leave it connected to the AC adapter the USB ports remain powered. This can be seen by connecting an iPod to the MacBook Pro and then switch the MacBook Pro off. The iPod will continue charging.
Usually this is a nice feature. However I have an USB powered device (elgato eyeTv DVB-T stick), which blocks the entire USB bus when it stays powered on when the computer is powered off. When the computer is switched on again various USB devices are missing (internal Bluetooth, internal iSight and the eyeTv stick itself).
When the computer is powered by battery the USB power is automatically removed when the computer is switched off and everything works fine.
When the MacBook Pro runs Ubuntu Linux it also works fine, because Linux always switches off USB power on shutdown.
Is there a way to tell Mac OS X to always switch off USB power on shutdown? I have read the pmset and nvram manpages but not found what I am looking for.
An API would also be helpful, so I could write a little C program and run it everytime on shutdown. The last resort would be a custom kernel extension, but I hope to avoid that.
Thanks,
Jolanta Urban
MacBook Pro, Mac OS X (10.5.2)