Prevent a Mac laptop from turning on when opening its lid or connecting to power

A Mac laptop with Apple silicon automatically turns on and starts up when you open its lid or connect it to power. You can change this behavior without affecting your ability to turn on your Mac using its keyboard or trackpad.

  1. Make sure that your Mac meets the system requirements for this feature:

  2. Open Terminal, which is in the Utilities folder of your Applications folder. Or use Spotlight to find and open it.

  3. Type one of these commands in Terminal, then press Return:

    • To prevent startup when opening the lid or connecting to power: sudo nvram BootPreference=%00

    • To prevent startup only when opening the lid: sudo nvram BootPreference=%01

    • To prevent startup only when connecting to power: sudo nvram BootPreference=%02

  4. Type your administrator password when prompted (Terminal doesn’t show the password as it's typed), then press Return.

To undo any of the previous commands and reenable automatic startup when opening the lid or connecting to power, enter sudo nvram -d BootPreference in Terminal.

Published Date: