It would be really great to have a built-in option to enable the device to stay awake even when the lid is shut.
Just a proxy to this command and the device won't sleep even when the lid is shut.
sudo pmset -a disablesleep 1
Turning it off is as easy as passing a 0 instead of a 1 to the command:
sudo pmset -a disablesleep 0
Enabling this feature would help many users who run autonomous agents or even just long build tasks on their MacBooks.
It would be really great to have a built-in option to enable the device to stay awake even when the lid is shut.
Just a proxy to this command and the device won't sleep even when the lid is shut.
Turning it off is as easy as passing a 0 instead of a 1 to the command:
Enabling this feature would help many users who run autonomous agents or even just long build tasks on their MacBooks.