Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to disable hibernatemode since update 2.0

I did the update 2.0 today and I noticed that hibernate mode has been set to enabled. So I deleted the /private/var/vm/sleepimage and disable hibernatemode like this :


sudo pmset -a hibernatemode 0


But the problem is that hibernate mode is automatically set to 3 when I shutdown my macbook air or I reboot it. Anyone has the same issue ?

MacBook Air (13-inch, Mid 2012), OS X Mountain Lion (10.8.2)

Posted on Nov 9, 2012 3:51 AM

Reply
Question marked as Best reply

Posted on Nov 9, 2012 6:23 AM

Ok so I managed to solve my problem. Basically, I couldn't prevent the sleepimage to rebuilt even though my hibernate mode is set to 0, I don't know why but now my sleepimage weights 0 byte instead of 8 gigs. Here's the deal :


First, disable hibernation mode :

sudo pmset -a hibernatemode 0


delete /private/var/vm/sleepimage :

sudo rm /private/var/vm/sleepimage


create an empty file and name it 'sleepimage' :

touch /private/var/vm/sleepimage


change his flag to immuable :

chflags -uchg /private/var/vm/sleepimage


That's it ! Now, OS X won't be able to rebuilt over your sleepimage file since it is locked. This one worked for me, hope it'll work for those who encounter the same problem as mine.

22 replies

Oct 21, 2013 11:14 AM in response to garbor

I found that after upgrading to 10.8.5, my Macbook Pro Retina started to take 20 seconds or so to go to sleep. Like this thread explains, it seems to be because the hibernateflag is now ignored by the OS .. I tried both suggestions here (chflags and /dev/null), and those both prevent the sleepimage from being created, but going to sleep still takes just as long. Very frustrating!

Oct 22, 2013 1:44 AM in response to n808n808

I solved my problem .. I found this article "Addressing slow sleep times in OS X"

http://reviews.cnet.com/8301-13727_7-20077964-263/addressing-slow-sleep-times-in -os-x/

I tested sleep after each step, and it went back to normal after resetting PRAM with Option-Cmd-P-R during boot chime. I will never know what caused it or exactly why PRAM needed resetting.


[I had already reset the SMC after the 10.8.5 update as the system kept freezing for seconds at a time right after the update. And I was under the impression Apple OS X computers were more stable than Windows boxes ... This is my first Apple computer after way too many years with Windows. I will reset both SMC and NVRAM after all system updates from now on]

Feb 7, 2015 9:01 AM in response to Casio Speedwagon

This is what's happening now when I put the last two commands in Terminal:


Stephens-MacBook-Air:~ stephen$ touch /private/var/vm/sleepimage

touch: /private/var/vm/sleepimage: Permission denied

Stephens-MacBook-Air:~ stephen$ chflags -uchg /private/var/vm/sleepimage

chflags: illegal option -- u

usage: chflags [-fhv] [-R [-H | -L | -P]] flags file ...

Stephens-MacBook-Air:~ stephen$

Unable to disable hibernatemode since update 2.0

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.