How to configure a MacBook to hibernate when the lid is closed?

I found this question how to make macbook pro hibernate when closing lid and the answer is not given in the comments, there are just links to no longer existing external resources. So I had to find the solution myself with the hints provided.


Unfortunately I'm not allowed to answer and paste the needed commands, instead I'm prompted to “ask a new question”, so here we go.


You can configure your MacBook to hibernate (deep sleep) when closing the lid by setting the hibernatemode.

The default for notebooks is 3.

Setting it to 25 will configure the desired behavior.


# Confirm you have the default for mobile computers, 3
pmset -g | grep hibernatemode
 hibernatemode        3

# Set it to hibernate, 25
sudo pmset hibernatemode 25

# Confirm correct mode is set
pmset -g | grep hibernatemode
 hibernatemode        25

MacBook Pro 16″

Posted on Jan 18, 2024 12:17 AM

Reply

Similar questions

1 reply

May 26, 2024 6:40 AM in response to Fix_my_Mac_please

Thank you for this tip. Very useful!


Is there a way to configure hibernate a bit differently:


  • I would like closing the lid to still make it Sleep
  • I would like Hibernate to be activated either when (i) pressing the power button or (ii) choosing a Hibernate option in the MacOS pulldown menu (the Apple logo at the top left of the screen, where by default only the Sleep option is available).


The idea is that a casual lid close action only sleeps the laptop, while hibernation would require a more concerted action.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to configure a MacBook to hibernate when the lid is closed?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.