MacBook Pro restarts during sleep

Discussion in 'MacBook Pro' started by aevan, Feb 17, 2017.

  1. aevan macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #1
    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?
     
  2. Sanpete macrumors 68020

    Joined:
    Nov 17, 2016
    Location:
    Utah
    #2
    You probably already considered that software updates can restart your machine during sleep.
     
  3. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #3
    Of course. It's not that. I also get an unexpected shut down error when I wake it up.
     
  4. Sanpete macrumors 68020

    Joined:
    Nov 17, 2016
    Location:
    Utah
    #4
    I would guess the events that cause the restarts are in the logs. I've noticed people with unexpected shutdowns here are often finding if they sign in on a different user account it stops, so some kind of software bug. But I have no ideas what it is.
     
  5. Queen6, Feb 18, 2017
    Last edited: Feb 19, 2017

    Queen6 macrumors 603

    Queen6

    Joined:
    Dec 11, 2008
    Location:
    Enjoying Better Things
    #5
    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 in Terminal;
    Code:
    cat /var/log/system.log | grep -i "wake reason"
    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,

    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
     
  6. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #6

    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.
     
  7. JustinRP37 macrumors regular

    JustinRP37

    Joined:
    Jun 14, 2016
    Location:
    New York, NY
    #7
    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).
     
  8. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #8
    I'm long past the exchange window, and it's most likely a software issue, not a hardware one.
     
  9. JustinRP37 macrumors regular

    JustinRP37

    Joined:
    Jun 14, 2016
    Location:
    New York, NY
    #9
    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.
     
  10. Queen6 macrumors 603

    Queen6

    Joined:
    Dec 11, 2008
    Location:
    Enjoying Better Things
    #10
    To me your MBP had two distinct issues, the failure of the system to resume correctly from sleep being the greater issue.

    Q-6
     
  11. Calby macrumors 6502

    Calby

    Joined:
    Dec 30, 2015
    Location:
    Sweden, Gävle
    #11
    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.
     
  12. Queen6 macrumors 603

    Queen6

    Joined:
    Dec 11, 2008
    Location:
    Enjoying Better Things
    #12
    Fair chance the sleepimage file is corrupted, the wake up's can be tricker to isolate and resolve dependant on cause.

    This code in Terminal will delete sleepimage (Admin password required;
    Code:
    sudo rm /private/var/vm/sleepimage
    OS will regenerate new sleepimage file on the next cycle

    Q-6
     
  13. sflomenb macrumors 6502a

    sflomenb

    Joined:
    Jul 22, 2011
    #13
    The second is also happening to me.
     
  14. Calby macrumors 6502

    Calby

    Joined:
    Dec 30, 2015
    Location:
    Sweden, Gävle
    #14
    See the solution for you above.
     
  15. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #15
    Thanks. I deleted the sleep image and hope it helps. Thanks everyone.
     
  16. sflomenb macrumors 6502a

    sflomenb

    Joined:
    Jul 22, 2011
    #16
    Let us know how it goes.
     
  17. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #17

    So far so good. Didn't have any restarts during sleep over night! Thanks @Queen6 and @Calby !!

    I'll keep testing, but I hope it solved the issue.
     
  18. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #18
    Three days without restarts. Don't want to jinx it, but I think the issue is resolved. Thanks again everyone.
     
  19. Queen6 macrumors 603

    Queen6

    Joined:
    Dec 11, 2008
    Location:
    Enjoying Better Things
    #19
    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
     
  20. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #20

    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.
     
  21. dmn8 macrumors member

    Joined:
    Sep 27, 2007
    #21
    I had the same problem waking from sleep but only when the machine was plugged in and charging. The solution was reviewing LaunchAgents - I had a USB Display Driver that was causing the OS to crash. Check user\library\launchagents and library\launchagents for old or removed software. Be sure to follow instructions for removing items, I used the terminal command [launchctl remove *com.name.service*] and then removed the plist.
     
  22. Queen6 macrumors 603

    Queen6

    Joined:
    Dec 11, 2008
    Location:
    Enjoying Better Things
    #22
    You can post the results of the Terminal code I posted in #5, may be able to shed some light on it. Notification's you will need to have a look in System Preferences, as may be able to fine tune and or silence in the quiet hours.

    An option is to reduce the time to Deep Sleep from the default 3 hours, this can be done globally, mains supply or solely for on battery, equally requires some thought and a little work in Terminal with pmset, nothing that can not be undone mind.

    Q-6
     
  23. Sanpete macrumors 68020

    Joined:
    Nov 17, 2016
    Location:
    Utah
    #23
    I assume you have Wake for Wi-Fi network access deselected too, then. (Sorry to keep playing Captain Obvious here.)
     
  24. newdeal macrumors 68020

    Joined:
    Oct 21, 2009
    #24
    definitely some OS bugs with the new computers. Mine sometimes will shut down during sleep and needs to be booted back up
     
  25. aevan thread starter macrumors 68000

    aevan

    Joined:
    Feb 5, 2015
    Location:
    Serbia
    #25

    Actually, no! And you're not playing Captain Obvious, I am really grateful.

    And, no, I didn't deselect Wake for Wi-Fi network access. But I don't remember that causing any waking up earlier. I thought this option was there to allow remote access while Mac is sleeping. Do you think I should turn it off?
     

Share This Page