Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnrsoft/79d802f4fa1bd54816d5fa31f9656eb8 to your computer and use it in GitHub Desktop.
Save lnrsoft/79d802f4fa1bd54816d5fa31f9656eb8 to your computer and use it in GitHub Desktop.
how to permamently disable OSX sleepimage
View the sleep image size
ls -lh /private/var/vm/sleepimage
Disable sleep mode:
sudo pmset -a hibernatemode 0
Remove the image:
sudo rm /private/var/vm/sleepimage
Create a 0-byte file:
sudo touch /private/var/vm/sleepimage
Make the file not writable:
sudo chflags uchg /private/var/vm/sleepimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment