Hibernation on a Mac is officially called Safe Sleep—it saves your open apps and documents to disk before powering down completely, letting you resume exactly where you left off after a full shutdown. Unlike PC hibernation, macOS handles this automatically in certain scenarios (like low battery or extended lid-closed periods), but you can adjust the behavior using Terminal commands. Note: modern Macs with SSDs use a hybrid approach (RAM powered briefly, then deep sleep), and hibernation mode is less relevant on Apple Silicon Macs due to their efficient standby power use. For Intel Macs, you can enable full hibernation to reduce battery drain during long sleeps. No special tools or admin privileges beyond your standard user account are required, but you’ll need Terminal access and to be comfortable entering system-level commands.
What You’ll Need
- A Mac running macOS Monterey (12), Ventura (13), or Sonoma (14)
- Administrator access (your user must be an admin)
- Terminal (found in Applications > Utilities)
- Ensure your Mac is plugged in during configuration to avoid意外 discharge
Step-by-Step
- Open Terminal by pressing Command + Space, typing Terminal, and hitting Return.
- Check your current hibernation mode by entering:
pmset -g | grep hibernatemode
Press Return. You’ll see a number (typically 0, 3, or 25). Mode 3 is the default on Intel Macs (standby + safe sleep); mode 25 is full hibernation (no RAM power, full disk save). - To enable full hibernation (mode 25), enter:
sudo pmset -a hibernatemode 25
Press Return. You’ll be prompted for your administrator password—type it (no characters will show) and press Return again. - Verify the change by re-running:
pmset -g | grep hibernatemode
Confirm it now showshibernatemode 25. - Optionally, disable Standby mode to prevent the system from entering a light sleep after a period (this ensures full hibernation triggers reliably):
sudo pmset -a standby 0
Press Return and enter your password if prompted. - To confirm Standby is off, run:
pmset -g | grep standby
Ensure it showsstandby 0under both battery and AC power lines. - To test hibernation:
- Open a few apps and documents.
- Choose Apple menu > Sleep (or close the lid).
- Wait at least 10 minutes (hibernation may not trigger instantly; on Intel Macs, it usually activates after 3 hours of sleep or low battery).
- Wake the Mac by pressing a key or opening the lid—you should see the login screen or your previous session, depending on security settings.
Common Mistakes
- Entering
hibernatemode 25without runningsudo—this will fail with a permission error. Always usesudofor pmset changes. - Assuming hibernation happens immediately after closing the lid—it may take 2–3 hours on Intel Macs, or only trigger if battery drops below ~50% during sleep.
- Relying on hibernation on Apple Silicon Macs: they use a different low-power state (standby mode) and do not support true hibernation mode 25. Setting it there may cause inconsistent behavior.
- Forgetting to disable Standby mode: if
standbyremains1, your Mac may wake briefly, drain battery, and skip full hibernation. - Not entering the password correctly (no visual feedback)—retype carefully and press Return.
Tips
- On Intel Macs, full hibernation (mode 25) is most useful if you leave your Mac undisturbed for days (e.g., travel) and want near-zero battery drain.
- For faster wake times, keep
hibernatemode 3(default) and only enable mode 25 temporarily for long trips. - Use
sudo pmset -a hibernatemode 0to disable hibernation entirely (not recommended—RAM data is lost on power loss). - Reset NVRAM/PRAM if your Mac wakes slowly or shows garbled display after hibernation: shut down, then power on while holding Option + Command + P + R for 20 seconds.
- Monitor battery drain after hibernation with
pmset -g log | grep -E "Sleep|Wake|hibernate"to confirm it’s working.
Troubleshooting
If your Mac doesn’t hibernate as expected, follow these steps in order:
- Restart your Mac—a simple reboot often refreshes power management settings.
- Check for macOS updates (System Settings > General > Software Update)—older versions may have bugs affecting hibernation.
- Verify hibernatemode is still set to 25 by running
pmset -g | grep hibernatemode. If it’s not, repeat Step 3 above. - Ensure no apps are preventing sleep: run
pmset -g assertions. If you see “PreventAppNap” or similar for active apps, quit those apps (e.g., video players, downloads). - Reset PRAM/NVRAM as described in the Tips section—this clears power management caches.
- Check Energy Saver settings (System Settings > Battery > Battery or Power Adapter): ensure “Power Nap” is disabled (it can interfere with deep sleep).
- Re-enable defaults and retry:
sudo pmset -a hibernatemode 3sudo pmset -a standby 1
Then test again—sometimes mode 3 with standby works more reliably than mode 25 alone.
If issues persist, your Mac may be an Apple Silicon model—hibernation mode 25 is unsupported. In that case, rely on Apple’s optimized standby mode instead.
Frequently Asked Questions
Does hibernation save battery better than sleep on Mac?
Yes—hibernation (mode 25) cuts power to RAM, so battery drain is near zero (≈1% per week). Standard sleep (RAM powered) drains faster (≈5–10% per day), especially on older Intel Macs.
Can I use hibernation on an M1 or M2 Mac?
No—Apple Silicon Macs use a proprietary low-power state called "standby" that’s not configurable with pmset. Setting hibernatemode 25 on these models may cause wake failures or inconsistent behavior.
How do I know if hibernation actually occurred?
Check the system log: open Terminal and run pmset -g log | grep -i "hibernate". If hibernation happened, you’ll see entries like "HibernationKeyNote" and "HibernationRestore" around your sleep/wake times.
Will hibernation delete my unsaved work?
No—hibernation saves your RAM contents to disk before powering down, so your open apps and documents are preserved. However, always save work regularly; hibernation only helps if the Mac powers off unexpectedly.
What does standby do, and why disable it?
standby (default 1) triggers a light sleep after 2–3 hours, allowing quick wake but slight battery drain. Disabling it (standby 0) ensures full hibernation triggers reliably on Intel Macs, preventing partial wake cycles.
Do I need to re-enable hibernation after updating macOS?
Yes—major macOS updates often reset pmset values to defaults. After updating, run pmset -g | grep hibernatemode to confirm your setting, and reapply if needed.