Last Updated: September 09, 2019
·
4.75K
· heebnerd

Give your Mac laptop some coffee

So you've got a super fancy SSD in your MacBook (Pro or Air) but when you open your laptop in the morning you can see your desktop, you just can't do anything for what seems like a hour (but in reality it's like 10 seconds).

Ever wonder why?

Here's why:

OSX takes all the stuff in your RAM and writes it to the hard disk after a certain amount of time. Which can take some time if you've shelled out the cash for 16GB+ of memory. How long does it wait until it does that? Well there is an easy way to find out. Open Terminal and execute this command:

pmset -g

In the list you'll see a "standbydelay" entry. The value next to that is the number of seconds OSX will wait before writing RAM data to disk (in seconds).

Wouldn't it be better if that value was set to a day so that each day when you opened your laptop it was ready to go? Well here is how you do it:

From the same Terminal window (or different, it doesn't matter) execute:

sudo pmset -a standbydelay 86400

That's it.

9 Responses
Add your response

Its just what I need! Thanks for advice!

over 1 year ago ·

Awesome! But what's this to do with coffee?...

over 1 year ago ·

My hope was a draw a parallel to people drinking coffee in the morning to wake up faster.

over 1 year ago ·

Is this really a good idea? There must be a reason why default is set to 4200 and not 86400. What's the downside?

over 1 year ago ·

The post is substantially incorrect and misleading. To get a clear picture what this is all about, go read http://osxdaily.com/2013/01/21/mac-slow-wake-from-sleep-fix

For example, this post says:
"Here's why: OSX takes all the stuff in your RAM and writes it to the hard disk after a certain amount of time. Which can take some time..."
Nope. Correct is: "OSX takes all the stuff in your RAM and writes it to the hard disk after a certain amount of time, then shuts down to not waste any power. When waking up it has to read all your stuff back to RAM. Which can take some time..."

over 1 year ago ·

Is this Mountain Lion only? Probably worth mentioning that on 10.7.x (Lion) pmset -g will not show standbydelay.

over 1 year ago ·

Alternatively, you can use a free app called Caffeine (https://itunes.apple.com/us/app/caffeine/id411246225?mt=12).

over 1 year ago ·

I've been using SmartSleep to choose how I want the OS to respond going to sleep.

SmartSleep:
http://www.jinx.de/SmartSleep.html

over 1 year ago ·

It's worth considering disabling saving RAM state if you use SSD drive as it reduces it's "number of rewrite cycles". "pmset | grep hibernatemode" will show you active mode and the following allows you to change it the way which fits you more:
“sudo pmset -a hibernatemode 0″ = suspend to RAM only (default on desktops)
“sudo pmset -a hibernatemode 1″ = suspend to disk only
“sudo pmset -a hibernatemode 3″ = suspend to disk + RAM (default on laptops)

over 1 year ago ·