up vote 2 down vote favorite
share [g+] share [fb]

Whenever I close the lid of my MacBook Pro it takes over a minute to write out my memory to disk. This is part of the Mac's safe suspend option, which allows it to restore your memory from the hibernation file if the Mac loses power (say you change batteries or they go flat) while it is asleep.

I prefer my machine to go to sleep as soon as possible and am willing to take the risk of an unclean shutdown should my battery go flat.

A long time ago I disabled this behavior, but have recently reinstalled my machine and OS X has reverted to the default behavior.

How can I disable the hibernation action when I close the lid?

link|improve this question
feedback

migrated from serverfault.com Jan 18 at 10:30

This question came from our site for system administrators and desktop support professionals.

2 Answers

up vote 9 down vote accepted

To disable Safe Sleep:

$ sudo pmset -a hibernatemode 0
$ sudo nvram "use-nvramrc?"=false

Further details can be found at http://www.normalesup.org/~martinez/macosx/, Including how to enable it again.

link|improve this answer
feedback

I use the SmartSleep preference pane:

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown