How to Enable or Disable Hibernation in Windows 7
Windows 7 provides power saving features in the shutdown options. If you do not want to shut down your computer (you just want to step off your computer temporarily), windows gives you the sleep and hibernation feature to save power while you are away. You can go to the hibernation or sleep mode directly from your start menu, under the power options.
Hibernation is a power-saving state designed primarily for laptops but is available for other PCs too. By default, if you leave your computer unattended for too long, it will turn off the screen and some hardware (e.g. USB, Wi-Fi) and go to sleep mode to save power. If it stays in sleep mode for too long, it will save all your data into a system file and then power down. This is the hibernation mode, and it does not need your computer to be powered anymore. Unlike the sleep mode, it will take you longer to get out of the hibernation mode, but still faster than booting the computer. The combination of the sleep mode and hibernation mode is known as hybrid sleep setting.
There is a hidden system file named Hiberfil.sys located in the root folder of the drive where the operating system is installed. The Windows Kernel Power Manager reserves this file when you install Windows. The size of this file is approximately equal to how much random access memory (RAM) is installed on the computer. So if you have a 4GB RAM the Hiberfil.sys file will be between 2 and 4GB depending on the data stored in it. The computer uses the Hiberfil.sys file to store a copy of the system memory on the hard disk when the hybrid sleep setting is turned on such that everything that is loaded to the RAM will not be lost. If the Hiberfil.sys file is not present, the computer cannot hibernate.
You can view if the Hiberfil.sys file is present by going to.
- Open my computer and go to local disk (c:)
- On the top left corner, click on organize, and select ‘folder and search options’
- Go to the view tab
- From the advanced options, go to hidden files and folders and select ‘Show Hidden files folders and files’
- Also uncheck the ‘Hide protected operating system files’
- Click apply then OK
If the hybrid sleep setting is on, you will be able to see the Hiberfil.sys file on the root of your operating system drive.
It is obvious that hibernation uses a substantial amount of your hard disk space, and if you are someone that is bent on saving time, hibernating can cost you a little. So how do you disable hibernation such that your computer will never hibernate? This article describes how to disable and then re-enable hibernation on a computer that is running Windows.
Method 1: Disable and enable hibernation using command prompt
Using command prompt, we can disable hibernation. You will need an administrator account for this operation since you will have to run command prompt as an administrator.
To Disable Hibernation
- Click Start, and then type cmd in the Start Search box. (Don’t use run since it won’t allow you to run as an administrator.
- In the search results list, right-click Command Prompt or CMD, and then click Run as Administrator.
- When you are prompted by User Account Control, click Continue.
- At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
- Type exit, and then press Enter to close the Command Prompt window.
From the system root, you will notice that the Hiberfil.sys file is no longer available.
To Enable Hibernation
- Click Start, and then type cmd in the Start Search box.
- In the search results list, right-click Command Prompt or CMD, and then click Run as Administrator.
- When you are prompted by User Account Control, click Continue.
- At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
- Type exit, and then press Enter to close the Command Prompt window.
From the system root, you will notice that the Hiberfil.sys file is now available
Method 2: Use Registry Edit to enable and disable hibernate
- Press the Windows + R keys to open the Run dialog, type regedit, and hit enter.
- In registry edit window, navigate to the location below.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
- In the right pane of the Power key, double click on HibernateEnabled, and do step 4 or 5 below for what you would like to do
- To enable hibernation type in 1 (one) in the value data box, and click OK.
- To disable hibernation type 0 (zero) in the value data box and click OK
- Restart your PC for effect to take place
Method 3: Turn Hibernate On or Off in Advanced Power Options
- Press the Windows + R keys to open the Run dialog, type powercfg.cpl, and click on OK.
- From your current power plan (shown as selected by a radio button), click on change plan settings.
- In the next window, click on change advanced power settings
- To enable hibernation, you first have to use method 1 or 2 to enable hibernation (if you had previously disabled hibernation using these methods) otherwise these options will be grayed out.
- From the advanced power options settings, expand the Sleep option
- Under Hibernate after, set the Setting (Minutes) to how many minutes you want your computer to sit idle for before it goes into hibernation
- Click on Apply, then OK
- To Turn Off Hibernate
- From the Advanced Power Plan Settings for your power plan, expand the Sleep option
- Under Hibernate after, set the Setting (Minutes) to Never
- Under Allow hybrid sleep, set Setting to Off.
- Click on Apply, then OK
If your PC or laptop changes power plans, you need to do this for the other plan. Laptops always switch power plans depending on whether the AC is plugged in or not.
Of all the power-saving states in Windows, hibernation uses the least amount of power (virtually no power is used in this mode). On a laptop, use hibernation when you know that you won’t use your laptop for an extended period and won’t have an opportunity to charge the battery during that time. You may lose data if you make hibernation unavailable and a power loss occurs while the hybrid sleep setting is turned on. Remember, when you make hibernation unavailable, hybrid sleep does not work.