2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-05 12:00:16 +00:00
This commit is contained in:
Igor Chubin 2017-06-04 20:47:01 +00:00
parent 1cefbd4f88
commit 132ec4d9ac

View File

@ -1,28 +1,22 @@
# pmset
#
# Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
# Commands that modify settings must begin with sudo (Mac OS X)
pmset
Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
Commands that modify settings must begin with sudo.
- Display the current power management settings:
# Display the current power management settings:
pmset -g
- Display the current power source and battery levels:
# Display the current power source and battery levels:
pmset -g batt
- Set display to never sleep when on charger power:
# Set display to never sleep when on charger power:
sudo pmset -c displaysleep 0
- Set display to sleep after 15 minutes when on battery power:
# Set display to sleep after 15 minutes when on battery power:
sudo pmset -b displaysleep 15
- Schedule computer to automatically wake up every weekday at 9 AM:
# Schedule computer to automatically wake up every weekday at 9 AM:
sudo pmset repeat wake MTWRF 09:00:00
- Restore to system defaults:
# Restore to system defaults:
sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1
See also: sudo