google.com, pub-2479148851417979, DIRECT, f08c47fec0942fa0 Quick Tips for Mac Geeks: How to Fix My Mac won't wake from Sleep - How to disable hibernation mode - works in Sierra OS X 10.12

Tuesday, November 15, 2016

How to Fix My Mac won't wake from Sleep - How to disable hibernation mode - works in Sierra OS X 10.12

How to disable hibernation mode

Code:
sudo pmset -a hibernatemode 0


delete /private/var/vm/sleepimage :


Code:
sudo rm /private/var/vm/sleepimage

create an empty file and name it 'sleepimage'

Code:
sudo touch /private/var/vm/sleepimage


change this flag to immuable


Code:
sudo chflags uchg /private/var/vm/sleepimage

Now, OS X won't be able to rebuilt over your sleepimage file since it is locked.



First, you need to restore the sleep image to its original state 
Code:
sudo chflags nouchg /var/vm/sleepimage
sudo chown root:wheel /var/vm/sleepimage
sudo chmod 1600 /var/vm/sleepimage

To verify, when you type this command:

Code:
ls -lOh /var/vm/sleepimage

You should get this result:

Code:
-rw------T  1 root  wheel  -  4.0G Aug 23 15:01 /var/vm/sleepimage

Then you need to reset the hibernation mode to its system default:

Code:
sudo pmset -a hibernatemode 3

You may have to reboot.

No comments:

Adsense

google.com, pub-2479148851417979, DIRECT, f08c47fec0942fa0