MBP keeps crashing on wake from sleep

2015 MBP running 10.10.5


Recently and increasingly often my MBP doesn't wake properly from sleep overnight (seems OK for shorter periods during the day). From the log (see below) it seems to be waking in the middle of the night by the sleep timer and doing something then sleeping again. But when I open the lid in the morning I get a partial startup but no mouse pointer, or I get the grey screen for starting from RAM, and if I wait a few minutes of nothing apparently happening the machine reboots and I can carry on and login and work normally.

I have switched from hibernate to sleep as I thought that could be the problem. I have turned off all settings in energy saver that could be allowing wake (network, etc) when the shell is closed. I have reset sdram and pram. All to no avail.

So two questions:

1/ what is causing the crash? Is it a problem with the mouse/keyboard not connecting (and if so what could be the solution?)

2/ how can I stop the device waking in the night with the sleep timer 4 hours later? In the power adapter settings I have 1 hour display sleep and 20 minutes on battery setting. What is setting the sleep timer to 4 hours?


The log and pmsettings are in the additional text



MacBook Pro 13", OS X 10.10

Posted on Mar 17, 2020 3:44 AM

Reply

Similar questions

18 replies

Mar 17, 2020 4:08 AM in response to Bill Spears



Did you try resetting the SMC https://support.apple.com/en-us/HT201295

for sleep issues.


-----------------------------

I would suspect third party interference, if it does not resolve—


this can be tested:

To trouble shoot further you can— Try a SafeBoot https://support.apple.com/en-us/HT201262

This will tell you if third party interference; extensions etc are not loaded in safe boot mode.


----------------------------



To get a good look at your System config. for conflicts or issues, you can download/run this trusted utility http://etrecheck.com

If you need help interpreting the report you can post it here in its entirety in the "Additional Text" box in the editing toolbar below, in your reply.


You can set its preference to "Allow full Disk Access", with this you get a digest of issues from the last 7 days that are saved in your system.


Mar 17, 2020 4:54 AM in response to Bill Spears

Bill Spears wrote:

<Etrecheck report.log>


I see several things that are suspect:


First and foremost uninstall Antivirus software: Avast


this causes nothing but issues on the Mac and interferes with Macs own built in security. Look for the official in-app uninstaller—if in doubt ref to the developers website for support here.


example:

Kernel Extensions:

/Applications/Avast.app

[Loaded] AvastFileShield.kext (4.0.0 - SDK 10.12)

[Loaded] AvastPacketForwarder.kext (2.1 - SDK 10.12)


Launch Agents:

[Not Loaded] com.adobe.AAM.Updater-1.0.plist (? ffb65062 - installed 2012-04-27)

[Other] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist (Adobe Systems, Inc. - installed 2020-02-13)

[Not Loaded] com.avast.hub.plist (AVAST Software a.s. - installed 2019-12-14)

[Running] com.avast.osx.secureline.update-agent.plist (AVAST Software a.s. - installed 2019-08-30)

[Loaded] com.avast.osx.secureline.userinit.plist (? 2fc1004f - installed 2019-08-30)

[Loaded] com.avast.userinit.plist (? 4b9d47d7 - installed 2020-02-11)


Safari Extensions:

wrc.safariextz (AVAST Software - installed 2015-02-12)


Rule number 1 on Macs do not install junk.



Old an out dated apps—


MenuMeters (? - installed 2011-07-03)

NTFS-3G (? - installed 2010-10-11)

Perian (? - installed 2011-07-23)

Secrets (? - installed 2019-08-23)

SizzlingKeys (? - installed 2019-08-23)

SmartSleep (? - installed 2010-10-04)





ref: macOS - Security - Apple https://www.apple.com/macos/security/


Mar 30, 2020 12:22 PM in response to Bill Spears

Bill, take a look at this from OWC. It may be the microsecond delay from your drive. If you replaced your drive with an SSD, maybe that's it?

https://eshop.macsales.com/Service/Knowledgebase/Article/26/785/NVMe-SSDs-Standby-Mode-Issue

I did, and that may be why I keep getting them. I disabled hibernate entirely, but then my laptop is almost always plugged in.


Anyway, Martin's response may be drastic, but it could solve our issues.


(I'd also try to upgrade past Yosemite. If you have 32 bit software you can't upgrade, get to Mojave.)

Apr 2, 2020 11:21 PM in response to Martin844

Well, that didn’t last too long… I’m back to the usual sleep-wake crashes. Dual crashes that is, the first crash after about 3 hours sleep and a crash right after the chime following the first crash.


The fix of reformatting to exFat / MS-DOS and then formatting to APFS and reinstall Catalina worked for approx. 10 days/20 sleep-wake cycles.


I've now set the standby timer to zero. Let’s see what that will do.


Terminal command;

sudo pmset -a standby 0


Mar 22, 2020 5:21 AM in response to leroydouglas

Further update. So hibernatemode=1 doesn't cure the problem. Last night no wakeup during the night but also failed to restart from RAM this morning.

I am now trying hibernatemode=3 again but disconnecting the ac power overnight. I understand from this article

https://apple.stackexchange.com/questions/126669/how-to-add-hibernate-mode-to-macbook-pro

(see comments on standby mode, "European directive") that this might account for the 4 hour wakeup during the night.

Mar 21, 2020 4:58 AM in response to leroydouglas

So the progress so far:

1/ Avast removal clearly helped. General behaviour much better. But was that really the problem? Crashing is still there.

2/ Hibernate mode seems to have an influence.

(by the way I also increased display sleep from 1 to 3 hours)

With SmartSleep extension set to "hibernate" (which pmset shows is hibernatemode = 1) the startup is from RAM and is successful, and there is no wakeup with lid closed in the night.

With SmartSleep extension set to "hibernate and sleep" (which pmset shows as hibernatemode = 0) the startup is also from RAM but fails with an eventual automatic reboot and the console log shows there was a wakeup with lid closed during the night due to sleeptimer after 4 hours.


Conclusion: I suspect the hibernatemode is wrong so it looks like the SmartSleep extension has become the problem. But why I have no idea. Neither hibernatemode = 0 or 1 seem to be recommended, although hibernatemode=1 seems to work. I think if I recollect correctly from earlier log inspection I had hibernatemode=5 set. No idea how it got there. I can probably live with hibernatemode=1 if it avoids the crashing but would like to go back to being able to startup from disk.

How should I set the hibernatemode (with pmset?) and what to?

Should I and how to remove/disable the SmartSleep extension?


Btw the machine is on power during the night.

Mar 29, 2020 4:08 AM in response to leroydouglas

Another update.

With hibernatemode = 3 and disconnecting he ac power overnight I have had several nights where the system did not crash on opening the lid the following morning.

Except last night.

I attach 2 logs:

1/ last night's where it crashed

2/ the nights before where it didn't crash

Maybe one can tell something from these?


Mar 29, 2020 11:42 PM in response to Bill Spears

Same here since Catalina 10.15 - MacOS crashing when coming out of sleep mode.


But I think I have found the solution. My MacBook Pro (Retina, 15-inch, Mid 2014) is not crashing anymore after coming out of sleep mode. The crash log alway had a reference to the EFI so I decided to go all the way.


  1. Make an external bootable device with Catalina on it (USB device)
  2. Boot from it and start Disk Utility
  3. Select the top level of the internal disk that holds your Catalina
  4. Click Erase and format using a non Apple format like exFAT or MS-DOS FAT. This will erase/clean the EFI partition completely - which is the goal
  5. Click Erase and format, now as APFS. This will create a new EFI partition
  6. Close Disk Utility and install a fresh copy of Catalina from the external disk

Restore your data (not macOS) from a previously made backup


When only reinstalling Catalina - without step 4 and 5 - you'll be stuck with the same EFI partition that causes somehow the sleep/wake crashes. My sleep/wake crashes are gone after this procedure.




Mar 30, 2020 2:36 AM in response to Martin844

I am a bit reluctant to undertake such a drastic reset given that this cure is for Catalina whereas I am running Yosemite - 5 OS versions behind. I am left wondering whether this would even work on a Yosemite machine. And if not I would definitely be worse off than today!

I inspected the logs of crashes and noncrashes overnight for EFI commands and they are always there to some extent, with no discernible difference in the two cases.

I am going now to take a line by line look at the logs to see what is really going on at 3 am. Why is the system waking at all (what is setting the sleep timer) and why is it sometimes causing the machine to fail to start on lid opening?

Apr 8, 2020 11:53 AM in response to suzerella

Here's an update on my situation:

After a week of working OK, I had another overnight crash last night.

Each night I have followed the routine of disconnecting the AC cable and then closing the lid. I have hibernatemode set to 3.

Last night I stopped working earlier than normal so looking at the log the device woke at 1:58 and then slept (for good) requiring me to reboot at 10:34. Then I left the machine open until 15:50 when I closed it (on ac).

The log shows the machine woke itself after exactly 4 hours at 19:50 and then did some hibernation activity and slept again at 19:51.

I then opened the lid at 20:04 and instead of the machine restarting from disk it restarted from RAM!

Interestingly the reason was "EC.PME (User)" whatever that means, not lid open.

So it seems if at any time if I close the machine on ac power for more than 4 hours it awakes after 4 hours and thereafter doesn't allow me to restart from disk.

But if I close the machine not on ac power it restarts from disk, at least most of the time.

Is there any way I can stop these constant wakeups after 4 hours caused by the sleeptimer when the lid is closed? That seems to be triggering the problem.


Mar 17, 2020 4:41 AM in response to Bill Spears

Here's the Egtrecheck report.

On the major issues I don't see a problem. I am using Carbon Copy Cloner for backups and I know the OS is old but I have legacy data and need legacy software, which doesn't run on later systems, to read it. This probably accounts for the unsigned files too.

Of course I could try working my way through the extensions and preference panes and turning them off one by one but nothing there really surprises me. There could be some old extensions that are no longer supported but why are they causing a problem suddenly now when the system has not been updated for ages? Everything was working OK for a long time before.

Maybe if you could cast an expert eye over the report you could see a productive way forward?

One other idea occurred to me. The pmset command showed autopoweroffdelay = 14400 which is 4 hours in seconds. I have the screen sleep on power adapter now set to 1 hour. I previously had it set to 2 hours, and then the wakeup in the night was occurring after 3 hours not 4. Unfortunately I didn't run the pmset command then so I don't know what the autopoweroffdelay setting was then, but the settings seem related. I would be tempted now to set the screen to never sleep and see if that helps.

What do you think?


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.

MBP keeps crashing on wake from sleep

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