Safe Sleep

Safe Sleep on wake up

Safe Sleep on wake up

Usually, I do not turn off any of my Macs, because the sleep mode works so well. With a Mac Book it is just easy to close the lid.

But I ever wondered what would happen if the battery goes too low while beeing in sleep mode.

Since Tiger, there is a mode called “Safe sleep”. This is the pendant to the Windows hibernate mode. The content of the RAM is written to the harddisk, then the device is powered off.

To have this mode could be intersting if you travel a long time without using your Mac Book.

With help of the Terminal it is no big deal. You can enable the Safe sleep by entering

sudo pmset -a hibernatemode 1

Then, if you close the lid or use the Apple menu bar it will safe sleep.

If you need secure and encrypted memory content stored, then take the 5 instead of number 1.

To reverse it to the normal sleep, where the RAM is still is active set the number to 0.

Have nice dreams!

This entry was posted in Coole Mac OS X Tricks and tagged , , , , , . Bookmark the permalink.

4 Responses to Safe Sleep

  1. admin says:

    I am just having the standard edition.

    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.8 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 2 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version: 1.21f4

  2. Lasse says:

    And how much RAM is installed in that machine?

  3. admin says:

    This depends on the amount of RAM and the speed of your harddrive. On my 24″ iMac it takes about 20-30 seconds (felt, not measured).

  4. Lasse says:

    Nice tutorial, will give that a try soon. How long does it take OS X to restart from hibernation?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>