This article will show you how to keep Windows from turning off your USB ports when the system is asleep. If you are having issues with waking your computer back up from sleep it may be that Windows is disabling your USB ports and causing your mouse and keyboard to stop working while asleep. Try this if you are having trouble waking your computer back up.
1. Right click the windows Start Button and go to Device Manager
2. Open Universal Serial Bus Controllers
3. Double click any devices that are labelled as USB Hubs and go to Power Management
4. Uncheck the box for “Allow the computer to turn off this device to save power”