mac turn off macbook display external code example Example: how to turn off mac display pmset displaysleepnow