Last Updated: February 25, 2016
·
838
· _jeffreyjackson

Login Lag on Macbook

You just bought this really nice Macbook Pro with Retina display. Great.

Ever notice how the login screen seems unresponsive from time to time? Here is what is happening:

Your mac is going into standby and its writing all of the contents in RAM to disk. Depending on your mac, you could have up to 8Gb or 16Gb. When you wake it back up, it's retrieving everything back from disk and restoring to RAM.

Seriously, that's a good amount of data your mac just moved and all things considered it's moving pretty quick... but it still bothers you. OK, let's adjust the delay before it decides to write from RAM to disk. First, let's see what you're currently set at:

pmset -g | grep standbydelay

You'll get something back like:

standbydelay         3600

This means you have 3600 seconds (1 hour) before your RAM is dumped to disk. Before changing this remember, it's actually a good thing. More often than not, this saves your battery and ensures your data is stored on persistent storage. None the less, you want to tweak it. Alright fine:

sudo pmset -a standbydelay 7200

Now it's set for 7200 seconds, or 2 hours.

Go outside and play. After about an hour and a half, grab some Kool-Aid and log in as fast as you can.