Battery dies in sleep since macOS upgrade

Discussion in 'MacBook Pro' started by PeterJP, Apr 19, 2018.

  1. PeterJP macrumors 6502

    PeterJP

    Joined:
    Feb 2, 2012
    Location:
    Leuven, Belgium
    #1
    I've had my MBP13 for just over 4 years and since around the time of the latest macOS upgrade, the battery life in sleep has suddenly gone down dramatically. I'm now on 10.13.4.

    Before the upgrade, I could just close my MBP. Days later, the battery would have gone down a few percent but that was it. I could work as usual. Now, though, the battery doesn't last a day in sleep. I fully charge it, close it and the next day, it's dead. I find this highly inconvenient.

    There was a kernel_task in activity monitor that took a bit of CPU. I rebooted and now it seems like it's behaving better:

    upload_2018-4-19_20-17-30.png
    (top 3 tasks since a reboot day before yesterday)

    I'm associating this with the upgrade to 10.13.4, but I'm not certain it started exactly at the same time as when I did the upgrade. Anything I can try to bring this back to normal levels? Any more information I can provide you?

    Thanks.
     
  2. DeltaMac macrumors G3

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #2
    What is your battery health showing? ---
    Applications/Utilities/System Information.
    Go to the Power tab.
    What is the Cycle Count listed for your battery?
    What is the Full Charge Capacity?
    Battery health below 80% is the point when Apple says the battery should be replaced.

    Just a suggestion - if the problem continues, just leave your MRPro plugged in to power when you are near power. You really won't hurt anything by doing that - the battery will NOT overcharge. It simply stops charging when fully charged, then begins charging when it needs charging, which would usually be when the charge drops below 95% total.
     
  3. PeterJP thread starter macrumors 6502

    PeterJP

    Joined:
    Feb 2, 2012
    Location:
    Leuven, Belgium
    #3
    DeltaMac,
    Here's part of the power section:
    Charge Information:
    Charge Remaining (mAh): 5109
    Fully Charged: No
    Charging: Yes
    Full Charge Capacity (mAh): 5775
    Health Information:
    Cycle Count: 536
    Condition: Normal
    When I'm using it on battery, it works as usual. It lasts for the most part of the day. No difference there. It's only in sleep that it's now eating battery nearly at the rate of when I'm using it (ok, maybe 3-5 times slower, but it was WAY less before).
    I know it doesn't hurt to keep it plugged in, but it's not practical. It's a 13", so I use it everywhere.
     
  4. LarryJoe33 macrumors 65816

    LarryJoe33

    Joined:
    Jul 17, 2017
    Location:
    Boston
    #4
    Run this (in terminal) after a night of battery drain and see what it's doing:

    Wake/Sleep Log:

    pmset -g log|grep -e " Sleep " -e " Wake "
     
  5. Samuelsan2001 macrumors 604

    Joined:
    Oct 24, 2013
    #5
    You have a rogue process runnng during sleep find it and turn it off.
     
  6. LarryJoe33 macrumors 65816

    LarryJoe33

    Joined:
    Jul 17, 2017
    Location:
    Boston
    #6
    Good luck with that. I have been at it for two months. Any words of wisdom on how to find it? (besides activity monitor)?
     
  7. Samuelsan2001 macrumors 604

    Joined:
    Oct 24, 2013
    #7
    Well the easiest but most long winded and biggest pain in the bum way to do it is to start from scratch and add your apps one at a time until you find the one that causes this issue. If you wiil almost undoubtedly find it this way but it’s time consuming and a pain. It’s also possible doing this may well fix it and you never find anything.
     
  8. LarryJoe33 macrumors 65816

    LarryJoe33

    Joined:
    Jul 17, 2017
    Location:
    Boston
    #8
    Thanks. Been there and done that. Clean install, one at a time, same result. I gave up. I think it High Sierra and hoping they fix it.
     
  9. PeterJP thread starter macrumors 6502

    PeterJP

    Joined:
    Feb 2, 2012
    Location:
    Leuven, Belgium
    #9
    Ok, as for me, the problem has spontaneously gone away. I'm guessing that macOS had to do something administrative (Spotlight or APFS or whatever) and that took some time. I've left my computer unplugged and in sleep for over a day and it's still at 92%. Just what I wanted!
    Thanks for all the tips!
     
  10. jerryk, Apr 23, 2018
    Last edited: Apr 23, 2018

    jerryk macrumors 601

    Joined:
    Nov 3, 2011
    Location:
    SF Bay Area
    #10
    Good news. Indexing can take several days, so maybe that was it.

    When I upgraded to High Sierra I left my machine plugged in and the display open overnight. By morning the indexing was done and everything was working as before.
     
  11. PeterJP thread starter macrumors 6502

    PeterJP

    Joined:
    Feb 2, 2012
    Location:
    Leuven, Belgium
    #11
    I'm back. I last used my laptop day before yesterday. The battery was almost full, as you can see in the log below (25 June, charge 95%). I closed the running programs (except for 1 safari tab with gmail), then closed the lid and left it like that. When I plugged it in (without waking it) this morning (less than 36 hours later), I heard the startup chime. You can follow how the battery degraded over time in the log file below.

    Is this normal? As I said, I used to leave the machine unplugged for days and I still had battery. Battery cycle count is up to 562 (condition normal) in the meantime.

    Code:
    2018-06-25 21:30:44 +0200 Sleep                   Entering Sleep state due to 'Maintenance Sleep': Using Batt (Charge:95%) 40420 secs
    2018-06-25 21:30:46 +0200 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(1895 ms)]
    2018-06-26 08:44:24 +0200 Kernel Client Acks      Delays to Sleep notifications: [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(364 ms)] [RP03 driver is slow(msg: SetState to 0)(1270 ms)]
    2018-06-26 08:44:24 +0200 Kernel Client Acks      Delays to Wake notifications: [SS03 driver is slow(msg: SetState to 3)(401 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(543 ms)]
    2018-06-26 08:44:24 +0200 Sleep                   Entering Sleep state due to 'Clamshell Sleep': Using Batt (Charge:61%) 6 secs
    2018-06-26 08:44:28 +0200 PM Client Acks          Delays to Sleep notifications: [AirPort configd plug-in is slow(596 ms)] [com.apple.duetactivityscheduler is slow(1776 ms)] [com.apple.apsd is slow(3262 ms)]
    2018-06-26 08:44:29 +0200 Kernel Client Acks      Delays to Sleep notifications: [powerd is slow(3264 ms)] [RP03 driver is slow(msg: SetState to 0)(1274 ms)]
    2018-06-26 08:44:30 +0200 Kernel Client Acks      Delays to Wake notifications: [SS03 driver is slow(msg: SetState to 3)(416 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(560 ms)]
    2018-06-26 08:44:35 +0200 Sleep                   Entering Sleep state due to 'Maintenance Sleep': Using Batt (Charge:61%) 8011 secs
    2018-06-26 08:44:52 +0200 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(16770 ms)]
    2018-06-26 10:58:06 +0200 Kernel Client Acks      Delays to Sleep notifications: [powerd is slow(16772 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(364 ms)] [RP03 driver is slow(msg: SetState to 0)(1277 ms)]
    2018-06-26 10:58:06 +0200 Kernel Client Acks      Delays to Wake notifications: [SS03 driver is slow(msg: SetState to 3)(402 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(546 ms)]
    2018-06-26 10:58:06 +0200 Sleep                   Entering Sleep state due to 'Clamshell Sleep': Using Batt (Charge:54%) 5 secs
    2018-06-26 10:58:08 +0200 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(1955 ms)]
    2018-06-26 10:58:10 +0200 Kernel Client Acks      Delays to Sleep notifications: [RP03 driver is slow(msg: SetState to 0)(1274 ms)]
    2018-06-26 10:58:11 +0200 Kernel Client Acks      Delays to Wake notifications: [SS03 driver is slow(msg: SetState to 3)(418 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(560 ms)]
    2018-06-26 10:58:56 +0200 Sleep                   Entering Sleep state due to 'Maintenance Sleep': Using Batt (Charge:54%)
    Sleep/Wakes since boot:13   Dark Wake Count in this sleep cycle:7
    2018-06-27 08:33:28 +0200 Sleep                   Entering Sleep state due to 'Clamshell Sleep': Using AC (Charge:0%) 1107 secs
    2018-06-27 08:33:33 +0200 Wake Requests           [proc=mDNSResponder request=Maintenance inDelta=7200] [*proc=dasd request=TimerPlugin inDelta=5794 info="com.apple.dasd:0:com.apple.backupd-auto"]
    2018-06-27 08:33:33 +0200 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(1704 ms)] [mDNSResponder is slow(5015 ms)]
    2018-06-27 08:51:55 +0200 Kernel Client Acks      Delays to Sleep notifications: [AppleIntelFramebuffer driver is slow(msg: SetState to 1)(384 ms)] [powerd is slow(5022 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(365 ms)] [RP03 driver is slow(msg: SetState to 0)(1005 ms)]
    2018-06-27 08:51:55 +0200 Kernel Client Acks      Delays to Wake notifications: [SS03 driver is slow(msg: SetState to 3)(401 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 3)(329 ms)]
    2018-06-27 08:52:06 +0200 Sleep                   Entering Sleep state due to 'Maintenance Sleep': Using Batt (Charge:16%) 919 secs
     
  12. AdamA9 macrumors 65816

    Joined:
    Feb 2, 2010
    #12
    I too have noticed mine drains a lot quicker in sleep now I'm on HS. I've only just upgraded.
     
  13. aakshey macrumors 65816

    aakshey

    Joined:
    Jun 13, 2016
  14. Fishrrman macrumors P6

    Fishrrman

    Joined:
    Feb 20, 2009
    #14
    OP:

    If your problem remains unresolved, I'm going to give you my "standard, boilerplate" advice:
    Power it down at night.
    Reboot "fresh" in the morning.
    Does this lengthen the battery life?
     
  15. PeterJP thread starter macrumors 6502

    PeterJP

    Joined:
    Feb 2, 2012
    Location:
    Leuven, Belgium
    #15
    See? Strange, isn't it?

    Was hibernate mode on 25 before my macOS upgrade? I didn't change it.

    I checked pmset -g. Powernap is on, but looking at the log file, it doesn't look like the machine's waking up because of that. I don't like powernap in principle (I'll check mail when I want to, no need for the OS to do that), but if I haven't configured apps to check anything, it shouldn't do anything, right?

    The problem is not the battery life in use. The problem is the battery life at night. I would expect the battery to remain more or less the same when I power it down at night and then reboot it. Or do you think there can be drain when the machine is turned off?
     
  16. aakshey macrumors 65816

    aakshey

    Joined:
    Jun 13, 2016
    #16
    Mine was 3 by default. Changing it to 25 seems to help me.
     
  17. Fishrrman, Jun 28, 2018
    Last edited: Jun 28, 2018

    Fishrrman macrumors P6

    Fishrrman

    Joined:
    Feb 20, 2009
    #17
    OP wrote:
    " Or do you think there can be drain when the machine is turned off?"

    Why don't you try my suggestion in reply #14 above for 2-3 nights, keep notes, and then get back to us with the results?
     
  18. LarryJoe33 macrumors 65816

    LarryJoe33

    Joined:
    Jul 17, 2017
    Location:
    Boston
    #18
    Yawn, can you please stop suggesting this. Christ, this is not a solution. You are usually helpful. This suggestion is not. You are one stubborn poster. Your standard response is NOT a solution. It doesn’t troubleshoot anything. Of course that will friggin work. It’s like saying just leave it plugged in all the time.

    Sorry Fish, losing patience with your stock answer that everyone but you doesn’t think of as a solution. Stick to your other stock answers like CCC back up cut and pasted.

    We don’t want to shut our machines off and turn them on every time we open the lid.

    Rant off.
     
  19. Fishrrman, Jun 29, 2018
    Last edited: Jun 29, 2018

    Fishrrman macrumors P6

    Fishrrman

    Joined:
    Feb 20, 2009
    #19
    I'm not suggesting you shut the computer off all the time.
    Just overnight.

    You can keep banging your head against the wall if you wish, be my guest.
    But I prefer pathways that work, even if they're merely "workarounds" that don't solve the underlying "problem".

    There are some problems that simply don't have complete solutions.
    Tell me -- how many months now have you been fighting this?... ;)

    OP:
    Something else to try:
    1. At night, before bed...
    2. Reboot holding down the shift key so that you boot into safe mode
    3. Login to the finder.
    4. Make note of the battery's charge level
    5. Close the cover
    6. In the morning, open the cover and re-check the state of charge.
    Was there a "large discharge", or....?
     
  20. therealdrwatson macrumors newbie

    Joined:
    Sep 27, 2018
    #20
    I've had the same problem since I upgraded. Probabaly about a month ago. Pro13 from early 2015. High Sierra, 10.13.6.

    I just ran the little grep suggested by LarryJoe33: pmset -g log|grep -e " Sleep " -e " Wake "

    Basically what I see is this below, repeated over and over: every 2-3 min while the thing is closed. I started with a full battery, and closed all apparent apps. (Sorry for the poor wrapping). Any ideas? looks like it's churning along trying to do something while "asleep" but i'm not fluent enough to figure it out.

    Thanks
    R

    *****

    2018-09-26 20:23:52 +0200 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:98%) 7206 secs

    2018-09-26 20:23:57 +0200 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7200] [proc=dasd request=SleepService inDelta=41511 info="com.apple.dasd:0:com.apple.apsd.apprefresh"] [proc=powerd request=TCPKATurnOff inDelta=34184]

    2018-09-26 20:23:57 +0200 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1314 ms)] [mDNSResponder is slow(5007 ms)]

    2018-09-26 22:23:58 +0200 Kernel Client Acks Delays to Sleep notifications: [powerd is slow(5010 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(363 ms)] [RP03 driver is slow(msg: SetState to 0)(1000 ms)]

    2018-09-26 22:23:58 +0200 Kernel Client Acks Delays to Wake notifications: [AirPort_BrcmNIC driver is slow(msg: SetState to 2)(337 ms)]

    2018-09-26 22:24:06 +0200 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:92%) 3929 secs
     
  21. jerryk macrumors 601

    Joined:
    Nov 3, 2011
    Location:
    SF Bay Area
    #21
    Review this article, https://support.apple.com/en-us/HT204760 . This section especially may be relevant "
    If your Mac wakes unexpectedly"
     

Share This Page