Last active
November 14, 2019 14:34
-
-
Save skibitsky/30448799ee7e61debafa90c7d3dad8f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sleep modes: | |
hibernatemode = 0 (binary 0000) by default on supported desktops. The | |
system will not back memory up to persistent storage. The system must | |
wake from the contents of memory; the system will lose context on power | |
loss. This is, historically, plain old sleep. | |
hibernatemode = 3 (binary 0011) by default on supported portables. The | |
system will store a copy of memory to persistent storage (the disk), and | |
will power memory during sleep. The system will wake from memory, unless | |
a power loss forces it to restore from disk image. | |
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. | |
# Check waht is active sleep mode | |
pmset -g | grep hibernatemode | |
# Update sleep mode | |
sudo pmset -a hibernatemode $mode | |
# sudo pmset -a hibernatemode 25 ← this will enable hibernatemode-25 | |
# Update sleep mode only when on battery | |
sudo pmset -b hibernatemode $mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment