This material was tested on Windows 7 64-bit Ultimate.
PC Sleep means that computer will stop and return upon touch of a keyboard or a mouse.
PC Hibernate means deeper sleep. Computer will stop and return back through a Windows Resume (you will see BIOS options) upon touching Power button on a front panel.
Everybody wants a shortcut for PS Sleep to save time on clicks. Instead of 3 clicks Start – Shutdown – Sleep every time, let’s have just one click – Sleep. There is a way to do that. Please tell me, if this also works in Windows XP. (Yes, it does, partially.)
PC Sleep Shortcut
For PC Sleep shortcut create a CMD file Sleep.cmd and place this code in it:
powercfg -h off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg -h on
Create a shortcut to this file. Pick an icon using %SystemRoot%\system32\SHELL32.dll
Note: this batch file does NOT work on Windows Server 2008 R2.
For Windows 7 you have to go to shortcut Properties – Advanced and click Run as administrator check box. If you do not, youc will go to Hibernate, and upon return you will see momentarily this error message:
You do not have permission to enable or disable the Hibernate feature
Of course, if you do that, you have to confirm your action through User Account Control every time you click on that shortcut: Do you want to allow the following program to make changes to your computer? So 2 clicks saved, one click lost.
PC Hibernate Shortcut
For PC Hibernate you do not need a batch file. Create a shortcut to this command:
Rundll32.exe Powrprof.dll,SetSuspendState Sleep
Note: this shortcut DOES also work on Windows Server 2008 R2.
You are done! See, why to turn your mouse upside down in the comments.