« Back to blog

why my macbook light doesn't blink after my lid closes

I noticed a few months back, that my laptop never sleeps properly
after closing the lid in OS X. It works fine in Windows 7 on bootcamp,
but never OS X. For years, after I'd close the lid, I'd wait for the
light to flash, which would tell me it's okay to move my laptop.

Well it turns out, that during one update, a setting was changed that
made my computer save its memory to disk. so saving 2GB or RAM to disk
takes a few minutes.
http://osxdaily.com/2010/10/11/sleepimage-mac/

So that file lives at:
/private/var/vm/sleepimage

To remove, you'd need superuser access:
sudo rm /private/var/vm/sleepimage

And to change the default setting, such that the computer doesn't save
to disk when the lid is closed:
sudo pmset -a hibernatemode 0

If you want to go back to saving to disk:
sudo pmset -a hibernatemode 3