As signage suggested above, my first thought would be that the computer is set to some power usage settings that is disconnecting communication with USB devices after idle for so long. What is your OS, and I can help walk you through how to change your settings to "High Performance" or "Always On".
The next possible cause could be the length of the USB cable as going above 15 feet length can cause communication errors.