I do almost all my work from my Dell XPS M1710 laptop. Today, I needed to take my laptop with me to show some work to a client I had done some development for. I closed the lid of my XPS and walked out of the room to grab my car keys. When I returned, I expected my laptop to have hibernated and shutdown, but when I arrived back the lights were still on and after opening the lid I was greeted by the Windows logon. There was no hibernate. When I checked the power settings, I could see where hibernate was listed as the choice when I first set all this up but it obviously did not work. When I clicked on the drop down menu, hibernate was no longer an option.
hhhmmmm…
Personally, I love hibernate. It has to be the best power feature available. You close your laptop’s lid, everything gets saved to disk, and the computer turns off. When you turn your computer back on all you do is type in your password and within a few moments you are right back to where you were.
So what happened to my hibernate feature? I know my model laptop supports hibernate because it worked before so why does Vista not list it as an option? In my case, it was because of the disk cleanup utility. The disk cleanup utility is a wonderful thing as it makes a very simple task of:
* Cleaning up Temporary Internet Files
* Deleting old shadow copies (see a related post)
* Deleting other old temp installation files
And much, much more. To clean up manually the stuff the disk cleanup utility does in one fell swoop could easily take you 3x the time. But there is one thing the utility cleans up that is the cause of our problem as the below screenshot indicates:
And there is the cause of our not having hibernation. The disk cleanup utility wiped out the file Vista uses to store a duplicate of the contents of memory when hibernating. Apparently, if that file is not present, the power features of Windows assumes hibernation is not available. Fortunately, the remedy is simple. On Windows Vista, go to Start | All Programs | Accessories and right click on the Command Prompt icon. From the menu, choose Run As Administrator. Then, click OK on the UAC prompt so the command prompt will appear with full Admin rights. Keep in mind that we assume you are logged in with an account with limited admin rights to begin with, you just need to be elevated once UAC verifies what’s going on. If you are logged in as a regular user, log out and back in as a user that is a member of the Administrator’s Group or use the built-in Administrator account. Next, use the powercfg command to re-enable hibernation by typing the following command:
powercfg /hibernate on
Go back to the power settings in Vista and you’ll notice that hibernate is now an option (if it still isn’t, try a quick reboot).
This time, when I closed the lid of my laptop, it hibernated.
JamesNT
August 1, 2008 at 3:18 am |
This is exactly what happened to me. Thanks for the tip!
August 9, 2008 at 4:09 am |
Thanks a lot dude… i`ve been searching for the solution since long….. it worked….
September 28, 2008 at 10:45 am |
Wow, thanks man…I could not figure out where it went…I had a virus and so i did a disk clean up…must have just taken the files with it.. Thank you
October 12, 2008 at 1:28 am |
Thank you so much! I couldn’t stand the blinking blue lights of “sleep” anymore!
November 3, 2008 at 10:38 pm |
same thing happenes to me but when i tried powercfg command it displays error that you do not have the permission to turn on or off this function
still have to shut down my laptop every time
any more ideas
November 10, 2008 at 3:21 am |
You have to start the command prompt with elevated credentials. Instead of just going to Accessories and left-double-clicking on the command prompt icon to start it, right click the icon and choose Run As Administrator.
JamesNT
December 10, 2008 at 8:42 am |
thanks, problem solved! this happened to me too.
February 12, 2009 at 1:24 pm |
thanks a ton! this really helped me!
April 23, 2009 at 7:11 am |
[...] thanks to this site there’s another problem with my other PC that was due some file got wiped accidently. So [...]
May 4, 2009 at 2:02 pm |
thanks a ton…