An OS X command-line utility to put display to sleep or wake it up.
- Run 'displayctl sleep' to put display to sleep.
- Run 'displayctl wake' to wake it up.
- Load project in Xcode.
- Click 'Build'.
- Install Xcode or "Xcode Command Line Tools".
- In terminal, cd into the project directory.
- Run 'xcodebuild'.
- Executable will be found in 'build/Release/displayctl'.
- This utility puts to sleep ALL connected displays (tested with an external Apple display attached to an MBP).
- Tested on Intel MBP, OS X 10.6.8 and 10.7.5.