Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save batFormat/db37d63086cfed4654c8e40d70d6f180 to your computer and use it in GitHub Desktop.
Save batFormat/db37d63086cfed4654c8e40d70d6f180 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment