Is there a command that will force a MACBook Pro into hibernation? even though the hibernate mode is set to safe sleep?

I have my MAC set to Hibernate Mode 3. This puts the computer to sleep when the lid is closed. There is also a command under the apple that will put the computer to sleep. Is there a command that will put the computer in hibernation? A TEMINAL command would work.

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Jan 24, 2013 7:17 PM

Reply
7 replies

Jan 24, 2013 7:58 PM in response to Albatross06

Command-Option-Eject


Puts the computer to sleep.


Further more-


Terminal (Applications > Terminal)

copy and paste this command:


sudo pmset -a hibernatemode 25



This would prompt you to enter your password.


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.



copy and paste


sudo pmset -a hibernatemode 3



puts your Macback to sleep mode. The deep sleep will be disabled. Waking your computer up from Deep Sleep takes longer than the regular wake from sleep, since contents to be loaded from Disk instead of RAM.

Jan 24, 2013 8:02 PM in response to leroydouglas

I've played with these terminal commands. I convert to hibernatemode 1 or 25 if I am not going to use my MAC for an extended time and hibernatemode 3 for normal usage during the day. What I am looking for is a Terminal command (or key combination) that would trigger hibernation. That way I could continue to routinely use sleep but trigger hibernation at the end of the day.

Jan 24, 2013 8:29 PM in response to Albatross06

Actually, the end all of what I want is to duplicate the timed sleep to hibernate that Windows uses. On my Windows box I have it set to sleep on lid close, but if not awakened in 1hr, it writes the contents of the RAM to disk and hibernates. That would be what I think is the best option. I think that Hibernatemode 25 does that on a MACBook Air, but it generates just a hibernation mode on my MACBook Pro.

Jan 31, 2014 9:10 AM in response to Albatross06

It seems this does the job. I tested on a 2010 MBP


Open Terminal and type these three commands. You may need to enter your Password. Change the "15" to the needed delay between RAM-Sleep and Deep-Sleep (Hibernation). The time (15) is in Minutes


sudo pmset -a hibernatemode 25

sudo pmset -a autopoweroff 1

sudo pmset -a autopoweroffdelay 15


I think it is a misperception that the Terminal is eval, rather it is very friendly. Just type " man pmset " (without quotes in the terminal, for more information).


Thanks for the question and arousing the need to do this 🙂

Jan 31, 2014 9:44 AM in response to Dharma260

Sorry, I posted too fast, it does not work.

Either RAM-Sleep or Deep-Sleep. It does not do the "autopoweroff" thing.


This was in the Man-Page, funny though:


"We do not recommend modifying hibernation settings. Any changes you make are not supported. If you choose to do so anyway, we recommend using one of these three settings. For your sake and mine, please don't use anything other 0, 3, or 25. "

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.

Is there a command that will force a MACBook Pro into hibernation? even though the hibernate mode is set to safe sleep?

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