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.
Written by Ben Heebner
Related protips
9 Responses
Its just what I need! Thanks for advice!
Awesome! But what's this to do with coffee?...
My hope was a draw a parallel to people drinking coffee in the morning to wake up faster.
Is this really a good idea? There must be a reason why default is set to 4200 and not 86400. What's the downside?
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..."
Is this Mountain Lion only? Probably worth mentioning that on 10.7.x (Lion) pmset -g
will not show standbydelay
.
Alternatively, you can use a free app called Caffeine (https://itunes.apple.com/us/app/caffeine/id411246225?mt=12).
I've been using SmartSleep to choose how I want the OS to respond going to sleep.
SmartSleep:
http://www.jinx.de/SmartSleep.html
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)