pmset and Safe Sleep, can't disable it

Hi, I recently asked about why is my iMac going to Safe Sleep over night. I found why (http://support.apple.com/kb/HT1757) and I thought I had found a solution. I read pmset manual page but I think there are few thing missing + few things are not working for me.

I have standby, autopoweroff and hibernatemode set to 0 but still the computer went to Safe Sleep over night. I noticed (and tested) that standbydelay is time after mac goes from regular sleep to safe sleep, so I changed it to 57600 (16 hours) but still, in the morning computer was waking up from safe sleep.

Does anyone have similar problems? Or does anyone know why the iMac is going to safe sleep when thats supposed to be banned by hibernatemode set to 0?


Thanks in Advance


Best Regards

Milan

iMac, OS X Mountain Lion (10.8.3)

Posted on Mar 31, 2013 10:53 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Apr 1, 2013 11:18 AM

Take a look at the discussion here. There are a couple of posts (like this) explaining the procedure:

Go to Terminal and enter: sudo pmset -a autopoweroff 0

To undo type: sudo pmset -a autopoweroff 1


Hope this helps...

13 replies
Sort By: 

Apr 2, 2013 1:50 PM in response to n748

autopoweroff, standby, autopoweroffdelay nor standbydelay didn't make a difference for me, the computer always goes to Safe Sleep over night. I'm kinda frustrated form it cause whatever I try it's always the same

Furthermore they say "standby only works if hibernation is turned on to hibernatemode 3 or 25." and "standby causes kernel power management to automatically hibernate a machine after it has slept for a specified time period." So how come that my iMac hibernates when I have hibernate mode set to 0 and the "specified time period" is set to 24 hours???

Reply

May 2, 2013 1:04 PM in response to milanprokop

I have the same issue. I have reset the autopoweroff and hibernatemode to 0. I still get the **** safe sleep. Strange thing is it only happens when it is plugged in. It noticed this started to happen after I updated the OS (forgot which version). If anyone have a solution, please share.

Reply

Jul 7, 2013 9:33 AM in response to milanprokop

This thread may be a little stale, but it fits my issue perfectly.


Has anyone discovered a usable workaround to prevent iMac's from going into Safe Sleep yet?


The recommendations in this thread haven't produced any results for me.


One of the major benefits (at the time) that caused me to switch to Apple workstations was their ability to recover from sleep almost instantly. This is a significant problem for me.

Reply

Aug 14, 2013 9:27 AM in response to milanprokop

I have a late 2012 Mac Mini base model (refurbished, running OS X 10.8.4), that I added 16GB of RAM and a 256GB Samsung 840 Pro SSD to (in the primary drive slot, moving the stock HDD to the secondary slot). I had trouble getting wake on lan to work (through my DD-WRT router), when the machine was in "deep sleep" (where the light was completely off), which I later came to learn is called "safe sleep." When it was in normal sleep (light slowly oscillating) then WOL worked fine.


In my case, I had already set hibernatemode=0 and autopoweroff=0 via pmset, but it was still happening. Finally I set standby=0 and that did the trick (stopped going into safe sleep). This is in spite of the fact that according to the man page, this should not be needed; standby is supposed to be ignored if hibernatemode=0, which was definitely not the behavior I observe on my machine.


Anyway, I'm just posting this in case it helps anyone else in a similar situation. Set standby=0 via pmset and see if that lets you disable safe sleep.

Reply

Aug 29, 2013 5:09 AM in response to jeff303

Correction to the above, WOL still does not work. 😟 The light doesn't go completely off, but even still, after a certain period of time, the wake on lan packet no longer wakes the machine up. It still works if the machine has "just" gone to sleep. Very frustrating, guess I have to simply disable sleep when going out of town.

Reply

Dec 7, 2016 2:00 PM in response to milanprokop

Hello everybody, I see this thread is quite old, did someone figured out how exactly pmset works?


Why even when hibernatemode is 0 iMac still tends to create sleepimage file and after standbydelay time hibernates?


When exactly is sleepimage file created? It looks like the system doesn't even have to go into sleep for the sleepimage file to be created.


My problem is now when all the pmset is restored to defaults, after standbydelay it falls probably into Safe Sleep (hibernates to sleepimage) and then it's "hard to wake it up". After first click on the mouse or keyboard I see power consumption rise and disk spin-up could be heard, screen backlit comes up but screen remains dark. It takes few more clicks to bring up logon screen and get system up and running.


I don't know if the system is trying to wake up from sleepimage, but as it is an iMac, connected to AC all the time I think it should wake up from RAM, not from the file stored on disk.


Also I were still not able to figure out the difference with standby and autopoweroff.


So to avoid all those troubles I have just set standby and autopoweroff to 0 and that sorted the problem out for now. But I would be very happy to know exactly what's going on here. If anyone have clear explanation it would be very appreciated. But unfortunately looks like even the Apple doesn't have because it's not even explained correctly in man documentation with the latest version of macOS.


Thanks in advance, regards...


Manolis

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

pmset and Safe Sleep, can't disable it

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.