You probably already considered that software updates can restart your machine during sleep.
I have two issues with sleep, not sure when they started.
1. MBP wakes up the screen randomly during sleep.
2. MBP restarts during longer periods of sleep (I wake it up or open the lid and find out it restarted).
Any ideas?
cat /var/log/system.log | grep -i "wake reason"
Numerous reasons, try simplest 1st; do you have "any" Bluetooth peripherals connected? if so check settings and set to not to wake up the system.
Run this code;
This may glean some understanding of what is waking up the system, equally Apple is not very forthcoming with the cause of the error codes. Notifications are another source of random wake ups, so also worth investigating the settings,Code:cat /var/log/system.log | grep -i "wake reason"
The restarts are more concerning, would you say the restarts occur only after 3 hours of sleep, as this is the period generally when the OS will hibernate the system. Try looking at the crash logs with Console, use the search box to filter crash etc.
There is potential for the Sleep Image to be corrupted, which in some circumstance will result in system crash and hard reset. you can try checking the drive for error with Disk Utility, however you need to run it from the recovery partition, off the file menu.
n.b. I am not running 10.12 to some aspects may be a little different Disk Util etc.
Q-6
Just and FYI, I had the same thing with my first MBP 2016. They had me swap it out and I have not had any issues with the second MBP. Might be worth exchanging if you are within the window. Mine restarted randomly during sleep and or crashed during sleep (blank screen upon reopening the lid or just a gray screen).I have two issues with sleep, not sure when they started.
1. MBP wakes up the screen randomly during sleep.
2. MBP restarts during longer periods of sleep (I wake it up or open the lid and find out it restarted).
Any ideas?
Just and FYI, I had the same thing with my first MBP 2016. They had me swap it out and I have not had any issues with the second MBP. Might be worth exchanging if you are within the window. Mine restarted randomly during sleep and or crashed during sleep (blank screen upon reopening the lid or just a gray screen).
Ahh gotcha. Sorry I couldn't be of more help. I was hoping they could have helped me with my first machine as I just got it to a place I wanted it to be. But I am more than happy with the second machine. However, do you have an external monitor hooked up while it is sleeping? I still do have occasional crashed if it sleeps for a long period of time attached to an external monitor. However, the crashes only happen with the lid closed, so I stopped that.I'm long past the exchange window, and it's most likely a software issue, not a hardware one.
Thanks for the tips. Yes, I'd say that the restarts happen only in deep sleep/hybernation, but not sure. They are somewhat random - sometimes they happen, sometimes not. I will try some of your tips and see what happens.
Thx.
Delete the deep sleep / hibration file don't remember what's the name of it.
If that one is corrupted this is the symptoms.
My guess is that you have the famous wake sleep failure and it only happen in deep sleep.
So do this:
Smc and nvram reset
Delete the hibrination file (deep sleep img file)
Or do a clean install of macOS but deleting the img file is a better solution.
sudo rm /private/var/vm/sleepimage
The second is also happening to me.I have two issues with sleep, not sure when they started.
1. MBP wakes up the screen randomly during sleep.
2. MBP restarts during longer periods of sleep (I wake it up or open the lid and find out it restarted).
Any ideas?
See the solution for you above.The second is also happening to me.
Let us know how it goes.Thanks. I deleted the sleep image and hope it helps. Thanks everyone.
Three days without restarts. Don't want to jinx it, but I think the issue is resolved. Thanks again everyone.
How about the wakeup's any improvement? There has also been posts regarding restarts during sleep when connected to an external display, if widespread Apple will likely address in the next point release of macOS.
Q-6
No improvement there. They happen mostly when a notification comes (even though I tried turning power nap off) - so I believe the Mac wakes up when some push arrives. iMessage turns on the screen almost every time, unless in deep sleep.
I saw other people with this issue, I guess it's a bug.
They happen mostly when a notification comes (even though I tried turning power nap off) - so I believe the Mac wakes up when some push arrives. iMessage turns on the screen almost every time, unless in deep sleep.
I assume you have Wake for Wi-Fi network access deselected too, then. (Sorry to keep playing Captain Obvious here.)