Created
January 24, 2020 21:28
-
-
Save itsjimbo/51630c64b32779c2927b464bd71698d5 to your computer and use it in GitHub Desktop.
post-update fix for sleep on hackintosh - after every update this fixes sleep; sleep is reset from apple update
This file contains hidden or 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
#!/bin/sh | |
# | |
# | |
#iMac:~ $ pmset -g | |
#System-wide power settings: | |
#Currently in use: | |
# hibernatemode 0 | |
# womp 0 | |
# networkoversleep 0 | |
# sleep 45 (sleep prevented by backupd, backupd, UserEventAgent, mds_stores) | |
# Sleep On Power Button 1 | |
# ttyskeepawake 1 | |
# hibernatefile /dev/null | |
# disksleep 10 | |
# displaysleep 45 | |
sudo pmset -a hibernatemode 0 | |
sudo rm -f /var/vm/sleepimage | |
sudo pmset -a hibernatefile /dev/null | |
sudo pmset -a standby 0 | |
sudo pmset autopoweroff 0 | |
sudo pmset -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment