Hi.
i've got a PowerMac g4 (AGP-graphics) that i have installed a usb 2.0 PCI card into.
However, if the computer goes to sleep with usb devices lugged into it, it will not wake up. But if they are disconnected, it works just fine.
I have now set the power management so that it will not go to sleep. But you can put it to sleep yourself, but then you have to make sure that no usb 2 device is attatched.
Would it be possible to make a script that checks if any devices are plugged into the usb 2 PCI card. and if you try to put it to sleep, or if the power management tries to put it to sleep, it would check for usb 2 devices, and if they are plugged in it would ask you to unplug them before it could go to sleep.
How would you do such a thing, and is it at all possible.. etc..
that's about it.