Keep the computer awake with the lid closed and the built-in display dark
brew install --cask clamshell
clamshell