Sleep Wake Failure with High Sierra 10.13.2

Since installing 10.13.2 I have a sleep wake failure on iMac. Was working perfectly before installed latest update on Dec 8.

This is not an uncommon problem but the "fixes/solutions" one reads on the internet are all over the place.

Is there a fix or is this simply something only Apple can solve for all those now plagued by the problem? It is irritating in the extreme.

iMac, macOS High Sierra (10.13.2)

Posted on Dec 10, 2017 7:41 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 5, 2018 10:41 AM

I had the same problem on a macbook air (13-inch, Mid 2012, macBookAir5,2) since OSX 10.13.2.

I tried everything proposed on this and on other forums.


Recently, I did 2 things:

1) I downloaded 10.13.4 FULL installer (no combo, the full installer) and reinstalled High Sierra, over the previous installation.

2) I replaced the SSD disk few years ago, I have a OWC Aura Pro 2012 480GB SSD disk. I became aware of a conflict between high sierra and old OWC aura disks. I updated the firmware version to 603ABBF0 (got it from here: OWC Mercury SSD Firmware Updater via USB Drive or CD/DVD Disc). The problem also affects other OWC Aura models (http://macosuninstaller.com/one-click-removal-tutorial/unfortunately-time-owcs-a ura-ssds-not-support-macos-high-sierra/).


Since 1 and 2, the black screen/freeze after sleep, as well as a blinking folder with question mark at boot issue, stopped. I keep my finger crossed. Hope this helps.

302 replies

Jun 8, 2018 9:29 AM in response to ghogoh

10.13.5 seemed to have fixed my problems... I was occasionally getting SWF, but mostly my iMac27 2014 would just shut down overnight mysteriously with nothing in the system log to indicate that it even happened. In the morning I would get a double-chime as it seemed to boot twice. I believe it is a related problem to SWF which is why I'm posting here.


I upgraded from El Capitan to High Sierra about a month ago. Ghogoh's post on the sleep settings in terminal helped me figure out a solution a week or so ago—setting "standby" and "autopoweroff" to 0. I was finally able to sleep normally without an overnight shutdown. So thank you for that!


Upgrading to 10.13.5 early this week and things seemed fine the first night, so I tried "Restore Defaults" in the Energy Saver panel and confirmed in Terminal that standby and autopoweroff had returned to 1. The last 2-3 nights I've successfully woken from sleep in the morning! My problems seem solved!


Before, I was occasionally getting SWF. I *think* it was triggered if my machine had been asleep for 3-4 hours. So about the same as my standbydelay setting (10800). And maybe the autopoweroffdelay (28800) was causing the shutdown? Not sure as terminal activity seemed to point the shutdowns as happening after 5-6 hours. I have filevault enabled so I would wake to a login screen, but after entering my password the machine and mouse pointer would freeze. I had thought maybe it was related to my older madkatz mouse drivers, or maybe old Adobe updaters (I have various versions back to CS3 on my machine). I spent a lot of time cleaning out old Adobe stuff, but I think it was just a system problem as the update seems to have solved it.


So that's my info. Maybe part of it will help someone.

Jun 19, 2018 2:49 AM in response to TJBHK

Looks like we have arrived. Considering the comments drought of recent, my conclusion is that SWF appears to have been resolved for most affected here. Most likely with the 10.13.5 update of HS. Well, it looked frustratingly remote and unclear as to how we get here but here we are.


My iMac has not experienced a single SWF since the 10.13.5 update, which can cautiously be accepted as resolved. It remains unknown what approach has been taken to provide the solution. In particular, whether any compromises have been made to power management and the system 'sleep' state.


Although I have no proof (as I had not been able to predict the months of SWF suffering, before it happened), it seems to me that before the dreaded 10.13.2 HS update there were two different states of 'sleep' - one, the 'hibernate' on 'autopoweroff' and another, intermediate one, where the computer will still wake up from a memory image saved to the persistent storage, going through the 'grey-screen-with-a-progress-bar' resume process, but somewhat quicker than the wake from an 'autopoweroff' state. Now it is not possible to be certain and will remain unknown, unless a good-natured apple source, confirms or denies it.


Nevertheless, it is undoubtly a huge relief and I can only be grateful to anyone at Apple who has contributed to resolving this problem, although I am not yet ready to forgive all those who refused to acknowledge the existence of the SWF issue for such a long time, even with at least a hint of an official statement, if they did not want to admit it publicly.


PS

It still remains to be seen, if there would not be any residual trouble for users, who might wish to change their 'standby' and 'hibernate' settings, which should not happen, for as long as these are perfectly normal options to set.


PPS


The following list of sleep reports is somewhat suspicious, if part of the SWF solution, because it replaces the problem with potential problems of possibly removing the benefits of ‘hibernate’ and ‘autopoweroff’, which safeguard by saving a memory image to the persistant storage.

sleep 10 (sleep prevented by coreaudiod)

sleep 10 (sleep prevented by sharingd)

sleep 10 (sleep prevented by coreaudiod, sharingd)
sleep 10 (sleep prevented by coreaudiod, apsd, mds_stores)
Hopefully, my paranoia will turn out unfounded.


Jun 21, 2018 5:04 AM in response to LoganDC1

Logan, from your description, what you're seeing is a "feature" called "Safe Sleep". After a certain period of time, the machine wakes in order to offload the contents of RAM to disk. Upon waking, RAM is restored from disk, hence the extended period of time before the machine is responsive.


Were I to guess, it's this feature that is causing the occasional "Sleep/Wake Failure".


A temporary workaround is to go to System Preferences-> Energy Saver and enable "Power Nap". This keeps the machine in a semi-awake state, preventing Safe Sleep and (at least for me) eliminates the Sleep/Wake Failures that were a regular occurrence with Power Nap disabled.

Jun 25, 2018 1:23 PM in response to jabesse

I've had my Late 2012 iMac in sleep mode now for 4 days and have just woke it up and apart from it waking up from Safe Sleep Mode, everything has worked as normal, no error message and no random re-start in the middle of the night. From looking through the comments on the last few pages, there is one thing that I have done that has not come up in the last few comments of what people have tried to do. I have switched off the feature that allows my iMac to be woke up from sleep mode by any bluetooth device. I have not re-anabled this feature as I am happy to wait the 30 seconds while it connects to the bluetooth device than risk switching it on and the issues coming back.


I'm not sure what I can put here in-tearms of my settings set-up to help others, so if you have any questions please ask and I'll do my best to reply as quick as I can.

Jan 4, 2018 4:01 AM in response to Teni65

OK, So it's related to the screen, Apple did something ...


Many has uninstalled Duet and similar programs, anything that is related to the screen seems to be an issue.

I removed Parallels Toolbox and now it wakes up again, I have no idea way that is.


Try to disable or uninstall anything that is screen related, and list you're finds here.


T9

Feb 13, 2018 5:13 AM in response to ghogoh

I have noticed that when my iMac reboots itself, the "Time Awake Since Boot" seemed always to be a round multiple of 1,000 seconds (e.g. 49000s). Seeing ghogho's post above lends credence to that.


After noticing that a couple of days ago, I suspected that a timed process was trying to start and failed. I've never seen the need to turn on "Power Nap" in the Energy Saver preference panel, so I generally turn it off after an install of the OS. For grins, I decided to turn Power Nap back on again. It's been 2 days now since doing so and my iMac has been behaving normally. I would be curious to see how many folks that are experiencing the sleep/wake problem also have Power Nap turned off.

Feb 20, 2018 4:47 PM in response to jim.123

jim.123 wrote:


Thanks for this. Obviously I would backup everything all over the place anyway before doing it, but would this be a clean install (i.e. total wipe) or would it wipe out just the High Sierra OS and replace it? I can't wait to get back to using Sierra!


Jim

Wipe and installing high sierra didn't help at all for me. Reinstalling 10.12.6 is the only fix which has stuck.

Feb 24, 2018 5:55 PM in response to TJBHK

This is the classic voltage droop issue.

let me add some insight into this. Every microprocessor has something called vmin which is the minimum voltage that is needed for certain Fmax. in the case of this issue, the new operating system has the code running in a way that demands higher instance electrical current that the power supply system and decoupling capacitors cannot provide anymore. this causes the Vmin dip below the threshold therefore causes the wakeup fails. Apple could do several things to amend this. One, to rewrite the portion of the operating system to control the electrical current steps caused by the wakeup, aka, power gating, so that it doesn't cause the Vmin issue. Second, Apple could change their power gating code in a way that raising the voltage supply when it enters into sleep mode so that it has higher initial power supply level to prevent the Vmin dip below the threshold.

May 15, 2018 1:21 AM in response to TJBHK

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.

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 with High Sierra 10.13.2

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