11 Replies Latest reply: Mar 10, 2014 8:10 AM by paolo_italy
ClayStudio Level 1 Level 1 (0 points)

I have read many articles today and I remain a little confused.  I have seen the Apple discussion at http://support.apple.com/kb/HT4392 regarding "Standby Mode", but I appear to have limited progress.

 

Can the community verify if "Standby Mode" (controlled by pmset) be used on a late 2012 MacBook Pro.  This is a model without the Retina display, however, when I do pmset -g... I do see standby in the display (as seen below) which implies it should be active.

 

When I look at pmset -g I do see the standby line item, but if I set to "1", the unit still appears to not want to enter true hibernation.  I have hibernationmode set to 3 so that true hibernation only enables after the standbydelay period that is defined.  Obviously, if I set hibernationmode to 25, a true hibernate starts immediately, but I don't really want that, I am looking for the delay function that standby enables.

 

I have reset the SMC and currently have the following pmset conditions (modified for testing)

 

Battery Power:

lidwake              1

autopoweroff         1

autopoweroffdelay    14400

standbydelay         60

standby              1

ttyskeepawake        1

hibernatemode        3

hibernatefile        /var/vm/sleepimage

displaysleep         1

sleep                2

acwake               0

halfdim              1

sms                  1

lessbright           1

disksleep            10

AC Power:

lidwake              1

autopoweroff         1

autopoweroffdelay    14400

standbydelay         1800

standby              1

ttyskeepawake        1

hibernatemode        3

hibernatefile        /var/vm/sleepimage

womp                 0

displaysleep         10

networkoversleep     0

sleep                60

acwake               0

halfdim              1

sms                  1

disksleep            10

 

Also, an auxilary question.  Can anyone explain the autopoweroff and autopoweroffdelay settings?  They appear to undocumented in manpages and can not locate any info on the web.


MacBook Pro (13-inch, Mid 2012), OS X Mountain Lion (10.8.2)
  • 1. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    Kappy Level 10 Level 10 (226,765 points)

    The article is the most recent information.

  • 2. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    Michael Thorn Level 1 Level 1 (10 points)

    For some reason the standby/standbydelay doesn't seem to work anymore.  To do what you are talking about I think you need to change autopoweroffdelay.  You would adjust it like standbydelay.  It seems to be a bug that is causing issues for people who don't want there macbook to hibernate unless the battery drains. 

     

    If you want it to hibernate after one minute you'd type

     

    sudo pmset autopoweroffdelay 60

     

    This may need to be altered if they fix the standbydelay/autopoweroffdelay confusion, which I personally think is a bug.

  • 3. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    Michael Thorn Level 1 Level 1 (10 points)

    Upon further reflextion, perhaps this isn't a bug, but a more verbose naming schema?  The bug is that autopoweroff is set to '1' (on) for both battery and charger states.  I think a more appropriate state, and one that I believe it used to be would be for you to set it like the following.

     

    sudo pmset -c autopoweroff 0

    sudo pmset -b autopoweroff 1

     

    With the autopoweroffdelay set to whatever you like.  Default is 4 hours, or 14400 seconds.

  • 4. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    ClayStudio Level 1 Level 1 (0 points)

    Thanks for the input Michael.

     

    The thing that started this, is the new Late 2012 MacBook Pro simply uses much more power in "sleep" mode than what I experienced on my old Late 2007 White MacBook.  Every night, the "sleep" mode would result in almost a drain of the battery and the result is that I was unneccessary cycling the battery. With no OS revisions to address this, I have changed the defaults to enable hibernate for both the charging and battery mode.

     

    The strange thing about this is that even to get a true hibernation in battery mode I have to unplug all USB devices or the device will not hybernate.  Again, never had to do this on the old White MacBook and the power usage at night was very small.

     

    This works for now, but I think a device should sleep with very little (less than 4%) power loss when power is disabled.

     

    Thanks again for the input.  Here are the current settings.

     

    Battery Power:

    lidwake              1

    autopoweroff         1

    autopoweroffdelay    14400

    standbydelay         1800

    standby              1

    ttyskeepawake        1

    hibernatemode        3

    hibernatefile        /var/vm/sleepimage

    displaysleep         1

    sleep                10

    acwake               0

    halfdim              1

    sms                  1

    lessbright           1

    disksleep            5

    AC Power:

    lidwake              1

    autopoweroff         1

    autopoweroffdelay    14400

    standbydelay         1800

    standby              1

    ttyskeepawake        1

    hibernatemode        3

    hibernatefile        /var/vm/sleepimage

    womp                 1

    displaysleep         10

    networkoversleep     0

    sleep                60

    acwake               0

    halfdim              1

    sms                  1

    disksleep            5

  • 5. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    Michael Thorn Level 1 Level 1 (10 points)

    I agree it should use very little power in sleep mode.  Hopefully they figure out what the problems are soon. 

     

    Looking at your settings the only thing I'd note is you may want to change autopoweroffdelay to 1800 for all:

     

    sudo pmset autopoweroffdelay 1800

     

    I have a late 2012 MBP and mine completely ignores the standbydelay and standby settings.  I can make them whatever I like and nothing seems to change.  Though, if I assume that the man page for standby is equivalent to autopoweroff, and standbydelay is equivalent to autopoweroffdelay, the computer acts as I'd expect when I adjust these settings. 

     

    My guess is your computer is still only making it to hibernate mode after 4 hours.  You can check this by reading the log with pmset -g log

     

    Find a place where you put the computer to sleep, and then it woke up exactly 30 minutes or 4 hours later followed by sleep again.  If it only occurs at 4 hours then your computer is acting like mine and ignoring your standbydelay setting.  If it happens at 30 minutes your all good.

  • 6. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    ClayStudio Level 1 Level 1 (0 points)

    I checked the log files and it appears that the sleep and displaysleep and the standbydelay are working as intended with the 30 minute delay... but only if all USB devices are unplugged.

     

    The frustration with having to remove all USB devices remains, but this appears to be only a limitation of how the hibernation mode 3 works... if I enable hibernation mode 25 then the system will do so even if the USB devices are plugged in.  I hope that Apple fixes this odd behaviour.

     

    I saw a comment in another thread that the autopoweroff and autopoweroffdelay only work when the unit is on AC (not sure why they show when displaying the pmset -b options).  As most of my concerns were to keep the battery from draining during sleep, I did most of my tweaking with the pmset -b options.  I have left my computer on AC many times during the day for hours and hours (with USB devices plugged in) and my computer has never gone into hibernation after 4 hours.  I will purge the log and make another test tomorrow and see if I can get the autopoweroff to function at 4 hours.

  • 7. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    SwankPeRFection Level 4 Level 4 (1,435 points)

    There is a bug in OSX after patch DL1609 (which introduced the new autopoweroffdelay) because the system won't hibernate when on battery power.  It only does it after the default 4 hours when it's plugged into the charger.  I've been fighting with Apple Support for over 2 months about this issue and the fact that now after said patch the system also wakes up out of sleep for 15-30 seconds when you plug and unplug it from power for no good reason whatsoever.  It also waks up like this out of hibernate when you unplug it.  It's really annoying and IT'S WRONG!  The behavior is not correct but they're too stupid to realize it.

  • 8. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    marchibald Level 1 Level 1 (5 points)

    I started having problems in November - my MacBook waking briefly after 4 hours of sleep and going into deep sleep / hibernation, then taking ages to wake up when I would later open the lid (like almost a minute).  This thread provided the explanation and solution:

    http://apple.stackexchange.com/questions/72889/mountain-lion-aggressively-hibern ates

     

    Running this command in Terminal resolved the problem for me, basically stopping the MacBook from going into deep sleep / hibernation after 4 hours of normal sleep:

    sudo pmset -a autopoweroff 0

     

    I too spent hours with Apple support over a number of weeks, but they claimed the behavior was normal.  How could it possibly be normal to take almost a minute to wake up?  Obviously there was some kind of problem with the update they did that introduced autopoweroff.

  • 9. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    SwankPeRFection Level 4 Level 4 (1,435 points)

    That's no good.  It's not a solution, it's a bandaid.  Personally, I don't mind the added hibernation feature.  It's actually nice because once it enters it, the memory isn't powered anymore and the battery life is greatly extended.  The problem I have is that despite the settings, it only works when the power cable is attached and the secondary issue is that when the charger is attached/detached, the system wakes up.  The problem started in November because that's when the patch was released.  DL1609 was released at the end of November, pulled and rereleased again a couple of weeks later after they fixed the keychain issues within it.  Unfortunately, in standard Apple fasion, they didn't change the date on the release stamp in order to cover up their keychain fugups the first time around with this patch.  Now Apple is trying to say there's no power management issues with this patch, but their own forums here are riddled with posts to the contrary.  I bet a class action would for this would wake them up quick (pun intended).

  • 10. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    DanTheMan000 Level 1 Level 1 (0 points)

    I see this, too. My MacBook Pro also hibernates after the "autopoweroffdelay" when the charger is plugged in. However, it does not when on battery. That just does not make sense. To extend battery live, it should be the other way round. I am not happy.

     

    "pmset -g" shows in the relevant parameters:

     

    autopoweroffdelay14400
    hibernatemode    3
    autopoweroff     1
    ttyskeepawake    1
    acwake           0
    lidwake          1

     

    for both the battery and the AC power profile.

  • 11. Re: Standby Mode - Does it work on Late 2012 MacBook Pro (non-Retina)
    paolo_italy Level 1 Level 1 (0 points)

    I am checking sleep problems of my Macbook Pro 13" non retina late 2012.

    I am quite sure problems arised with the Mavericks update, no issues with ML.

     

    I use to close lid to put the Mac in sleep, and I noticed that the Sleep indicator stays on for about one minute, then it starts blinking: looking at console it seems it hibernates just after I close the lid, and not after the "autopoweroffdelay". My battery drains about 6/7% in one night, and it was only 1/2% before the update. Is 6/7% too high?

     

    I would like to put the Mac on sleep, and quickly in the bag not while the disk is writing, and to have it hibernating after hours, not immediately.

     

    These are my pmset settings:

     

    Active Profiles:

    Battery Power                    -1

    AC Power                    -1*

    Currently in use:

    standbydelay         4200

    standby              0

    womp                 1

    halfdim              1

    hibernatefile        /var/vm/sleepimage

    sms                  1

    networkoversleep     0

    disksleep            10

    sleep                10

    autopoweroffdelay    14400

    hibernatemode        3

    autopoweroff         1

    ttyskeepawake        1

    displaysleep         10

    acwake               0

    lidwake              1

     

     

    Any suggestion?

     

    Many thanks in advance

     

    Paolo