Modifying the Energy Saver “Put hard disks to sleep when possible” setting using the terminal

If you're looking in Yosemite for where the Put hard disks to sleep when possible setting in Energy Saver lives, it's in /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist, so you can view with the command defaults read /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist and you'll see the value in "Disk Sleep Timer", with 10 meaning the box is checked and 0 meaning it's not checked. […]

Modifying the Energy Saver “Turn display off after” preferences in Yosemite using the terminal

What's the problem? I'm shocked at how little straightforward documentation there is regarding where the Energy Saver settings (from System Preferences) are stored or how to modify them using the terminal. Where are the settings stored? Using opensnoop, I was able to track down that Energy Saver modifies this file: /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist The main slider in […]

Changing the Energy Saver schedule via the command line on a Mac

You can find a far more comprehensive tutorial at Power Management & Scheduling via Command Line, but if you want to change just the basic options, a command like this should do it: sudo pmset repeat shutdown MTWRFSU 22:00:00 wakeorpoweron MTWRFSU 6:00:00 That's the equivalent of going to System Preferences > Energy Saver > Schedule […]