Skip to content

Instantly share code, notes, and snippets.

@joshdurbin
Last active January 13, 2022 21:22
Show Gist options
  • Save joshdurbin/b2d121e55d9d1d644a925a5fdbd2289f to your computer and use it in GitHub Desktop.
Save joshdurbin/b2d121e55d9d1d644a925a5fdbd2289f to your computer and use it in GitHub Desktop.

pmset -g assertions sudo powermetrics --show-process-energy sudo pmset schedule cancelall pmset -g log | grep "Wake Requests"

suggestions:

https://twitter.com/jckwhet/status/1018256785839394816?lang=en

sudo pmset -b hibernatemode 25
sudo pmset -b standbydelay 300

existing values:

➜  ~ sudo pmset -g
System-wide power settings:
Currently in use:
 standby              1
 Sleep On Power Button 1
 hibernatefile        /var/vm/sleepimage
 powernap             1
 disksleep            10
 sleep                1 (sleep prevented by powerd)
 hibernatemode        3
 ttyskeepawake        1
 displaysleep         2
 tcpkeepalive         1
 lowpowermode         0

... for more on those options, see: https://www.lifewire.com/change-mac-sleep-settings-2260804

-- Time Machine

If Time Machine is in the picture, consider using:

https://tclementdev.com/timemachineeditor/

along with: sudo pmset -a powernap 0

...to disable nightly backups.

You can also use Time Machine and disable "automatic backups" all together, by selecting this option in the control panel.

-- Battery

Disable "Wake for Network Access" under "Power Adapter" sub-menu of "Battery" in the Control Panel.

-- Sharing

Disable all things sharing. I had SSH / "Remote Login" enabled, which I disabled (I've almost never used it inbound) and "AirPlay Receiver", which I've also not used.

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