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. With macOS Sequoia 15 or later, you can change this behavior without affecting your ability to use your keyboard or trackpad to turn on your Mac.

  1. Make sure that you are using macOS Sequoia or later.

  2. Open the Terminal app.

  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, then press Return.

  5. To undo any of the previous commands, enter 
    • sudo nvram -d BootPreference

Article Details

Article ID:
9
Date added:
2025-02-02 19:01:48
Views:
80
Rating (Votes):
(0)