Created
October 12, 2015 12:07
-
-
Save mike0004/72c5d7bf7a7ab4bc6d07 to your computer and use it in GitHub Desktop.
Set mac power settings to prevent battery drain during sleep
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
# show pmsettings (see `man pmset` or http://bit.ly/1LDWm37) | |
pmset -g | |
# see what wakes up your host | |
syslog |grep -i "Wake reason" | |
# turn off sleep settings | |
sudo pmset ttyskeepawake 0 | |
sudo pmset womp 0 | |
sudo pmset powernap 0 | |
sudo pmset hibernatemode 3 # 25- is more aggressive hibernate but can lose your state | |
# look at this too: autopoweroffdelay 14400 | |
# see what wakes up your host | |
syslog |grep -i "Wake reason" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment