Beginning with Mac® portable computers introduced in late 2005 running Mac OS X 10.4.3 or later, Apple® introduced safe sleep. Safe sleep is akin to hibernation mode in other operating systems. While this feature can be useful, such as if your recent Mac portable completely exhausts its battery during sleep mode, it can also be problematic.
In safe sleep, the entire current state of the computer is saved to the startup disk in the sleepimage file in the Macintosh HD > private > var > vm folder (/private/var/vm/sleepimage). If this file becomes corrupted, then you may be unable to wake the computer from sleep. Attempts to restart the computer may result in either a kernel panic or the system remaining at the grey Apple logo with the spinning gear progress indicator.
This FAQ provides a procedure for bypassing and removing a potentially corrupted sleepimage file and disabling safe sleep. It applies to recent Mac portable computers running Mac OS X 10.4.3 or later.
|Warning:||Deleting the sleepimage file will result in the loss of any unsaved changes in documents that were open at the time the computer entered safe sleep mode.|
Open Terminal, located in the Macintosh HD > Applications > Utilities folder.
Mac OS X
|If secure virtual memory is:||Enable safe sleep with the Terminal command:|
|10.6 or later||n/a||sudo pmset -a hibernatemode 3|
|10.5||Not enabled:||sudo pmset -a hibernatemode 3|
|Enabled:||sudo pmset -a hibernatemode 7|