Skip to content

Instantly share code, notes, and snippets.

@bjorg
Last active August 29, 2015 14:22
Show Gist options
  • Save bjorg/be3f29855e985e1aeadc to your computer and use it in GitHub Desktop.
Save bjorg/be3f29855e985e1aeadc to your computer and use it in GitHub Desktop.
MacBook Settings
# Delay deep sleep for 24hrs, which drains batteries more,
# but prevents system restarts when the computer is sleeping
# for more than 4 hours (the default value).
# NOTE: if the computer sleeps for 24+ hours, it will still cause a system restart.
sudo pmset -a standbydelay 86400
# Improve performance of VMware Fusion
# from http://kb.parallels.com/122767
sudo nvram boot-args="debug=0x10"
# Prevent sleep image from being created
# (Saves 8-16GB of space depending on memory on the machine)
sudo pmset hibernatemode 0
# Delete sleep image
sudo rm -f /var/vm/sleepimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment