Stop Your MacBook Turning On Every Time You Open the Lid - MacRumors
Skip to Content

Stop Your MacBook Turning On Every Time You Open the Lid

by

If you've ever opened your MacBook's lid just to clean the display and keyboard, only to have it spring to life unexpectedly, here's a simple solution. Apple silicon Macs automatically start up when you open the lid or connect them to power, but you can disable this behavior in macOS Sequoia or later.

craig federighi
While automatic startup is convenient in most situations, you might want to disable it. Doing so gives you better control over your Mac's power state, which is particularly useful when you're checking over the machine or cleaning it and don't want it powering on automatically. To prevent the behavior, simply follow the steps below.

Note that the steps only work if your Mac laptop is powered by Apple silicon (M1 chip or later) and it's running macOS Sequoia or later. You'll also need your administrator password handy.

  1. Open the Terminal app (it's in the subfolder Applications/Utilities).
  2. At the prompt, type one of the following commands, then press Return:
  • sudo nvram BootPreference=%00 – To prevent startup when opening the lid or connecting to power.
  • sudo nvram BootPreference=%01 – To prevent startup only when opening the lid.
  • sudo nvram BootPreference=%0 – To prevent startup only when connecting to power.

You'll then be asked to enter your administrator password (it won't be visible as you type). After that, press Return again, and you're done.

That's all there is to it. To restore the default behavior and re-enable automatic startup, enter sudo nvram -d BootPreference in Terminal.

Don't worry - this change won't affect your ability to turn on your Mac using the keyboard or trackpad. You'll still have full control over your Mac's power state, just without the automatic behavior.

Popular Stories

All Screen iPhone 2030 Feature Sans Text

iPhone 18 Pro: Nine Reasons Not to Upgrade This Year

Monday September 7, 2026 5:01 am PDT by
Apple is set to unveil new iPhone 18 Pro and iPhone 18 Pro Max models on Wednesday, September 9, and the devices are expected to feature a design that's largely similar to the iPhone 17 Pro models, with a peppering of enhancements inside. Major changes are not expected until next year, when Apple is expected to introduce a radically redesigned 20th-anniversary iPhone. If you're thinking of...
apple surprise and shine event

Apple Event Tomorrow: iPhone 18 Pro and iPhone Ultra Cheat Sheet

Tuesday September 8, 2026 10:24 am PDT by
Apple's biggest event of the year is almost here, and all eyes are on Cupertino. With the first foldable iPhone expected to headline Apple's "Surprise and Shine" event on Wednesday, September 9, at 10:00 a.m. Pacific Time, the rumor mill has been running full throttle, fuelled by the biggest single design change in the life of the iPhone. To get you up to speed, here's a quick reference...
apple watch series 12

Leak Hints at Four New Features for Apple Watch Series 12 and Ultra 4

Monday September 7, 2026 8:57 am PDT by
Ahead of the announcement of the Apple Watch Series 12 and Ultra 4 later this week, code in the watchOS 27 and iOS 27 betas points to a series of new features for the product line. The information comes from a new post from MacRumors forums member "pdfu." The findings include: New "Readiness" app: An all-new separate Watch app referred to in code as "Readiness," distinct from the...