Доки, маны, напоминалки

macbook no sleep with closed lid

Posted on Июнь 29, 2020

Disable Sleeping when the lid is closed running on battery
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1

Re-enable sleeping when the lid is closed running on battery
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0

Remember to re-enable or manually sleep your machine before putting it into a bag. It will get very hot very quickly in an enclosed space.