How to enable, disable, configure, and troubleshoot hibernate mode โ a complete technical reference for home users and IT professionals.
Hibernation is a power-saving state that saves the entire contents of your computer's RAM to a special file on your hard drive or SSD โ called hiberfil.sys โ and then completely powers off the machine. When you press the power button again, Windows reads that file and restores exactly where you left off: open apps, browser tabs, documents, and all.
Unlike Sleep mode, hibernation does not require any power to maintain the session. This makes it ideal for laptops on the go: close the lid for days or even weeks, and your work will still be there when you return โ even if the battery drains completely.
When you trigger hibernation, the Windows kernel writes a memory snapshot (compressed) to C:\hiberfil.sys. The BIOS/UEFI is instructed to enter the S4 ACPI power state โ a full power-off. On the next boot, the Windows Boot Manager detects a valid hibernate image, skips the normal boot process, and decompresses the snapshot back into RAM. The process is transparent to the user.
Windows 10 and 11 offer three power-saving modes. Understanding which one to use depends on how long you plan to leave your PC idle.
| Feature | Sleep | Hibernate | Hybrid Sleep |
|---|---|---|---|
| Power draw | Low (~1โ3 W) | None (0 W) | Low (~1โ3 W) |
| Wake speed | ~1โ3 seconds | ~10โ30 seconds | ~1โ3 seconds |
| Session preserved on power loss | โ No | โ Yes | โ Yes |
| Uses hiberfil.sys | No | Yes | Yes |
| Best for | Short breaks (< 1 hr) | Overnight / travel | Desktop PCs |
hiberfil.sys is a hidden, protected system file created by Windows when hibernation is enabled. It lives in the root of your system drive and is reserved by the OS to store the RAM snapshot. You cannot move or rename it โ it must always be at C:\hiberfil.sys.
By default, Windows reserves 75% of your total RAM for hiberfil.sys. On a machine with 16 GB RAM that means roughly 12 GB of disk space is permanently allocated โ even when not in hibernate. On a machine with 32 GB RAM, this jumps to 24 GB.
hiberfil.sys to 50% of RAM using a single command (see Section 8) without losing hibernation functionality โ Windows compresses the snapshot at save time anyway.
The file is hidden and protected by default. To view it in File Explorer, go to:
View โบ Show โบ Hidden items + View โบ Options โบ Uncheck "Hide protected operating system files"
Alternatively, you can check its current size from an elevated Command Prompt:
dir /a C:\hiberfil.sys
There are three reliable ways to turn on hibernation in Windows 10. All three achieve the same result; choose the one you're most comfortable with.
control, and press Enter to open the Control Panel.Open Command Prompt as Administrator (Win + X โ Windows Terminal (Admin) or search for cmd โ right-click โ Run as administrator), then run:
powercfg /hibernate on
That's it. The command will create hiberfil.sys and enable the hibernate option immediately. No restart required.
Open Registry Editor (Win + R โ regedit) and navigate to:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Power
Find or create the DWORD value HibernateEnabled and set it to 1. Then find HibernateEnabledDefault and also set it to 1.
Windows 11 redesigned the Settings app and moved some power options, but the underlying mechanism is identical to Windows 10. Here's how to enable hibernation on Windows 11.
Right-click the Start button and open Terminal (Admin) or Command Prompt (Admin), then run:
powercfg /hibernate on
To confirm hibernation is enabled on any version of Windows, run the following in an elevated terminal:
powercfg /a
Look for "Hibernate" in the list of available sleep states. If it shows "Hibernate has not been enabled", re-run powercfg /hibernate on as administrator.
You might want to disable hibernation to reclaim disk space โ especially on a small SSD. Disabling it will automatically delete hiberfil.sys and free up gigabytes.
Open Command Prompt or PowerShell as Administrator and run:
powercfg /hibernate off
Windows will immediately delete hiberfil.sys and free the disk space. No restart is needed.
If you want to keep hibernation enabled but reclaim some disk space, you can shrink hiberfil.sys to 50% of RAM instead of the default 75%. Windows will use higher compression when saving the sleep image, which works fine for most hardware.
Run the following in an elevated Command Prompt or PowerShell:
powercfg /h /type reduced
powercfg /h /type full
On a 16 GB system, switching from full to reduced saves 4 GB of SSD space. On a 32 GB system, the saving is 8 GB.
All hibernate management is done through the built-in powercfg utility. Below is a complete cheat-sheet of the most useful commands โ all require an elevated (admin) terminal.
| Task | Command |
|---|---|
| Enable hibernation | powercfg /hibernate on |
| Disable hibernation (deletes hiberfil.sys) | powercfg /hibernate off |
| Check if hibernation is available | powercfg /a |
| Set hiberfil.sys to 50% of RAM (reduced) | powercfg /h /type reduced |
| Set hiberfil.sys to 75% of RAM (full) | powercfg /h /type full |
| Set hibernate file to a custom % of RAM | powercfg /h /size 60 |
| Trigger hibernation immediately | shutdown /h |
| Generate a full power report (HTML) | powercfg /energy |
| Check Fast Startup / boot performance | powercfg /sleepstudy |
You can set hiberfil.sys to any percentage between 40% and 100% of your RAM. For example, to reserve exactly 60%:
powercfg /h /size 60
You can also trigger hibernation from a PowerShell script, useful for automation or scheduled tasks:
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false)
Below are the most common reasons why the Hibernate option is missing or disabled, along with their solutions.
Cause: The option may be enabled but not shown in the Power menu. It must be explicitly added via Control Panel.
Fix: Go to Control Panel โ Power Options โ Choose what the power buttons do โ Change settings that are currently unavailable โ Check Hibernate โ Save changes. (Full steps in Section 7.)
Cause: Hybrid Sleep is enabled, which conflicts with Hibernate being shown as a separate option.
Fix: Open Power Options โ Change plan settings โ Change advanced power settings โ Sleep โ Allow hybrid sleep โ Off. Then revisit the Power menu settings.
This message appears when hibernation is disabled. Simply run:
powercfg /hibernate on
Common causes: outdated or incompatible drivers (especially GPU or chipset), corrupted hiberfil.sys, or third-party security software blocking disk writes.
Fix steps:
sfc /scannow in an elevated CMD to check for corrupted system files.powercfg /h off, restart, then powercfg /h on.Cause: Microsoft disables hibernation by default on devices using Connected Standby (also called Modern Standby / S0 Low Power Idle). These devices cannot use traditional S4 hibernation.
powercfg /a shows "The following sleep states are not available on this system: Hibernate โ System firmware does not support hibernation", the hardware does not support S4 hibernation and it cannot be enabled. This is by design on ARM-based and many modern thin-and-light devices.
The file should be deleted automatically by powercfg /h off. If it persists, reboot and check again. Alternatively, run:
powercfg /hibernate off
shutdown /r /t 0
After the reboot, the file will be gone.
Whether hibernation is right for you depends on your workflow, hardware, and how much disk space you can spare.
sfc /scannow.
shutdown /h and assign a hotkey to it, or (3) use the Start menu Power icon and click Hibernate. The quickest software method is pressing Win, then โป (Power icon), then H using keyboard navigation.
hiberfil.sys. On workstations with very large RAM (128 GB+), hibernate may become impractical and is often disabled in favor of Sleep mode.
Here's everything you need in one place:
powercfg /hibernate on in an elevated CMDpowercfg /hibernate offpowercfg /h /type reducedFor laptop users, hibernation is one of the most useful Windows power features โ it lets you truly power off while preserving your full work session, even surviving complete battery drain. Enable it, add it to the Power menu, and set it to auto-trigger after a few hours of Sleep.
For desktop users, the tradeoff is simpler: Sleep mode is faster to resume and hibernation mainly wastes SSD space. Unless you leave large sessions running overnight, powercfg /hibernate off is a reasonable choice to reclaim disk space and simplify your power workflow.
In both cases, a single admin command-line instruction is all it takes to flip the switch โ no third-party software, no complex configuration. Windows makes this one easy.