Windows 7 Forums


Windows 7: Hibernate - Enable or Disable


Hibernate - Enable or Disable

How to Enable or Disable Hibernate in Windows 7 and Windows 8
Published 07 Dec 2008
Published by

Featured Tutorial

Make Windows 7 bootable after motherboard swap
Make Windows 7 bootable after motherboard swap

Paragon P2P Adjust OS - Make Windows 7 bootable after motherboard swap

Clean Up Factory Bloatware
Clean Up Factory Bloatware



Chrome GPU Hardware Acceleration - Turn On or Off
Chrome GPU Hardware Acceleration - Turn On or Off

How to Turn GPU "Hardware Acceleration" On or Off in Chrome

Portable OS - Carry your OS on an External Drive
Portable OS - Carry your OS on an External Drive

How to Create a Portable OS on an External Drive

Dual Boot - Windows 7 and Linux
Dual Boot - Windows 7 and Linux

How to Correctly Setup a Dual Boot with Windows 7 and LinuxMint13
How to Enable or Disable Hibernate in Windows 7 and Windows 8

information   Information
This tutorial will show you how to enable or disable hibernate and restore or delete the hiberfil.sys file in Windows 7 and Windows 8.

When hibernate is disabled, the Hibernate option is missing from the Start Menu (Windows 7 only), Shut Down Windows dialog, Power menu (Windows 8 only) and the Advanced Power Plan Options.

You must be logged in as an administrator to be able to do the steps in this tutorial.

Note   Note
By default, the size of the hidden protected OS hibernation file (C:\hiberfil.sys) is 75% of the total amount of installed RAM on your computer.


Tip   Tip






OPTION ONE
To Enable or Disable Hibernate in a Elevated Command Prompt
1. To Enable Hibernate
NOTE: This step will restore the hiberfil.sys file, and the Allow hybrid sleep and Hibernate after Power Options under Sleep.
A) Open a Elevated Command Prompt.

B) In the elevated command prompt, type powercfg -h on and press Enter. (see screenshot below)
Hibernate - Enable or Disable-enable.jpg
C) Close the elevated command prompt.

D) If you would also like to have hibernate turned on, then you will also need do to step 2 in OPTION FOUR below.
2. To Disable Hibernate
NOTE: This step will disable hibernation, delete the hiberfil.sys file, and remove the Allow hybrid sleep and Hibernate after Power Options under Sleep. This will also disable fast startup in Windows 8.
1. Open a Elevated Command Prompt.

2. In the elevated command prompt, type powercfg -h off and press Enter. (see screenshot below)
Hibernate - Enable or Disable-disable.jpg
3. Close the elevated command prompt.



OPTION TWO
To Enable or Disable Hibernate using a REG File Download
1. To Enable Hibernate
NOTE: This step will restore the hiberfil.sys file, and the Allow hybrid sleep and Hibernate after Power Options under Sleep.
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Enable_Hibernate.reg

download
2. To Disable Hibernate
NOTE: This step will disable hibernation, delete the hiberfil.sys file, and remove the Allow hybrid sleep and Hibernate after Power Options under Sleep. This will also disable fast startup in Windows 8.
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Disable_Hibernate.reg
download
3. Save the .reg file to the desktop.

4. Double click/tap on the downloaded .reg file to merge it.

5. Click/tap on Run, Yes (UAC), Yes, and OK when prompted.

6. Restart the computer to apply the changes.

7. If you would also like to have hibernate turned on, then you will also need do to step 2 in OPTION FOUR below.

8. When finished, you can delete the downloaded .reg file if you like.



OPTION THREE
To Enable or Disable Hibernate in Registry Editor
1. Open the Start Menu, type regedit in the search box, and press Enter.

2. In regedit, navigate to the location below. (see screenshot below)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power

Hibernate - Enable or Disable-reg-1.jpg
3. In the right pane of the Power key, double click/tap on HibernateEnabled, and do step 4 or 5 below for what you would like to do. (see screenshot above)

4. To Enable Hibernate
NOTE: This step will restore the hiberfil.sys file, and the Allow hybrid sleep and Hibernate after Power Options under Sleep.
A) Type in 1, and click/tap on OK. (see screenshot below)
Hibernate - Enable or Disable-reg-2.jpg
B) Go to step 6.
5. To Disable Hibernate
NOTE: This step will disable hibernation, delete the hiberfil.sys file, and remove the Allow hybrid sleep and Hibernate after Power Options under Sleep. This will also disable fast startup in Windows 8.
A) Type in 0 (zero), and click/tap on OK. (see screenshot above)

B) Go to step 6.
6. Close regedit, and restart the computer to apply the changes.

7. If you would also like to have hibernate turned on, then you will also need do to step 2 in OPTION FOUR below.



OPTION FOUR
To Turn Hibernate On or Off in Power Options

NOTE: This option does not disable hibernate, but only turns it off for the power plan.
1. Do either step 2 or 3 below for what you would like to do.

2. To Turn On Hibernate
NOTE: You could also use a hibernate shortcut to manually put the computer into hibernation instead or in addition to this option.
A) If you have not already, then you will need to enable hibernate using either OPTION ONE, OPTION TWO, or OPTION THREE above first.

B) Open the Advanced Power Plan Settings for your power plan, then expand Sleep. (see screenshot below step 4)

C) Under Hibernate after, set the Setting (Minutes) to how many minutes you want your computer to sit idle for before it goes into hibernation. (see screenshot step 4)

D) Go to step 4.
3. To Turn Off Hibernate
NOTE: If you disabled hibernate using OPTION 1, 2, or 3 above, then there's no need to do this since Hibernate after and Allow hybrid sleep will no longer be listed in your power options.
A) Open the Advanced Power Plan Settings for your power plan, and expand Sleep. (see screenshot below step 4)
B) Under Hibernate after, set the Setting (Minutes) to Never. (see screenshot below step 4)

C) Under Allow hybrid sleep, set Setting to Off. (see screenshot below step 4)

D) Go to step 4.
4. When finished, click/tap on OK. (see screenshot below)
Hibernate - Enable or Disable-power_options.jpg
That's it,
Shawn





Related Tutorials

Need more help? Try searching our extensive help and support site.
Loading
27 Feb 2009   #1
Dinesh

 

Nice tutorial Shawn but just in case hibernation option is not present even after typing this command, then just go to power options n click on Change advanced power settings, then expand Sleep n disable Allow hybrid sleep n expand Power buttons n lid, change the power button action to hibernate.

My System SpecsSystem Spec

27 Feb 2009   #2
Brink

 

Hi Dinesh,

This was to just simply enable or disable hibernation, but you make a good point to include doing so in the Power Plan settings as well. The tutorial has been updated to include that as well.

Thank you,
Shawn
My System SpecsSystem Spec
28 Feb 2009   #3
Dinesh

 

Anytime Shawn.
My System SpecsSystem Spec
.


03 Mar 2009   #4
vindows

 

Ya I would better prefer by setting up my Power Plan.
My System SpecsSystem Spec
03 Mar 2009   #5
Brink

 

It's unanimous then.
My System SpecsSystem Spec
05 Mar 2009   #6
Airbot

 

Hi Shawn,

The option isn't available in Disk Cleanup anymore, at least with the current build I'm running.
My System SpecsSystem Spec
05 Mar 2009   #7
limneos

 

Quote   Quote: Originally Posted by Airbot View Post
Hi Shawn,

The option isn't available in Disk Cleanup anymore, at least with the current build I'm running.
Hey Aaron...
Do you already have hibernation enabled?
My System SpecsSystem Spec
05 Mar 2009   #8
Airbot

 

No, why? Is it only supposed to show up with it enabled? Cuz I always have it disabled in other builds and had the option in Disk Cleanup. I enabled it to see, still not there. I'm using build 7048 x64. I don't need to use it, just reporting that the option's not there.
My System SpecsSystem Spec
05 Mar 2009   #9
limneos

 

Yes, after several tests, enabling it, hibernating, resuming back, I can confirm the option is not there in 7048, however it's always there in 7000. I guess the new build either deletes automatically the temp file used, or it does not include this feature in disk cleanup.

I think I read somewhere about it..

Will post the link when I find it.
My System SpecsSystem Spec
Comment

 Hibernate - Enable or Disable problems?



Tutorial Tools



Similar help and support threads for: Hibernate - Enable or Disable
Windows 7 Tutorial Category
Taskbar Always On Top - Disable or Enable Tutorials
Gadgets - Enable or Disable Tutorials
Enable and/or Disable AHCI Hardware & Devices
Backup to CD or DVD - Enable or Disable Tutorials
How to disable Lock on wake-up after Hibernate? General Discussion


All times are GMT -5. The time now is 11:53 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd