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

citivolus

macrumors 65816
Original poster
Sep 19, 2008
1,239
289
I’ve been noticing that my 2020 i5/8GB will go to sleep with say 75% battery left and in a few days I will open the lid and it will be completely dead at 0%. How can I find out what is draining the battery while it is sleeping?
 
I’ve been noticing that my 2020 i5/8GB will go to sleep with say 75% battery left and in a few days I will open the lid and it will be completely dead at 0%. How can I find out what is draining the battery while it is sleeping?
show me energy settings - have you enabled the "Put hard disks to sleep when possible"?
 
I’ve been noticing that my 2020 i5/8GB will go to sleep with say 75% battery left and in a few days I will open the lid and it will be completely dead at 0%. How can I find out what is draining the battery while it is sleeping?
Is Power Nap while on battery on? Even so, it shouldn't drain your MacBook that much. Makes me think the MacBook isn't really going to sleep when the lid is closed, and only the display turns off. Something is preventing the MacBook from going to sleep. Check Console logs if the MacBook really goes to sleep or not.
 
This is the way it was without any modification...
1588435434054.png


Regarding not going to sleep, I ran pmset -g and see the following:

System-wide power settings:
Currently in use:
standbydelaylow 10800
standby 1
halfdim 1
hibernatefile /var/vm/sleepimage
proximitywake 0
powernap 0
gpuswitch 2
disksleep 10
standbydelayhigh 86400
sleep 15 (sleep prevented by sharingd)
hibernatemode 3
ttyskeepawake 1
displaysleep 15
tcpkeepalive 1
highstandbythreshold 50
acwake 0
lidwake 1

But when I check the Sharing preferences pane, I see this:
1588435561083.png

Wonder what gives?
 
In energy settings, is any process marked as prohibit sleep ?
Do you mean in the Activity Monitor, is any process marked as Preventing Sleep? If so, then No, all of the processes are marked as "No" in that column.
 
Again, check system.log in Console if the MacBook really goes to sleep. You can see when it sleeps and when it wakes up right there. If it does sleep and the battery gets drained too fast, then it's probably a battery problem.
 
Again, check system.log in Console if the MacBook really goes to sleep. You can see when it sleeps and when it wakes up right there. If it does sleep and the battery gets drained too fast, then it's probably a battery problem.
Sorry I must be missing something because I can't figure out how to do this. Can you give me some pointers?
 
Sorry I must be missing something because I can't figure out how to do this. Can you give me some pointers?
check here (You can check time/date wake up etc. )
 
Sorry I must be missing something because I can't figure out how to do this. Can you give me some pointers?
Might not be in system.log anymore. I haven't been in Console.app for a while. Maybe they moved it to other log, like powermanagement.
 
You can get log events in terminal

log show --style syslog --start '2020-05-05' | fgrep "[powerd:sleepWake]"

And powermanager events in terminal with

pmset -g log

I'm not that familiar with all the sleep/wake log events. You have to search the web for some more info.
 
Thanks for all the suggestions. I did some searching on the web and found the following command which gives good output:

pmset -g log|grep -e " Sleep " -e " Wake "

Time to analyze the results and report back!
 
  • Like
Reactions: edubfromktown
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.