Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bryanhuntesl/9bdee35d50e1b8209be98bd0c45a2fd0 to your computer and use it in GitHub Desktop.
Save bryanhuntesl/9bdee35d50e1b8209be98bd0c45a2fd0 to your computer and use it in GitHub Desktop.
make that mac not sleep - let that mac sleep again
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1

and after reenable with

sudo pmset -b sleep 5; sudo pmset -b disablesleep 0

or the mac will never sleep again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment