Getting Rid of Safe Sleep

I’ve mentioned this before, the most recent Mac laptops don’t go to sleep like they used to, they use something called “Safe Sleep” where the content of the memory is copied to hardrive before the MacBook is trully considered asleep, something like 10-12 seconds for mine, sometimes more. I hate it. Hate.it.

Joe Kissell has the solution. As he mentions, this is a weird choice for Apple because the functionality would be required only if:

  • Your computer enters sleep mode with unsaved documents.
  • Enough time passes (generally, multiple days) for the battery to drain completely.
  • After inserting a charged battery or connecting an AC adapter, you expect your computer to return immediately to the state it was in before it went to sleep.

    This never happens to me. So the solution:

    sudo pmset -a hibernatemode 0<br /><br /><br /><br /><br />
    sudo rm /var/vm/sleepimage

    That’s it, I now have a Mac that sleeps instantaneously. Thanks Joe.

3 Comments

andre August 4, 2007

merci merci merci

blork August 5, 2007

Huh? Where are you supposed to enter that code?

Patrick August 5, 2007

Terminal

Comments closed