chocobanana

Q: 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

Close

Q: MacBook switches to hibernation during sleep

  • All replies
  • Helpful answers

first Previous Page 12 of 16 last Next
  • by emailsfh,

    emailsfh emailsfh Mar 15, 2013 8:22 AM in response to SwankPeRFection
    Level 1 (0 points)
    Mar 15, 2013 8:22 AM in response to SwankPeRFection

    Thanks. That's good to know. I'll tinker with the settings to customize them to my needs. Its helpful to have the difference between standby and autopoweroff spelled out because that was confusing to me.

  • by SwankPeRFection,

    SwankPeRFection SwankPeRFection Mar 15, 2013 8:44 AM in response to emailsfh
    Level 4 (1,435 points)
    Mar 15, 2013 8:44 AM in response to emailsfh

    Ya, I don't know why Apple just didn't have one setting and allow it to work in both profiles respectively.  I think it's some kind of antiquated OSX issue maybe.  You don't see Windows have different terminaology for sleep or hibernation based on which power profile it's currently in.  So I don't know why Apple thinks its a good idea to have meaningless settings in there that do nothing in one profile and something else in another.

  • by emailsfh,

    emailsfh emailsfh Mar 15, 2013 8:53 AM in response to SwankPeRFection
    Level 1 (0 points)
    Mar 15, 2013 8:53 AM in response to SwankPeRFection

    A few more questions. So having standby set to 1 on AC adapter has no effect at all, because it is strictly for battery hibernate, right? Also, even if I play with these hibernation settings, hibernatemode 3 will still allow the computer to hibernate on low battery regardless?

     

    For example, I have standbydelay set to 4 hours, but if the computer only has 3 hours of battery life left when I close the lid, hopefully it will hibernate when the battery gets too low, rather than completely drain the battery and die waiting for 4 hours?

  • by SwankPeRFection,

    SwankPeRFection SwankPeRFection Mar 15, 2013 10:37 AM in response to emailsfh
    Level 4 (1,435 points)
    Mar 15, 2013 10:37 AM in response to emailsfh

    Yes, that's what I said.  It's the hibernatemode setting that dictates safesleep behavior.

  • by knmac,

    knmac knmac Apr 21, 2013 2:20 PM in response to chocobanana
    Level 1 (0 points)
    Apr 21, 2013 2:20 PM in response to chocobanana

    Since I plugged its power adapter into an uninterruptible power supply, my MacBook resumes quickly after sleeping overnight. My guess is that the power coming from the wall outlet was fluctuating during the night, enough to trigger a "restore from disk image" rather than the preferred "wake from memory." Get yourself a small UPS and the problem should go away. See this excerpt from the system documentation for the power management set utility:

     

    The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from disk image.

  • by hockeymagnet,

    hockeymagnet hockeymagnet Apr 21, 2013 4:57 PM in response to knmac
    Level 1 (4 points)
    Desktops
    Apr 21, 2013 4:57 PM in response to knmac

    Interesting but I don't think that's the main issue. If autopower off is set to 4 hours, anytime up to the 4 hours MBP will awake from sleep no problem. After that, it does the hibernation thing. Change the autopower off to disabled and no hibernation. This is very consistent and has been documented multiple time. Nothing to do with current fluctuation. I'm not saying the UPS means nothing but its not the real issue. Also not a practical solution if you use your MBP in multiple locations, hotels, etc.

  • by SwankPeRFection,

    SwankPeRFection SwankPeRFection Apr 22, 2013 9:10 AM in response to knmac
    Level 4 (1,435 points)
    Apr 22, 2013 9:10 AM in response to knmac

    knmac wrote:

     

    Since I plugged its power adapter into an uninterruptible power supply, my MacBook resumes quickly after sleeping overnight. My guess is that the power coming from the wall outlet was fluctuating during the night, enough to trigger a "restore from disk image" rather than the preferred "wake from memory." Get yourself a small UPS and the problem should go away. See this excerpt from the system documentation for the power management set utility:

     

    The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from disk image.

     

    This is incorrect.

  • by knmac,

    knmac knmac Apr 22, 2013 3:51 PM in response to SwankPeRFection
    Level 1 (0 points)
    Apr 22, 2013 3:51 PM in response to SwankPeRFection

    I'm describing what I have observed with my recently purchased MacBook Pro and quoting from current Mac documentation. What is "incorrect?"

  • by SwankPeRFection,

    SwankPeRFection SwankPeRFection Apr 23, 2013 6:00 AM in response to knmac
    Level 4 (1,435 points)
    Apr 23, 2013 6:00 AM in response to knmac

    What you posted doesn't apply here.  This is a specific issue that's been throughly documented and we know exactly why it happens on 2012+ laptops with a certain version of OSX and higher on it.  Your two postings in this thread and another do not apply.  That's what's incorrect.

  • by knmac,

    knmac knmac Apr 23, 2013 4:23 PM in response to SwankPeRFection
    Level 1 (0 points)
    Apr 23, 2013 4:23 PM in response to SwankPeRFection

    I have a "mid-2012" MacBook Pro running 10.8.3 which I see is what this thread has been recently discussing. I experienced slow restart after more than four hours of sleep with a progress bar displayed during what apparently was a restore from disk image. Since plugging the power adapter into a small UPS, I have observed a return to fast recoveries after long periods of sleep, which I interpret to be the desired "wake from memory". So things are back to the way I would like them to be and I thought to share my experience. I'm curious to know if anyone else has seen this unexpected benefit from using a UPS.

  • by SwankPeRFection,

    SwankPeRFection SwankPeRFection Apr 24, 2013 7:56 AM in response to knmac
    Level 4 (1,435 points)
    Apr 24, 2013 7:56 AM in response to knmac

    What you're experiencing is not due to a UPS thing...  Leave your system sleeping for over 14400 seconds and it will hibernate.  That is the timeout setting for entering hibernation (where you see the progress bar at the bottom) when the system is plugged into power and clamshell closed to enter sleep.  Only dark-wakes (read up on what it is if needed) would keep this 14400 second timeout from happening and would inherently keep the system from entering hibernation.  Additonally, SSD equipped machines look a bit differently even when woken up from hibernation because of the speed of SSD and the quickness of the wakeup out of hibernation process on those system.

  • by kellyfromfayetteville,

    kellyfromfayetteville kellyfromfayetteville Apr 24, 2013 8:02 AM in response to SwankPeRFection
    Level 1 (0 points)
    Apr 24, 2013 8:02 AM in response to SwankPeRFection

    I posted about a month ago saying that mine has stopped hibernating.  It has been going on well over a month and it no longer hibernates. I now charge it all the time over night and I have no issues.  I did not change any settings like the majority of you did.  All I have done is do the software updates that have appeared on my computer.  I bought a brand new MacBook Pro in January, had it for a week and the hibernation issue started happening, after 3 days of working with Apple they gave me a brand new machine and the problem occurred the very next day.  I came onto the boards and saw it was a known issue.  I decided not to change the settings on my machine and to wait it out.  Something happened with one of my software updates because I no longer have the issue.   Sometimes it is better to wait it out then changing settings on your machine.

  • by emailsfh,

    emailsfh emailsfh Apr 24, 2013 8:08 AM in response to SwankPeRFection
    Level 1 (0 points)
    Apr 24, 2013 8:08 AM in response to SwankPeRFection

    Swank, knmac did say that he experienced this behavior previously after 4 hours / 14400 seconds. Now it no longer exhibits the behavior. While I think this has nothing to do with power supply, Kelly is also saying her problem is gone. Apple may have snuck an update in?

     

    Kelly or Knmac, can either of you go into your terminal and type in the following: "pmset -g custom". This will display what your current settings are showing. Then paste in the resulting text so we could all see. This should settle it if others on this board who have experienced the problem can replicate your results using your settings.

  • by hockeymagnet,

    hockeymagnet hockeymagnet Apr 24, 2013 9:09 AM in response to kellyfromfayetteville
    Level 1 (4 points)
    Desktops
    Apr 24, 2013 9:09 AM in response to kellyfromfayetteville

    Can you run pmset -g and Telly's what yours says. Possibly all that happened is that the settings have been changed. I don't agree you should just "wait it out" since changing the settings as described is harmless and solved the problem immediately

  • by knmac,

    knmac knmac Apr 24, 2013 4:38 PM in response to hockeymagnet
    Level 1 (0 points)
    Apr 24, 2013 4:38 PM in response to hockeymagnet

    MacBook Pro contains a spinning hard drive, not an SSD. The only things I've done to fix the long wake from sleep problem have been to read threads like this, accept all of Apple's software updates, and plug the power adaptor into a UPS. I have not changed any settings using the pmset utility. The machine now reliably comes out of sleep very fast after all night or all day with the lid closed (more than 4 hours). The white sleep light pulses when I leave it and is still pulsing when I return to wake it up.

     

    pmset -g custom

    Battery Power:

    lidwake              1

    autopoweroff         1

    autopoweroffdelay    14400

    standbydelay         4200

    standby              0

    ttyskeepawake        1

    hibernatemode        3

    hibernatefile        /var/vm/sleepimage

    displaysleep         5

    sleep                15

    acwake               0

    halfdim              1

    sms                  1

    lessbright           1

    disksleep            10

    AC Power:

    lidwake              1

    autopoweroff         1

    autopoweroffdelay    14400

    standbydelay         4200

    standby              0

    ttyskeepawake        1

    hibernatemode        3

    hibernatefile        /var/vm/sleepimage

    womp                 1

    displaysleep         5

    networkoversleep     0

    sleep                60

    acwake               0

    halfdim              1

    sms                  1

    disksleep            10

     

    pmset -g ps

    Currently drawing from 'AC Power'

    -InternalBattery-0 99%; charged; 0:00 remaining

     

    pmset -g ups

    UPS settings:

      haltlevel on 20

      haltafter off 2

      haltremain off 0

     

first Previous Page 12 of 16 last Next