Sleep Wake Failure: Reboots only after upgrading to High Sierra

I have spent the last month dealing with the sleep wake failure ordeal.


When High Sierra was released I took the upgrade like I always do. When my iMac goes to sleep I will be in the other room and can hear my system rebooting. The startup sound plays twice. Then the apple logo appears on the screen with and progress bar (as if something were installing) Once High Sierra starts it displays a message "Your computer was restarted because of a problem. "Sleep Wake Failure"


I have contacted Apple support on several occasions with no luck.

I have unplugged the cord - removed it from the computer for 15 seconds to reset the smc

I have reset the NVRAM

I have backed up my system using time machine and used disk utility on internet recovery to erase my iMac

I have done a fresh install of Mac OS (High Sierra) with Time Machine backup and a separate time without a backup

I have started in safe mode

Mac OS High Sierra 11.0.3

Even after doing all these tasks my iMac still reboots when in sleep mode.


I have had my iMac for several years and this has never happened before. Now it cant stop happening.


Any help would be greatly appreciated.

iMac, iOS 11.0.3

Posted on Oct 27, 2017 9:43 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 16, 2017 2:58 PM

Is yours with the stock SSD?


After discussions with OWC and others, it does seem like Apple has seriously mis-calculated their power management capabilities.


We resolved the issue by opening up terminal and running:


sudo pmset standby 0


This disables standby which, in most cases, kicks in at about 3 hours into sleep. This will cut a lot more power to more of the system. And this is why it has issues coming back alive after a long (+3h) sleep. You actually might still have long-boot issues when rebooting or cold booting, but at least you can not have these ridiculous wake issues.


You should be good ... Try it and see.


Apple has yet to acknowledge any of the issues anyone has with their 2012-2015 MacBook and MacBook Pros. I know multiple people that Apple has charged for replacement SSD when it is obviously an engineering flaw.

198 replies

Feb 19, 2018 1:10 AM in response to Tom Robbrecht

Hello Tom,


Could you, please, check if your Power Nap (PN) option in the Energy Saver settings panel has been enabled. In a parallel thread at:


Sleep Wake Failure with High Sierra 10.13.2


there has been a discussion which suggests that with PN enabled the computer, may not go to sleep at all, which may appear as not spontaneous reboots and Sleep Wake Failures (SWF).


I would be more than happy if it turns out that the SWF problem has been resolved for good in your computer, but it might help others to know if there could be any link with the PN setting.


Thank you.

May 15, 2018 1:28 AM in response to McBeave

(this is a copy of my post at the parallel thread at Sleep Wake Failure with High Sierra 10.13.2 all references to comments are from there)

It has been a while since my first intention to attempt an assessment of apple’s power management settings (PMS) in relation to the SWF problem. In the meantime, forced by desperation, I went for a Beta update, following Procladius' suggestion that it seemed to do away with the SWF reboots. The good news is that it did make a difference and since I installed the 10.13.5 beta, about a week ago I have not had a single SWF event! The reason I am not calling in with jubilation is that the change is not entirely convincing. Firstly, as mentioned by jabesse, I have not enabled ‘disksleep’, which may have ruined my hopes. However, I experienced the innumerable SWFs while my ‘disksleep’ was off, so the situation with the Beta update is still (if only partially) different.


In short, it appears to me, that the 'computer sleep' mode is no longer the same as before the HS upgrade. I am not a computer expert and have no means of determining whether and to what extend the system goes into what is defined as ‘sleep’. Such definitions are not provided clearly enough for a user to be able to determine their effectiveness.


This post may become somewhat overly extended, but I hope it provides an informative overview of possibly useful PMS options.


For a start, the iMac I use allows three parameters to be set from the ‘System Preference’ -> ‘Energy Saver’ options:

- Computer sleep (from 1min to 3h to Never) - set to 10 min at present

- Display sleep (from 1min to 3h to Never) - set to 5 min at present

- Disk sleep - circumstantially (on/off), currently off.


These are part of a bigger set, available with the Terminal command, pmset -g, as given below:

System-wide power settings:

Currently in use:

standby 0

Sleep On Power Button 1

womp 0

halfdim 1

hibernatefile /var/vm/sleepimage

powernap 0

autorestart 0

networkoversleep 0

disksleep 0

sleep 10 (sleep prevented by sharingd)

autopoweroffdelay 14400

hibernatemode 0

autopoweroff 1

ttyskeepawake 1

displaysleep 5

standbydelay 4200


Although not immediately evident from the parameter names, Computer sleep and Display sleep are recognisable by the 10 and 5 min settings respectively. Leaving aside Display sleep, as unlikely trouble maker, it is interesting to notice that in addition to Computer sleep there are four other similar parameters, namely - standby, disksleep, hibernate and autopoweroff.


The setting of ‘disksleep’ is either ‘off' or ‘on' (when possible). Hypothetically, SWF could have been caused by demand on the disk, while it attempts to go to sleep, but this setting has been ‘off’ almost all of the time on my computer, while SWF has been occurring daily over the past four months.


Similarly, ‘autopoweroff' also seems to be unlikely culprit, as it powers down the computer after the 4 hours, set with the ‘autopoweroffdelay’, which in my case has been happening without signs of malfunction.


It then appears that the remaining three parameters, (computer/system) sleep, standby and hibernate may be somehow involved in SWF, given their interdependence, according to definitions. Starting with ‘standby’:

standby causes kernel power management to automatically hibernate a

machine after it has slept for a specified time period. This saves power

while asleep.


Apparently ‘standby’ effects hibernation after the machine has slept for a specified period of time. At the same time

standbydelay specifies the delay, in seconds, before writing the

hibernation image to disk and powering off memory for Standby.


On one hand standby should activate hibernation after the computer has slept according to the ‘sleep’ timer (set by the user), on the other, the activation should not happen before the time determined with ‘standbydelay’ (set by default to 1h10min on my iMac). On the face of it, the above should not be a problem as ‘standby’ is set to 0 (off) by default and does not seem accessible via the ‘Energy Saver’ controls. The twist, however, seems to be in the definition of hibernation.


hibernatemode supports values of 0, 3, or 25. Whether or not

a hibernation image gets written is also dependent on the values of

standby and autopoweroff


For example, on desktops that support standby a hibernation image will be

written after the specified standbydelay time. To disable hibernation

images completely, ensure hibernatemode standby and autopoweroff are all

set to 0.


In my case, which I suppose is not uncommon, standby and hibernate happen to be set to 0 (off presumably), the autopoweroff, however, is set to 1 (on) and it does come into effect every day for my computer (typically overnight or when I'm away for hours). Since not all three are set 0, it seems, according to the definition, that hibernate is not disabled completely. Even though hibernate is set 0 it obviously happens when autopoweroff is effected!


Conceivably, under certain combinations of sleep conditions hibernation is attempted, while it is not provisioned for and perhaps unrecognised apple system panics lead to those darn SWF events.


To wrap up, after upgrading to 10.13.5 beta my iMac has not experienced SWF, but it seems that computer sleep never takes effect, until time comes for autopoweroff, which appears to be trouble free. People have reported in the past that, when system sleep is set to ‘never’, SWF in some cases does not happen, but this obviously is only masking the problem, not a solution.

Still Waiting for a convincing completion of this dreadful episode of macOS High Sierra update.

Jul 29, 2018 11:27 AM in response to ghogoh

If you are using a desktop, I fixed this by not using sleep (sleep never) in the preferences. You can still make the screen turn off and you can manually sleep using the right hand pulldown menu which in my case guarantees that the disk drive shuts down so the current draw is what ever it takes to keep the dram alive, this is virtually nothing.

While this is not ideal, I felt like I had spent too much time trying to make it work correctly, if you have a portable that needs to use batteries this is not a good solution.

Jan 2, 2018 8:55 AM in response to Pitt71

Not clear whether Apple Cares or not but it does appear Apple is not moving very fast to fix the problem.

Since I have an iMac I have decided to not use sleep, set up this up in energy saver by saying sleep never.

The screen and the hard disk will still power down but the computer will not sleep so it always comes up immediately.

I am told by a friend who does this for other reasons that the power consumption is very low in this mode and I believe it.

Aug 18, 2018 2:36 PM in response to McBeave

I realise that sleep wake failure does not happen any more on my IMAC end 2012...

I am now on High Sierra 10.13.6. Finally, after almost one year, it looks like Apple did fix this bug in new OS that affected only older Macs.

I cannot say that my opinion towards apple has not been much degraded during this year, but at least I'm happy that the bug seems to be fixed.

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.

Sleep Wake Failure: Reboots only after upgrading to High Sierra

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