hibernatemode 0+sleepimage=bug?

Discussion in 'OS X Mountain Lion (10.8)' started by rmger, Jan 26, 2013.

  1. rmger, Jan 26, 2013
    Last edited by a moderator: Jan 26, 2013

    rmger macrumors member

    Joined:
    Jan 26, 2013
    #1
    OS X v. 10.8.2

    pmset -g
    Code:
    standbydelay	86400
    hibernatemode	0
    ....
    
    I removed sleepimage, but after some time /private/var/vm/sleepimage appears again. Bug?
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    Did you disable it with sudo pmset -a hibernatemode 0 ?

    If you don't then it will re-appear
     
  3. Brian Y macrumors 68040

    Joined:
    Oct 21, 2012
    #3
    10.8.2 changed the way this worked, and removing the sleep image is not enough (for some stupid reason). After removing the sleep image, create a new file there, and make it unmodifiable:

    Code:
    sudo pmset -a hibernatemode 0
    sudo rm /private/var/vm/sleepimage
    sudo touch /private/var/vm/sleepimage
    sudo chflags uchg /private/var/vm/sleepimage
    
     
  4. rmger thread starter macrumors member

    Joined:
    Jan 26, 2013
    #4
    Yes.

    Yes, this solved the problem. I'm doing this to optimize SSD.
     
  5. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #5
    Which model computer are you using? I get a sleepimage file on a new Mini but don't see it on Mac Pros.
     
  6. rmger thread starter macrumors member

    Joined:
    Jan 26, 2013
    #6
    Macbook Pro 13" Retina, 128 GB.
     
  7. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #7
    Ah ok, I expect to see it on laptops but not on a Mini.
     
  8. tvamvarg macrumors newbie

    Joined:
    Feb 5, 2009
    #8
    I noticed this problem with the reappearing sleepimage today and got somewhat frustrated. Glad I could go right here to these excellent forums and get a workaround. Thanks!
     
  9. lazybaer macrumors newbie

    Joined:
    Feb 7, 2013
    #9
    Hi

    For me (Mac Mini Late 2012) none of the above solutions work. Only when I entered

    sudo pmset -a hibernatefile /dev/null/sleepimage

    (or what ever you like as name of the image), everything is working now as I expect and like it.

    Regards
    Lazy
     
  10. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #10
    The steps in post #3 worked for me with my late 2012 Mini.
     
  11. turtlez macrumors 6502a

    turtlez

    Joined:
    Jun 17, 2012
    #11
    holy crap I made a thread about this two days ago and got flamed to **** over it. Good to see it is an actual issue and my question was valid, thanks for the responses everyone.

    ----------

    Thank you very very much!
     
  12. Brian Y macrumors 68040

    Joined:
    Oct 21, 2012
    #12
    Yeah, in 10.8.2 Apple changed how sleep image is dealt with. And I can't imagine writing 16GB to the SSD every time my laptop sleeps would do any good for the SSDs longevity.
     
  13. turtlez macrumors 6502a

    turtlez

    Joined:
    Jun 17, 2012
    #13
    yeh mine was writing 2.4GB and i was pretty annoyed about that. What a silly move by Apple.
     

Share This Page