Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
I've noticed my MacBook Pro has a lot less battery when I come back to it after periods when it is supposed to be sleeping.

Has anyone noticed this or needed to play with power saving settings since upgrading to macOS Sierra?
 

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
I reset the NVRAM (PRAM) and all that insomnia cleared up.

https://support.apple.com/en-us/HT204063

Yeah it's just not sleeping when I leave it (solid white light, screen off)
Nvram as opposed to smc? Or both? Want to reset as little as possible
[doublepost=1478161038][/doublepost]
Yeah it's just not sleeping when I leave it (solid white light, screen off)
Nvram as opposed to smc? Or both? Want to reset as little as possible

I just did nvram and it appears to have fixed it.. I thought my battery was cooked. Thanks for your responses!
 
  • Like
Reactions: joedec

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
Yeah it's just not sleeping when I leave it (solid white light, screen off)
Nvram as opposed to smc? Or both? Want to reset as little as possible
[doublepost=1478161038][/doublepost]

I just did nvram and it appears to have fixed it.. I thought my battery was cooked. Thanks for your responses!

Having doubts it's fixed. Smc reset is next..
 

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
Nope it's still not sleeping properly after both those resets. Any other suggestions?
 

joedec

macrumors 6502
Jul 25, 2014
443
51
Cupertino
Is this when you close the lid or just waiting for the timer? Have you tried adjusting the power preferences?
 

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
Waiting for the timer.
Yeah I've tried adjusting the settings. The screen dims but it just doesn't go to sleep after the ten minutes it's set to
 

joedec

macrumors 6502
Jul 25, 2014
443
51
Cupertino
Waiting for the timer.
Yeah I've tried adjusting the settings. The screen dims but it just doesn't go to sleep after the ten minutes it's set to

I am starting to think the sleep code is really buggy. I was fooling around with my machine and noticed sometimes it still doesn't sleep. I closed the lid earlier today and it didn't sleep, so I closed all the applications, still wouldn't sleep. So finally I rebooted it, now sleep works as I would expect.

Maybe we'll find a solution in a patch release.
[doublepost=1478314733][/doublepost]In the meantime, if you want to look for an application that's causing the issue. The tool I use to see if something is preventing sleep (run from the Terminal)...

$ pmset -g assertions | grep Prevent
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 0

The output above shows nothing is stopping sleep. The next example I start `caffeinate` in another window and we see that process preventing sleep.

$ pmset -g assertions | grep Prevent
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 1
pid 1046(caffeinate): [0x00001004000183e5] 00:00:02 PreventUserIdleSystemSleep named: "caffeinate command-line tool"
 
Last edited:

Galacticos

macrumors 6502a
Original poster
Apr 5, 2016
692
379
I am starting to think the sleep code is really buggy. I was fooling around with my machine and noticed sometimes it still doesn't sleep. I closed the lid earlier today and it didn't sleep, so I closed all the applications, still wouldn't sleep. So finally I rebooted it, now sleep works as I would expect.

Maybe we'll find a solution in a patch release.
[doublepost=1478314733][/doublepost]In the meantime, if you want to look for an application that's causing the issue. The tool I use to see if something is preventing sleep (run from the Terminal)...

$ pmset -g assertions | grep Prevent
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 0

The output above shows nothing is stopping sleep. The next example I start `caffeinate` in another window and we see that process preventing sleep.

$ pmset -g assertions | grep Prevent
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
PreventUserIdleSystemSleep 1
pid 1046(caffeinate): [0x00001004000183e5] 00:00:02 PreventUserIdleSystemSleep named: "caffeinate command-line tool"

I think it's a bug too. I shouldn't be surprised.

I began to notice this after the macOS Sierra update and it has been around since then. Seems to sleep now that I did those resets when I shut the lid but not if the lid is open. Thanks for that, I really doubt it's an app causing it
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.