Statistics

Total Posts: 308
This Year: 36
This Month: 0
This Week: 0
Comments: 336


RSS 2.0

Admin

Sign In

Navigation


Recent Posts


On this page....

Disabling Hibernation in Vista

Archives

 Full Archives By Category
 2007 Calendar View
<April 2008>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

Categories

Diversions (67) Geek Stuff (105) Life's Rich Pageant (24) Mixed Nuts (46) Ponderous Things (84) Short Attention Span Theatre (19) Stupid Windows Tricks (7)

Blogroll - Fav Blogs


Acknowledgments

DasBlog Theme Design by: Tom Watts
E-mail: Send mail to the author(s)
Theme Image by: dreamLogic

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. Pick a theme:

Whiskey Tango Foxtrot?

# Thursday, April 10, 2008

For laptop users, the ability to hibernate a Windows session can be a pretty useful tool. In a nutshell, hibernation allows Vista to copy the contents of your computer's memory to hard disk and then power down without completely turning itself off, thus saving precious battery resources and allowing you to pick up where you left off at some other time (like after you get off a plane). Pretty cool, but it comes at a cost.

If hibernation is enabled on a PC, Windows will create and reserve a file called hiberfil.sys approximately equal in size to the amount of RAM you have on your system, even if you never intend to use hibernation. If you have a PC with 4 gigs of memory, then this feature might be silently laying claim to a pretty substantial piece of your disk real estate. In "always-on" scenarios, where you are running a Windows machine that you never intend to hibernate, you'd probably think it would be nice to just turn this feature off and reclaim that huge chunk of wasted disk space that you'd previously been freely donating to the OS. 

In XP this was an easy thing to do, just open the Power Options in the control panel and uncheck the box to allow hibernation. In Vista this is not the case, there are no Power Options settings that will let you directly control whether hibernation is enabled or not. All is not lost however, but you do have to get up close and personal with your administrative command prompt in order to enable/disable this feature.

To disable hibernation in Vista you need to take the following steps:

  1. Click the Windows button and type cmd in the Start Search box.
  2. In the search results list, right-click Command Prompt and click Run as Administrator.
  3. If you have UAC turned on, you will need to give it permission to Continue.
  4. At the command prompt, type powercfg.exe -h off, then press ENTER.
  5. Close the command window.

To re-enable hibernation simply repeat the same steps and use the substitute comand powercfg.exe -h on for step 4. 

Or if you are really a Vista shortcut geek, you can simply type the appropriate powercfg.exe command in the Start Search box and hit Ctrl+Shift+Enter to execute it (Ctrl+Shift+Enter is a keyboard shortcut to run a command with admin privileges). A command prompt will flash and disappear, but since the powercfg app doesn't give you any feedback when you run it anyway, you won't really be missing anything.

So go grab yourself that extra disk capacity, it could come in mighty handy on machines that might be starving for some available disk space.