Stop Your MacBook from Turning On When You Open the Lid or Plug It In

Do you find it annoying when your MacBook automatically turns on every time you open the lid or connect it to power? Apple has now provided an official way to disable this feature.

Apple now lets you stop your MacBook from turning on automatically when you open the lid or plug it in. They shared official steps to change this setting.

Since there’s no option in System Settings, you’ll need to use Terminal. Here’s how:

How to Disable Automatic Startup on MacBook

  1. Make sure your Mac has Apple silicon and is running macOS Sequoia or later.
  2. Open Terminal (found in Applications > Utilities).
  3. Type one of these commands, then press Return:
    • Stop startup when opening the lid or plugging in:shCopyEditsudo nvram BootPreference=%00
    • Stop startup only when opening the lid:shCopyEditsudo nvram BootPreference=%01
    • Stop startup only when plugging in:shCopyEditsudo nvram BootPreference=%02
  4. Enter your admin password when asked (your typing won’t be visible), then press Return.

How to Turn Automatic Startup Back On

If you change your mind, use this command in Terminal:

shCopyEditsudo nvram -d BootPreference

This won’t stop your Mac from turning on when you press a key or trackpad. If you need to clean your keyboard without accidental key presses, you can try apps like CleanupBuddy.

If you just want to mute the startup sound, go to Settings > Sound and turn off Play sound on startup.