Put Mac OS X Lion in Hibernate (Deep Sleep) mode [How to]

You can now enable the Hibernation or Deep Sleep mode in Mac OS X Lion with this set of commands on Terminal. This trick is especially useful for those using notebooks running 10.7.

Apple, by default, doesn’t give any option to put your notebook in deep sleep mode. The reason? Its because the Mac Notebooks use magnetic closure detection instead of the typical physical clasps, to detect if the screen has been closed. But what if you want to really put your MacBooks in deep sleep mode and have it in the same state until you open the lid and perform some operation? Well’ there’s a way for that!

This trick will put your Macbook on deep sleep or hibernate mode instead of putting it in sleep mode when the lid is closed. Even in sleep mode, the memory is running in the background to perform some basic operations. But this trick, would put your MacBooks into a complete shutdown mode and resume when you turn it back on.

How to put your Mac Notebooks in Deep Sleep or Hibernate mode?

[alert_box type=”Info”]Admin privileges required![/alert_box]
  1. Fireup Terminal (Applications > Terminal)
  2. Type this command:sudo pmset -a hibernatemode 25
  3. This would prompt you to enter your password. Once entered, you’re done!
This would enable the Deep Sleep mode in MacBooks. All you need to do is to Press the Power button each time you want to wake your Mac from deep sleep.
[alert_box type=”General”]Note: Waking your computer up from Deep Sleep takes a few seconds longer than the regular wake from sleep. Reason being the contents to be loaded from Disk instead of RAM.[/alert_box]

How to disable Deep Sleep or Hibernation in MacBooks?

This is pretty simple. All you need to do is type the following command in Terminal once again.

sudo pmset -a hibernatemode 3
This will now put your Macs only to sleep mode. The deep sleep will be disabled!

[alert_box type=”Info”]This method works for both Mac Desktops and Notebooks[/alert_box]

You can follow other Mac OS X Lion tips too. Just click here to know other interesting Tips.

  • axoniclabs

    We make a Mac App called DeepSleep that makes entering regular sleep and deep sleep super easy. Check it out at http://www.axoniclabs.com/DeepSleep/

  • what happens if a laptop needs to go into deep sleep mod with it being disabled?

  • what happens if a macbook pro needs to go into deep sleep mode when it runs out battery with it being disabled?

    •  @yazeed I don’t think there’s a method to do so! 🙁

  • Joe Bassil

    What do the 25 and 3 represent in your examples above? The man page suggests minutes, but not sure I’m reading that right?

Subscribe to 4CAST

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 23 other subscribers