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

pjny

macrumors 6502a
Original poster
Feb 18, 2010
798
159
Hi,

I am trying to prevent hibernate so I can save disk space and battery power. I looked at instructions for older mac os but can't seem to delete the sleepimage

I used this in terminal:

sudo pmset -a hibernatemode 0

i tried these both but os x wouldn't allow operation to work:

sudo rm -rf /var/vm/sleepimage

sudo rm /var/vm/sleepimage

thanks
 
On my iMac, the sleep file is contained in a seperate hidden APFS volume called VM. In terminal do a ‘diskutil list’ and it should be in the same container disk as the OS.

Diskutil apfs removevolume disk1s4

...is the command i used to remove it i think. If not, ‘diskutil apfs’ will give you a list of the afps related commands.
 
Did anyone solve this hibernate thing?
It's the same with acwake. Set it to 0 and OSX ignores the command. Even after diabling SIP.
 
According to the manual page of pmset, you have to disable hibernation, standby and autopoweroff to disable the sleep image.
To disable hibernation images completely, ensure hibernatemode standby and autopoweroff are all set to 0.

Code:
sudo pmset -a hibernatemode 0 standby 0 autopoweroff 0
 
Yup - I tried using the tricks I used from ML up through El Capitan but it didn't work. I found that setting standby to 0 as part of @KALLT suggests has kept my Mac in just sleep rather than safe sleep.
 
Well I'm trying to get it to stop hibernating over night or after a few hours but changing standbydelay to 24 hours (in seconds) has no effect and setting hibernatemode 0 doesn't work. It just doesn't register the commands even with SIP disabled. And this is on two 13" 2012 MBP's.

Scratching my head here...
 
In Terminal, run the following command-

Code:
sudo pmset -a standby 0

This disabled the deep sleep or hibernate on my 2012...
 
Thanks. I'll try it but so far all pmset commands are basically ignored. I've also been trying to switch of acwake, which as far as I can tell is a pretty useless function anyway, but seting it to 0 does nothing.

Update:
...and sure enough, sudo pmset -a standby 0 =zero result.

Like I said, thanks all the same.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.