Sleep / Wake Failure SOLUTION WORKAROUND that worked for me:
My System: Maverics OS X 10.9, Mid 2012 Retina MacBook 16GBmem, 768BGssd, 2.6Ghz
Symptom: At the end of the day I close the lid, then the next morning I open it up, then I see the Sleep / Wake failure error message... including the fact that my system was forcably rebooted.
SOLUTION WORKAROUND that worked for me:
What worked for me, assuming you feel comfortable using the system Terminal window to issue commands, was to do the following:
- Goto Applicaitons > Utilities > Terminal
- Type "sudo pmset -a hibernatemode 25"
- Enter your password when prompted
- Then Type "pmset -g" to confirm that "hibernatemode 25" appears correctly
Why this worked for me - Highlights of my research:
After digging into posts related to this one about sleep/wake issues, I discovered that using a Terminal command "sudo pmset -a hibernatemode [##]" enables you to configure what happens when your system transitions from simple "Sleep" mode into "Standby" hibernate mode. Standby happens, by default, after either ~1hr or ~3hrs depending on the vintage of your rMBP (e.g. On most newer 2013 rMBPs this happens after ~3hrs. On earlier rMBPs the default is ~1hr or 70min (i.e. 4200 seconds).
The default hibernatemode for rMBPs is "hibernatemode 3" which some people call "Smart Sleep" which writes RAM to SSD and leaves RAM powered for quicker waking.
Setting hibernatemode to 25 configures the MacBook to use the older style of Standby Hibernation (writing RAM to SSD and then powering down RAM) which seems to solve the Mavericks specific problem with "Sleep / Wake failures", at least it solved the problem for me.
I have not had a Sleep / Wake failure after closing the lid on my Retina MacBook overnight for several days now.
My educated guess is that this "Sleep / Wake Failure" bug with Mavericks happens at the time a MacBook transitions from Sleep to Standby/hibernate. Note: The pmset parameter called "standbydelay" is measured in seconds and was by default 4200 on my mid2012 rMBP. It is about 3hrs on newer Retina MacBooks. That would explain why this Sleep / Wake failure and reboot, as some people have described "... in the middle of the night..." happens after the lid on a MacBook has been closed for "a while".
I do not, btw, have any USB devices attached to my MacBook while the lid is closed. However, I would not be surprised if this workaround solves the problem for people on this thread/discussion that have been sharing those problem scenarios.
I am simply sharing what worked for me, where my Mavericks MacBook was experiencing a Sleep / Wake failure after the lid was closed for a while (e.g. overnight).
The standbydelay and hibernatemode, as well as other things related to power, sleep, standby, hibernation etc. are configurable using the "pmet" command, assuming you feel comfortable using the system Terminal window. You can read more about Sleep/Standby/Hibernate behavior for Retina MacBook Pros (rMBPs) here:
http://support.apple.com/kb/HT4392
You can read more about the "pmset..." command here:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/pmset.1.html
I hope this helps the community.