You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

MacBook switches to hibernation during sleep

Hi there,


Since installing the MacBook Pro/Air 2.0 update, while my computer goes into sleep mode, after a certain amount of time it switches to Hibernation mode automatically.


This means that after X amount of hours (could not figure out yet how many exactly), when I wake up the computer, it actually will wake up from an hibernation state, much more slowly.


Anyway to restore the old behavior of waking up from sleep only, regardless of how much time has passed?


Thanks!

MacBook Pro, OS X Mountain Lion (10.8.2), 2012 15" 2.6Ghz, Anti Glare

Posted on Nov 16, 2012 1:55 AM

Reply
226 replies

Oct 31, 2013 7:02 PM in response to Monsignor Paolo

Monsignor Paolo wrote:


86400 is now 60 days, not 24 hours, see "man pmset".

autopoweroffdelay - delay before entering autopoweroff mode. (Value = integer, in minutes)

You should set:


sudo pmset -b autopoweroffdelay 660


to hibernate it on battery after 12 hours.

That part is most definitely incorrect in the man pages. I tested it and it's still in seconds and not minutes. I've set it to 240 and after going to sleep for 4 minutes, it work up and entered hibernation as it should with this setting set. So, leave it at 14400 if you want the original 4 hours of timeout. File some feedback about this please and report it to Apple, I already did. Whomever wrote the manual help file on this ****** up.

Nov 1, 2013 2:49 PM in response to Monsignor Paolo

I made sudo pmset -c standbydelay 60 standby 1 and closed the lid.

Nothing changed. The led blinked slowly like in sleep mode.

Then I restored the standby settings and executed sudo pmset -c autopoweroff 1 autopoweroffdelay 60.

The laptop hibernated after 1 minute after sleep.

Сonclusion:

time in poweroffdelay is really in seconds;

standby mode isn't working on my laptop.

Nov 18, 2013 8:07 PM in response to Monsignor Paolo

Both autopoweroff and standby only work ONCE and AFTER a reboot of the OS. Any subsequent times after that, they don't work. The MBP just doesn't enter those modes no matter what. It's a big *** bug in the OS and I can't believe Apple keeps puting out this **** year after year since Steve's death and it keeps getting worse and worse. It's like they have RIM programmers onboard now or something. I'm seeing the same ******* software bugs/mistakes in both OSX and iOS over the past couple of years. It's a shame!!!

Nov 28, 2013 7:50 AM in response to JohnNY123

It's interesting to see the many different varieties of contortions that people have to go through to get to what they want, and that some commands seem to work on some machines and not others. This is nuts...


My original goal for messing with this was to have instantaneous sleep when I close my lid. I'm not worried about running out of battery power while sleeping and therefore I don't need a disk image of my memory taken when I close the lid. I just want to close the lid, instantly go to sleep, and that's all....


So back in 2012 I set autopoweroff and hibernatemode to 0 and this gave me what I wanted for the longest time. My current settings are below.


The problem is that recently this is no longer working. When I close my lid it sometimes takes 20 seconds or more for the computer to go to sleep even though my settings would indicate that no sleep image should be taken to disk. Something is happening to delay sleep when I close the lid, but based on these settings I don't know what it could be.


Anyone have any ideas as to why these settings would not give me near-instantaneous sleep when I close the lid? Any tips to try would be helpful because I open and close many times per day and the 20-second delay to sleep is really getting annoying. Thanks!


Active Profiles:

Battery Power -1*

AC Power -1

Currently in use:

standbydelay 4200

standby 0

halfdim 1

sms 1

hibernatefile /var/vm/sleepimage

gpuswitch 2

disksleep 10

sleep 0

autopoweroffdelay 14400

hibernatemode 0

autopoweroff 0

ttyskeepawake 1

displaysleep 5

acwake 0

lidwake 1

Dec 25, 2014 8:21 PM in response to JohnNY123

Hi JohnNY123,


I know that it has been a while since you've probably had this issue, but I have a Macbook Pro mid 2012 15 inch non-retina display, as yourself, and seems to have a problem with the computer's display when i close the lid. It does some really odd things, like give me a dark screen, and taking a long time for it to wake up.


Did you ever solve your issue? Doing some research on this thread I noticed that you and another user mentioned something about a process after you close the lid where the RAM is copied onto your hard drive, causing it to freeze up if you close the lid and re open it momentarily.


I now am running Yosemite, and reset the SMC and PRAM, which helped a tad bit, but its still taking forever to wake up sometimes, and it gives me that dark screen. I figured that a few years after your problem you might be able to give me a solution?


ANYTHING would help a lot!


Thanks!

Dec 28, 2014 5:21 AM in response to dureidcito

Hi @dureidcito.....No, I never completely solved this issue. My current situation is the same as my post above dated Nov 28, 2013 7:50 AM.


I basically just gave up on it. It was shutting down almost instantaneously when I closed the lid when I bought it, and no combination of changes to settings brought that behavior back. It now takes about 10-25 seconds to shut down when I close the lid (I'm assuming a large disk write is happening at that time, although I've told it not to do that via the settings) and it wakes up and turns on quickly.


I would prefer instantaneous shut down on lid closure, but I guess I can (and will have to) live without that....

Mar 15, 2015 12:50 PM in response to Kenneth Lu

So shouldn't setting authopoweroff to 0 solve some of these problems? My issue is that when my computer sleeps, after several hours (I guess it's 4 according to the Apple link) autopoweroff kicks in and writes the RAM to the HD and then depress the RAM. So when I wake from sleep, it takes a full minute or more to wake up.


I set autopoweroff to 0 so we'll see.


Not sure about the original poster's problem. Maybe reset to factory defaults in console?

Jul 19, 2015 3:27 AM in response to chocobanana

I just went through this thread. I see that it was started in November 2012.


I have a mid-2012 MacBook Pro that is on Yosemite 10.10.4. I have owned my MBP since 2013 and I used it mostly on battery power. Throughout that time, on the rare occasions that I left it plugged for over four hours, my MBP would go into hibernation mode, but I thought this was a normal occurrence on all Macs.


For the past month, I have been leaving my MBP plugged in all the time (found out this was okay to do, and it also helps keep battery "cycle count" from moving up there), and each time it's longer than four hours, my MBP did go into hibernation mode. EACH TIME. It started to really annoy me and I looked everywhere in Sys Pref to turn it off, but there is bare minimal settings options under Power.


After scouring the web to get information on the point of hibernation mode and if there were any benefits doing so, I find that it's an EU power saving directive. Okay, I live in Canada, not in the EU. I tried this code that I found on the Ask Different website: sudo pmset -a autopoweroff 0


This morning when I opened the lid and my MBP wasn't in hibernation mode. Finally. Apple should have a setting in Sys Pref under Power to turn hibernation mode off, and I shouldn't have to use a terminal code.

Sep 12, 2015 10:15 AM in response to crystalship

Thank you crystalship for your thorough and detailed post. I also have a mid-2012 MBP running Yosemite. Your post was the first post I found that confirmed that this solution works with Yosemite. I ran the command in Terminal yesterday, and today my MBP is snoozing in regular-sleep mode.


Note to everyone: I have owned this MBP for 6 months, and did not encounter the hibernation issue until recently, because I usually keep an external hard drive in the firewire port. If you have connected devices that draw any power, the MBP stays in regular-sleep mode and will not hibernate. Recently, I changed my external hard drive habits, and discovered how annoying hibernation is.

MacBook switches to hibernation during sleep

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