Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rpanachi/28fada2b12da7a63ed6837fc6cc702c2 to your computer and use it in GitHub Desktop.
Save rpanachi/28fada2b12da7a63ed6837fc6cc702c2 to your computer and use it in GitHub Desktop.
How to Fix macOS Mojave Battery Draining Issue

References

https://appletoolbox.com/how-to-fix-macos-mojave-battery-draining-issue/

Before

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

Commands

sudo pmset -a standby 1
sudo pmset -a hibernatemode 25
sudo pmset -a standbydelaylow 1800
sudo pmset -a standbydelayhigh 3600
sudo pmset -b tcpkeepalive 0
@FrytechTV
Copy link

That page won't open anymore in 2021, the URL apparently got changed to: https://appletoolbox.com/how-to-fix-macos-mojave-battery-draining-issue/ - basically, remove the date from original URL

@rpanachi
Copy link
Author

Fixed. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment