Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacUse-R

macrumors regular
Original poster
Dec 24, 2017
185
21
I have disabled smartsleep (hibernation 0 ) on my MacBook Pro 2011 with High Sierra.

But when i delete the sleepimage and restart the macBook Pro the sleepimage reappears.

Also i think that the smartsleep is still active, when i check hibernation status in Terminal it says "hibernation 0", i.e. the smartsleep hibernation should be disabled.


Anybody has an idea what is going on? Have i forgot some steps?
 

Fishrrman

macrumors Penryn
Feb 20, 2009
28,939
12,993
Four-step sequence to disable hibernation mode and get sleep image under control:
(Note: this works with sleepimage files in Low Sierra and "lower". You'll have to try it to see if it works in High Sierra)

First, disable hibernation mode :
sudo pmset -a hibernatemode 0

Next, delete the existing sleep image file:
sudo rm /private/var/vm/sleepimage

Now, create an empty file and name it 'sleepimage' :
sudo touch /private/var/vm/sleepimage

Finally, change its flag to immuable :
sudo chflags uchg /private/var/vm/sleepimage

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

hallux

macrumors 68040
Apr 25, 2012
3,438
1,005
(Note: this works with sleepimage files in Low Sierra and "lower". You'll have to try it to see if it works in High Sierra)

It will not, I tried it on mine already. I found success with just setting the pmset variables to 0 as suggested by @chabig
 

MacUse-R

macrumors regular
Original poster
Dec 24, 2017
185
21
Four-step sequence to disable hibernation mode and get sleep image under control:
(Note: this works with sleepimage files in Low Sierra and "lower". You'll have to try it to see if it works in High Sierra)

First, disable hibernation mode :
sudo pmset -a hibernatemode 0

Next, delete the existing sleep image file:
sudo rm /private/var/vm/sleepimage

Now, create an empty file and name it 'sleepimage' :
sudo touch /private/var/vm/sleepimage

Finally, change its flag to immuable :
sudo chflags uchg /private/var/vm/sleepimage

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

I did these four steps and restarted the MacBook Pro and the sleepimage is still 0 Bytes, so as long as it doesn't write a sleep image to my SSD I'm happy. So thanks.
My goal is actually not to have the smart sleep mode disabled but to stop major writes made by the smart sleep mode to the SSD.

I haven't still read the link posted by chabig, but that seems to involve some other steps?
[doublepost=1522086979][/doublepost]
sleep settings.jpeg


This is the info I get from pmset -g
Does it look as I have the correct things disabled? There are some things I don't even understand what they are, for example "sms", womp, ttyskeepawake, acwake?
[doublepost=1522087818][/doublepost]EDIT: If I only want to stop the sleep image writes to my SSD do I still need to set the autopoweroff and standby to 0 ?
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.