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

rmger

macrumors member
Original poster
Jan 26, 2013
34
0
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?
 
Last edited by a moderator:

maflynn

macrumors Haswell
May 3, 2009
73,682
43,740
Did you disable it with sudo pmset -a hibernatemode 0 ?

If you don't then it will re-appear
 

Brian Y

macrumors 68040
Oct 21, 2012
3,776
1,064
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?

Sorry, move this topic in https://forums.macrumors.com/forums/155/.

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
 

rmger

macrumors member
Original poster
Jan 26, 2013
34
0
Did you disable it with sudo pmset -a hibernatemode 0 ?
Yes.

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

Yes, this solved the problem. I'm doing this to optimize SSD.
 

tvamvarg

macrumors newbie
Feb 5, 2009
24
5
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

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!
 

lazybaer

macrumors newbie
Feb 7, 2013
1
0
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
 

turtlez

macrumors 6502a
Jun 17, 2012
977
0
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.

----------

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

Thank you very very much!
 

Brian Y

macrumors 68040
Oct 21, 2012
3,776
1,064
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!

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.
 

turtlez

macrumors 6502a
Jun 17, 2012
977
0
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.

yeh mine was writing 2.4GB and i was pretty annoyed about that. What a silly move by Apple.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.