Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macography.net

macrumors newbie
Apr 3, 2011
21
0
I've noticed this problem too and I think the problem is related to hybernation. After about an hour ML goes into hybernation mode.

Waking up from it takes longer than from the normal sleep. Annoying but anyway... :)
 

Alameda

macrumors 65816
Jun 22, 2012
1,277
871
I've noticed this problem too and I think the problem is related to hybernation. After about an hour ML goes into hybernation mode.
An hour and ten minutes. Pending my tests, my hypothesis is that, if you want fast resume from Standby, then enable Power Nap on Battery Power. You should not change the hibernatemode to 0.

Here are the defaults I found in Terminal:
Code:
pmset -g | grep hibernate mode
hibernatemode     3
pmset -g | grep standby
standbydelay      4200
standby             1

hibernatemode 3 means that when it enters Standby, the Mac will copy memory to disk for Hibernation, but it leaves the contents of memory powered for Standby.

standby 1 means the Mac will automatically transition from Standby to Hibernate after a specified period of time

standbydelay 4200 means the Mac will keep memory powered for Standby for 4,200 seconds, or 70 minutes. After that, it powers off memory and the Hibernate file is used for resume, which (I think) causes the delay some people notice.

If you increase standbydelay, it will probably shorten battery life. But how does the PowerNap feature work if the system's hibernated? I checked the documentation, and it said that Power Nap operations cease when battery life reaches 30%. Low and behold, my battery is at 29%.

I'll try some tests with a stopwatch later, but here's what I think right now:
* Resume from Standby is fast when you resume within an hour and ten minutes
* Resume from Standby is fast when you enable Power Nap on Battery Power, as long as the battery is above 30%. Of course, this reduces battery life somewhat.
* Changing the hibernatemode to 0 will make Resume from Standby fast, but if the battery dies, you lose all of your work. Bad idea for a laptop.
* You can probably make the standbydelay longer. I haven't tested this. It should be perfectly safe to do, because the Hibernate file is created as soon as the computer sleeps, so if the battery dies it will resume from Hibernate once you attach a power adapter.
 

gpociej

macrumors member
Mar 11, 2013
39
8
I'll try some tests with a stopwatch later, but here's what I think right now:
* Resume from Standby is fast when you resume within an hour and ten minutes
* Resume from Standby is fast when you enable Power Nap on Battery Power, as long as the battery is above 30%. Of course, this reduces battery life somewhat.
* Changing the hibernatemode to 0 will make Resume from Standby fast, but if the battery dies, you lose all of your work. Bad idea for a laptop.
* You can probably make the standbydelay longer. I haven't tested this. It should be perfectly safe to do, because the Hibernate file is created as soon as the computer sleeps, so if the battery dies it will resume from Hibernate once you attach a power adapter.

Hey,
did you done anymore tests?
Did you try to adjust delay to hibernate?

I'm curious because from 2 days I really worried about my SSD life with safe sleep.
I think it will shorten SSD life with that much RAM dumps which will be made with my frequency of putting MacBook to sleep (10 or more per day...)

For now I think best option it to extend standby delay to around 2-3hrs (for me) or use DeepSleep widget and set regular sleep mode to 0 (quick).

regards, Greg
 

tvamvarg

macrumors newbie
Feb 5, 2009
24
5
I hate to be Mr. Obvious but have you guys and gals checked your hibernate mode?

I can't believe people have literally reinstalled ML without doing a simple check, in terminal:

pmset -g | grep hibernatemode

Be sure to read up about it first, but I set mine to 0 so it wakes instantly, in terminal:

sudo pmset -a hibernatemode 0

I always set hibernatemode to 0 with my macs, and this was the first thing I did on my MBA as well. However, it still created a hibernatefile and I think it tried to read it on wakeup, which caused 3-10 sec delay. I had to resort to creating an empty (touch) sleepimage under /var/vm and make it untouchable by the system. This fixed it. Many threads about this here on forums, e.g. https://forums.macrumors.com/threads/1532245/
 

gpociej

macrumors member
Mar 11, 2013
39
8
Yeah, I noticed too that sleepimage is created again but I didn't notice when (after sleep or shut down) it was created.
Need to check it.

I don't want to make this file untouchable for OSX.

Anyway, from yesterday, with hibernate mode 0, after sleep over night and twice during the day sleep image weren't updated.
So maybe OSX just creating this file to have it when need to dump RAM but not using when safe sleep is disabled.

Thanks for link. :]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.