netkas.org

Much faster hibernate wakeup

Use this script to get faster hibernate wakeup time

pmset -a hibernatemode 29

system will dump many of inactive apps to swap before dumping memory to sleepimage file, so wakeup goes much faster.

Comments

  1. Weust
    August 23rd, 2011 | 7:03 pm

    Never used hibernate before on my MacBooks, was interesting.
    Just to be sure, reverting back to default is: pmset -a hibernate mode 3 ?

  2. digital_dreamer
    August 23rd, 2011 | 7:31 pm

    Weust,
    Just do a pmset -g to get your current power management settings.

    MAJ

  3. MikeMyDay
    August 23rd, 2011 | 8:14 pm

    This also enables hibernate on my MacPro 1,1.
    Tools like SmartSleep didn’t work!

    Thanks!

  4. Weust
    August 23rd, 2011 | 8:30 pm

    I know, figured that out after doing the 29 line…
    Mode 3 seems to work for me again 🙂

  5. Oleg
    August 24th, 2011 | 8:02 am

    doesn’t work with chameleon, it says encrypted sleepimage 🙂

    ///actualy works here, with chameleon.

  6. August 25th, 2011 | 1:02 am

    everytime after hibernate, its succesfull to desktop, but its only give me white screen, with normal sleep it works, but with deepsleep or hibernate, its aleays white screen, but i think its on desktop, bcause i pressed logout shortcut in keyboard, its loading, but still in white screen,

    asus eah 6870

    can u help me?

  7. kws
    August 25th, 2011 | 10:41 am

    Press cmd + alt + f12 when you stuck in white screen after wake from deepsleep. After 2. wake maybe the screen is regular …

  8. dtr
    August 25th, 2011 | 3:09 pm

    Setting bit 2 was for encrypted virtual memory in former versions of OS X.

    Apple recommends setting bits 0, 1, 3 and 4.

    0 enables hibernation
    1 in conjunction with bit 0, causes OS X to maintain system state in memory and leave system power on until battery level drops below a near empty threshold = hybrid mode of sleep and hibernation
    2 is set in older versions of OS X if secure VM is used
    3 encourages the dynamic pager to page out inactive pages prior to hibernation
    4 encourages the dynamic pager to page out more aggressively prior to hibernation

    None of the standard modes apple uses set bit 2 in Lion:

    From the manage of pmset:

    hibernatemode = 0 (binary 0000) by default on supported desktops.

    hibernatemode = 3 (binary 0011) by default on supported portables.

    hibernatemode = 25 (binary 0001 1001) is only settable via pmset. The system will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want “hibernation” – slower sleeps, slower wakes, and better battery life, you should use this setting.

    If you want both of the page out options for a smaller memory footprint, the hybrid of hibernation and sleep and hibernation itself I recommend using “sudo pmset -a hibernatemode 27” instead of 29.

    This will set bits 0001 1011.

  9. benzol
    June 12th, 2012 | 9:58 pm

    This is all very nice nice but my hackintosh won’t have none of it. Whatever I shove in its thoat it won’t do any deep sleep saving memo to disk and switching off. A real bugger! dsdt issue?

Leave a reply