Skip navigation

Unable to disable hibernatemode since update 2.0

12634 Views 20 Replies Latest reply: Jan 1, 2014 4:09 PM by AnonJ RSS Branched to a new discussion.
1 2 Previous Next
garbor Calculating status...
Currently Being Moderated
Nov 9, 2012 3:51 AM

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)
  • BoyHowdyDoo Level 2 Level 2 (380 points)
    Currently Being Moderated
    Nov 9, 2012 11:08 AM (in response to garbor)

    Worked fine thanks. Errored out with -uchg. Used no flag "uchg" and all is peachy.

  • Steffen B. Calculating status...
    Currently Being Moderated
    Nov 9, 2012 5:47 PM (in response to garbor)

    Thanks! Worked fine. Was looking for a solution to this all day long...

  • RSpaight Calculating status...
    Currently Being Moderated
    Nov 9, 2012 8:50 PM (in response to garbor)

    Thanks for sharing the solution, this was driving me batty. Your fix seems to do the trick, just had to remove the dash from "-uchg" as noted above.

  • ferdinand0 Calculating status...
    Currently Being Moderated
    Nov 11, 2012 2:26 AM (in response to garbor)

    when i use the touche command the terminal give a permission denied message

  • NickAtoms Calculating status...
    Currently Being Moderated
    Nov 13, 2012 2:19 PM (in response to garbor)

    An alternative to garbor's solution is to change the sleepimage file to /dev/null.  I believe anything "written" to /dev/null is simply discarded.  The existing sleepimage file can then be removed.

     

    sudo pmset -a hibernatefile /dev/null

  • Ellfire Level 1 Level 1 (25 points)
    Currently Being Moderated
    Nov 14, 2012 1:48 PM (in response to garbor)

    Yep, this worked great.  Thanks!  It was driving me nuts!

  • Jason Sims Level 2 Level 2 (180 points)
    Currently Being Moderated
    Nov 15, 2012 10:29 PM (in response to garbor)

    Just noticed the same thing myself. I installed MBA/MBP Update 2.0 today, and just now noticed my MBA (mid 2012) took 10-15 seconds to become responsive after opening it (one of several reasons I disabled hibernate mode in the first place). I checked if /var/vm/sleepimage existed, and sure enough, there it was.

     

    Thanks for the tip about blocking sleepimage from being written. It's more of a band aid than a real solution, but if it actually sticks, it'll do for now.

     

    Are you sure your Mac is actually setting hibernatemode to 3 though? Did you try pmset -g to get the current settings before disabling it again? I just checked mine, and hibernatemode is still set to 0. This leaves me with two working theories:

     

    1. The hibernatemode setting is now being ignored on purpose*
    2. There's a bug introduced by MBA/MBP Update 2.0 that causes hibernate mode to be on even when it's supposed to be disabled

     

    If it's #2, it might just be a matter of resetting the PMU (and then possibly re-applying the setting via pmset). I'll try that later and report back if it works.

     

    * Why Apple would force everyone to use this "feature" is beyond me, since there are a number of very valid reasons for turning it off, ranging from annoying delays to bigger problems like kernel panics, not to mention the fact that this feature is basically pointless if you never leave your laptop in sleep mode long enough to run out of power.

  • Nikolaus Heger Level 1 Level 1 (15 points)
    Currently Being Moderated
    Nov 22, 2012 9:43 PM (in response to Jason Sims)

    @Jason Sims - I've come to the same conclusion.

     

    No matter what I set hibernate mode to, my retina MacBook Pro takes 10 seconds or more to wake from sleep - it seems to only happen after a while so I guess what the system does is:

     

    - Put computer to sleep

    - After a certain amount of time, hibernate. About 30 minutes or so.

     

    If I wake my computer instantly, there's still a short delay with a grey screen showing - that's new also. Prior to that latest upgrade, wake was instant.

     

    The system seems to ignore the hibernatemode setting completely (I had it on 0 and it would remain on 0, but still hibernate and take forever to wake).

     

    Locking the sleepimage like the above is a hack and once they fix it, you have to remember to remove this hack again. If you forget to remove it it might cause problems down the road.

     

    Best to file bugs with Apple.

  • bunnyhero Calculating status...

    Nikolaus Heger wrote:

     

    - After a certain amount of time, hibernate. About 30 minutes or so.

     

    the "standbydelay" parameter for pmset is supposed to govern that length of time, in seconds. i'm going to try to set that to a very large value to see if that makes a difference.

  • Studio Engineer Level 2 Level 2 (445 points)
    Currently Being Moderated
    Apr 15, 2013 6:47 AM (in response to BoyHowdyDoo)

    BoyHowdyDoo wrote:

     

    Worked fine thanks. Errored out with -uchg. Used no flag "uchg" and all is peachy.

    That is because the line is "false" the uchg is a keyword. Not an option. Hence the dash is left out.

     

    The line should be like this -

     

    chflags uchg /private/var/vm/sleepimage

  • danielkinard Calculating status...
    Currently Being Moderated
    Jun 7, 2013 7:02 PM (in response to garbor)

    Is there a way to reverse this after it has been done? I've followed your steps and it worked perfectly, but just incase I'd want to reinstate sleepimage in the future -- do you know how to do this? I'm a mac noob so I really have no idea how to figure that out on my own.

     

    Cheers.

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (6)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.