Enable or Disable Windows 7 Hibernation
In this article
Yes, you can enable or disable hibernation in Windows 7. Hibernation saves your current session to your hard drive, allowing you to resume exactly where you left off after shutting down and turning your computer back on. This is different from sleep, which uses a small amount of power to keep your session in RAM.
What You'll Need
- Administrator access to your Windows 7 computer.
Step-by-Step
- Open the Command Prompt as Administrator: Click the Start button, type
cmdin the search box, right-click oncmd.exein the search results, and select Run as administrator. Click Yes if prompted by User Account Control. - Enable Hibernation (if disabled): In the Command Prompt window, type the following command and press Enter:
powercfg /hibernate on. You should see a message confirming that hibernation has been enabled. - Disable Hibernation (if enabled): In the Command Prompt window, type the following command and press Enter:
powercfg /hibernate off. You should see a message confirming that hibernation has been disabled. - Adjust Hibernation File Size (Optional): The hibernation file (hiberfil.sys) typically uses about 75% of your RAM. You can adjust this size. To do so, type the following command, replacing x with the desired percentage (e.g., 50 for 50%):
powercfg /hibernate size x. For example, to set it to 50%, use:powercfg /hibernate size 50. Note that a smaller size will save disk space but might result in a slower hibernation process or problems if you have a lot of programs running in memory. - Verify Hibernation is Enabled/Disabled in Power Options: Open the Control Panel (Start > Control Panel). Change the view to Large icons or Small icons. Click on Power Options. Click on Change plan settings next to your currently selected power plan. Click on Change advanced power settings. Expand Sleep, then expand Hibernate after. If hibernation is enabled, you'll see a time value (e.g., 120 minutes). If it's disabled, it will say Never. You can adjust the time before hibernation occurs here, or set it to Never to disable it entirely, although the command prompt is the more reliable method. Note that menu labels can slightly differ based on your version, device or region.
Common Mistakes
- Not Running Command Prompt as Administrator: The commands
powercfg /hibernate onandpowercfg /hibernate offrequire administrator privileges to work. If you don't run Command Prompt as administrator, you'll likely receive an error message. - Typing the Command Incorrectly: Double-check that you've typed the commands exactly as shown, including the spaces and the forward slash.
- Confusing Hibernation with Sleep: Hibernation and sleep are different. Sleep keeps your computer in a low-power state with your session in RAM, while hibernation saves your session to the hard drive.
- Insufficient Disk Space: The hibernation file (hiberfil.sys) can be quite large (typically 75% of your RAM). Ensure you have enough free disk space on your system drive (usually C:) to accommodate this file.
Tips
- Monitor Disk Space: The hibernation file can consume a significant amount of disk space. Regularly monitor your disk space to ensure you have enough free space.
- Adjust Hibernation File Size: If you're concerned about disk space, you can reduce the size of the hibernation file, but be aware of the potential performance implications.
- Test Hibernation: After enabling hibernation, test it to ensure it works correctly. Shut down your computer, then turn it back on to see if your session is restored properly.
- Consider SSD Performance: While hibernation works fine on SSDs, frequent hibernation and restoration can contribute to wear over time. If you have an SSD and use hibernation frequently, consider adjusting the hibernation time or disabling it altogether.
Troubleshooting
- Command Not Recognized: Ensure you've typed the command correctly and are running Command Prompt as administrator.
- Error Message: “The system cannot find the path specified.”: This usually indicates a problem with the system files. Try running System File Checker (SFC). Open Command Prompt as administrator and type
sfc /scannowand press Enter. Follow the on-screen instructions. - Hibernation File Not Created/Deleted: If the hibernation file (hiberfil.sys) doesn't appear after enabling hibernation, or disappears after disabling it, there might be a system configuration issue. Restart your computer and try again.
- Computer Doesn't Resume from Hibernation: This can be caused by various factors, including driver issues or corrupted system files. Ensure your drivers are up to date. You may need to perform a system restore to a previous point in time.
- Hibernation Takes Too Long: A large hibernation file size or a slow hard drive can cause hibernation to take a long time. Consider reducing the hibernation file size or upgrading to a faster storage device.
Frequently Asked Questions
What is the difference between sleep and hibernation?
Sleep keeps your session in RAM, using a small amount of power. Hibernation saves your session to the hard drive and shuts down the computer, using no power.
How much disk space does hibernation use?
Hibernation typically uses about 75% of your installed RAM.
Can I disable hibernation completely?
Yes, you can disable hibernation using the powercfg /hibernate off command in Command Prompt.
Why is my hibernation file so large?
The size of the hibernation file is determined by the amount of RAM you have installed. A computer with more RAM will have a larger hibernation file.
Is hibernation safe for SSDs?
Yes, hibernation is generally safe for SSDs, although frequent use can contribute to wear over time.