Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Your Mac Pro 6,1 ( 2013 ) supports power nap . Maybe this is what is causing this behavior . You can verify whether its active if you go into System Preferences , Energy Saver .

I disable Power Nap on all my machines so it must have been something else. Without a pulsating sleep light you'd never even realise (unless combing through log files is a hobby). So this is why it was removed.

Btw. on the subject of sleep mode: is there a proper hibernate mode in the OS? One that suspends to disk after a while and will continue the session as if nothing had happened even if the power fails? I think I had that going once on a different machine and it was super handy, seem to have lost it in an OS update.

pmset -g
System-wide power settings:
Currently in use:
standby 1
Sleep On Power Button 1
womp 1
autorestart 0
hibernatefile /var/vm/sleepimage
powernap 0
gpuswitch 2
networkoversleep 0
disksleep 0
sleep 0
autopoweroffdelay 28800
hibernatemode 0
autopoweroff 1
ttyskeepawake 1
displaysleep 0
standbydelay 0
 
One that suspends to disk after a while and will continue the session as if nothing had happened even if the power fails?
This is called "hybrid sleep" in Windows. When it enters sleep - it does a full memory dump (filtered and compressed) into %SystemDrive%\hiberfil.sys. Once system state has been saved, it will enter sleep mode. (My ThinkPad blinks the cover LED rapidly while writing the hibernate file, and then goes to a slow pulse when sleeping.)

My settings on the laptop are:

hybrid.jpg


In words, this is:
  • If on battery, enter sleep after two hours of no user activity, if on mains never sleep
  • Before entering sleep, save state to the hibernate file
  • If on battery, after sleeping for 3 hours shutdown, and resume from the hibernate file. If on mains, sleep until woke
By "filtered", I mean that significant part of memory are copies of stuff that's already on the disk. There's no need to copy these bits. The main examples would be filesystem read caches and execute-only code. These can be re-read from disk after resuming.
 
Last edited:
One that suspends to disk after a while and will continue the session as if nothing had happened even if the power fails?
Note that the safer route is to save to disk before entering sleep mode.

If sequenced as you suggest, then you could lose the state if the power is lost while sleeping, or if there's insufficient battery power to save the state to disk.
 
Note that the safer route is to save to disk before entering sleep mode.

If sequenced as you suggest, then you could lose the state if the power is lost while sleeping, or if there's insufficient battery power to save the state to disk.

Yes, you'd lose the session if power is interrupted before everything gets offloaded to disk. However it should be a good deal quicker to wake the machine if its still in sleep mode. During the day I tend to sleep the thing quite frequently if I leave my desk for a bit.

I do like the hibernation mode as a backup and to clean or move machines without ever shutting them down. Works like a dream on my Windows desktop.

Anyway, seems this is called safe sleep on the mac: https://computers.tutsplus.com/tutorials/how-to-hibernate-a-mac--cms-23235

This looks like the ideal setting:
hibernatemode=3 by default is supported on portables or laptops. The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from disk image.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.