I have an iMac 2.66GHz in which a USB Studiologic keyboard controller is connected to by USB. If the keyboard unattended for 15 minutes or longer it disconnects itself. I have to take out and reinsert the USB plug and then it reconnects itself. I have changed the Energy Saver ( in System Preferences) to Never shut off for computer. Don't know if that will work?