Oforgoodnessakes...It's that old bug again, and it's in win 7 just like XP. You gotta turn standby, sleep, hibernate OFF and leave it off, god help you if "log off" without shutting down. My point being that on some make and models of computer, this stuff don't work, and will lock the computer or otherwise cause malfunctions if it's not turned off. OK this does not happen on ALL computers.
Another problem is USB power saver mode, the computer turns off the USB, thinking that it's saving power, then your mouse and keyboard stops working.
Go into the power settings and set up your own profile that will work with your computer. Click start, click control panel,
look up at the top of the control panel window, look for the path bar that says:
click the down arrow in that control panel> bar, click Control Panel/All Control Panel Items in the drop down menu
On the right row/ side of the window click power options
See if the "Balanced" power plan is checked, click: change plan settings
Set "turn computer off" to never
Set "turn monitor off" to "never" if you are having problems with the computer working correctly after the monitor has automatically turned itself off.
This problem does not occur on all computers, only some.
Click: "Change advanced power settings"
Now click all the + signs, to expand the menus of the power settings
double click each item to reset the preferred power setting, set USB power saver mode to OFF if you are having a problem with USB shutting off....etc...look through all the settings and adjust accordingly, to prevent problems.
save your settings, restart the machine.