Resolved Solved my battery loss while sleeping issue

Discussion in 'MacBook' started by deepakvrao, Apr 21, 2018.

  1. deepakvrao macrumors 6502

    Joined:
    Oct 16, 2011
    Location:
    India
    #1
    After a lot of surfing, found out how to get these settings. So, for half an hour, I have an instant wake, and hibernate after that. No battery loss while sleeping on battery.

    Currently in use:
    standbydelay 1800
    standby 1
    womp 0
    halfdim 1
    hibernatefile /var/vm/sleepimage
    powernap 0
    gpuswitch 2
    networkoversleep 0
    disksleep 0
    sleep 10
    autopoweroffdelay 28800
    hibernatemode 3
    autopoweroff 0
    ttyskeepawake 1
    displaysleep 10
    tcpkeepalive 1
    acwake 0
    lidwake 1
     
  2. Charlie7 macrumors newbie

    Charlie7

    Joined:
    May 18, 2018
    #2
    How did you resolve it? TCPAlive 1 as I know it keeps internet running while sleeping....latest update 10.13.4 and security update has drained battery even while sleeping. Before that 10.3.3 was good on my MBP 2017 non touch.
     
  3. deepakvrao, May 23, 2018
    Last edited: May 23, 2018

    deepakvrao thread starter macrumors 6502

    Joined:
    Oct 16, 2011
    Location:
    India
    #3
    I think I first used this command

    sudo pmset -a hibernatemode 3

    and then this

    sudo pmset -a standbydelay 1800

    and then this

    sudo pmset -c standbydelay 36000

    The last one makes sure that when connected to the charger it does not hibernate for 10 hours.

    I'm not really very sure about all this, but I *think* this is what I did. Current settings are

    AC Power:

    System Sleep Timer (Minutes): 10

    Disk Sleep Timer (Minutes): 0

    Display Sleep Timer (Minutes): 10

    Wake on AC Change: No

    Wake on Clamshell Open: Yes

    Wake on LAN: No

    AutoPowerOff Delay: 28800

    AutoPowerOff Enabled: 0

    Current Power Source: Yes

    DarkWakeBackgroundTasks: 0

    Display Sleep Uses Dim: Yes

    GPUSwitch: 2

    Hibernate Mode: 3

    PrioritizeNetworkReachabilityOverSleep: 0

    Standby Delay: 36000

    Standby Enabled: 1

    TCPKeepAlivePref: 1

    Battery Power:

    System Sleep Timer (Minutes): 3

    Disk Sleep Timer (Minutes): 10

    Display Sleep Timer (Minutes): 3

    Wake on AC Change: No

    Wake on Clamshell Open: Yes

    AutoPowerOff Delay: 28800

    AutoPowerOff Enabled: 0

    DarkWakeBackgroundTasks: 0

    Display Sleep Uses Dim: Yes

    GPUSwitch: 2

    Hibernate Mode: 3

    Reduce Brightness: Yes

    Standby Delay: 1800

    Standby Enabled: 1

    TCPKeepAlivePref: 1
    --- Post Merged, May 23, 2018 ---
    Got the info here

    https://computers.tutsplus.com/tutorials/how-to-hibernate-a-mac--cms-23235
     
  4. infernoguy, Jul 8, 2018
    Last edited: Jul 8, 2018

    infernoguy macrumors regular

    infernoguy

    Joined:
    Jun 24, 2011
    Location:
    Nashville, TN
    #4
    In case anyone is still experiencing this issue...

    I bought a second hand rMB 2015 (Gold) and had a 1 to 2% drain every hour. Here's what I tried:

    1. SMC Reset
    2. Upgraded to Mojave Public Beta
    3. Used Internet Recovery to clean install High Sierra

    I did all the above with no results. I did some more research and found that someone did a SMC Reset then a PRAM Reset right after. I did this then fully charged the laptop. Look at part of my sleep log to see the results:

    This is a sample of the log when I had it connected to AC Power:
    2018-07-07 07:30:36 -0500 Sleep Entering Sleep state due to 'Idle Sleep':TCPKeepAlive=active Using AC (Charge:100%) 1188 secs
    2018-07-07 07:51:09 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 339 secs
    2018-07-07 07:57:33 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 216 secs
    2018-07-07 08:01:54 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 314 secs
    2018-07-07 08:07:53 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 323 secs
    2018-07-07 08:14:01 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 218 secs
    2018-07-07 08:18:24 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 217 secs
    2018-07-07 08:22:21 -0500 Wake DarkWake to FullWake from Deep Idle [CDNVAPB] due to Notification: Using AC (Charge:100%) 10 secs
    2018-07-07 08:22:31 -0500 Sleep Entering DarkWake state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%)
    2018-07-07 08:22:46 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7 secs
    2018-07-07 08:23:38 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 144 secs
    2018-07-07 08:26:02 -0500 Wake Wake from Deep Idle [CDNVA] due to SPIT/UserActivity Assertion: Using AC (Charge:100%) 746 secs

    This is a sample of the log after I removed the AC Adapter:
    2018-07-07 08:38:28 -0500 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=inactive Using Batt (Charge:100%) 10805 secs
    2018-07-07 11:38:33 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using Batt (Charge:100%) 32505 secs
    2018-07-07 20:40:20 -0500 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using Batt (Charge:100%) 39075 secs
    2018-07-08 07:31:35 -0500 Wake Wake from Standby [CDNVA] due to EC.LidOpen/Lid Open: Using BATT (Charge:100%) 918 secs

    If you'll notice, when I unplugged it and let it sit all day/night yesterday on battery, it only woke up 3 times to check in network wise the rest of the day. I woke it up this morning to a full 100% charge. Seems like something in the PRAM needed to be reset.

    Edit: Looking at my older logs, it constantly checked in on battery like it was plugged into AC. Once the PRAM/SMC reset, it seems to have adjusted accordingly.

    YMMV but its something to try.
     

Share This Page