Skip to content

Instantly share code, notes, and snippets.

@olssonm
Created November 14, 2019 08:05
Show Gist options
  • Save olssonm/073188b1f3998ad7b37728126edb8d31 to your computer and use it in GitHub Desktop.
Save olssonm/073188b1f3998ad7b37728126edb8d31 to your computer and use it in GitHub Desktop.
# Check current values
pmset -g
# Set a pmset values (must be sudo)
pmset -a $key $value
# Scan the pmset log for sleep and wake reasons
pmset -g log|grep -e " Sleep " -e " Wake "
# Try to find reasons for keeping the Mac awake
pmset -g assertions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment