Contribute
Register

Safe to disable safe sleep?

Status
Not open for further replies.
Joined
Jan 9, 2013
Messages
19
Motherboard
idk
CPU
i7
Graphics
nvidia
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Build: http://pcpartpicker.com/p/vxL0
Method: Unibeast + Multibeast (latest versions). Everything I've tested seems to work except plugging USB 2 devices into USB 3 ports seems to always draw too much power.

The sleepimage is 32GB, which is a huge waste of space. And a desktop never really needs to hibernate, as far as I'm concerned. On Apples, it's supposed to be the default with desktops. And with a 120GB boot drive, I don't see it as valuable.

Can I set hibernatemode 0 safely, or will that screw something up?

Also, just as a side note, is there a safer/better way to test changes like this than imaging the boot drive to another volume?

Also, insert the customary thanks for all your help thing here. I was planning on posting something bigger (with pictures, etc.) once I actually had things tested……this is the first one that I'm not sure about just experimenting with.
 
Yes, it's safe
I disabled it on my hack and deleted the sleep image, gained 8Gb and my system goes to sleep as soon as I hit sleep, that's like half second (it took like 10 seconds with safe sleep enabled)
To delete the sleep image:
Code:
sudo rm -rf /var/vm/sleepimage
 
in many instances, the sleepimage file will come back after being deleted

this article shows how to resolve that part

https://discussions.apple.com/thread/4492672?tstart=0

summary:

create an empty file and name it 'sleepimage' :
touch /private/var/vm/sleepimage

change flag to immutable :
chflags uchg /private/var/vm/sleepimage
 
Thank you all. I figure doing both can't hurt.

If anyone's interested, the way you disable safe sleep is

Code:
pmset hibernatemode 0

As root.

The modes that matter are:

0: suspend to ram only
3: suspend to ram, write contents to disk; resume from ram if possible, resume from disk if necesary.
25: suspend to disk only.
 
Status
Not open for further replies.
Back
Top