Apple reveals how to prevent your MacBook powering on when you open the lid — here's what to do

MacBook Air 13-inch M3
(Image credit: Tom's Guide)

One of the most annoying things about owning a MacBook is that every time you open the lid, or connect it to power, the machine boots itself up. It doesn’t matter whether you actually want that to happen or not, it seems like you don’t have a choice. Fortunately, Apple has explained that there is a way around this.

This workaround isn’t exactly obvious, or else Apple wouldn’t have had to step in and tell everyone what’s going on. 9to5Mac describes it as “a bit of a power user workaround," and it will require some time in the Terminal app. Why couldn’t it be a toggle in the settings menu? I don’t know, but it shouldn’t surprise anyone considering what Apple is usually like.

There are some caveats here. You will need a Mac that has Apple silicon, meaning one of the M-series chips rather than an older model with an Intel CPU. It’ll also need to be updated to macOS Sequoia or later. If you have a machine that meets both criteria, then Apple’s support document explains everything you need to do.

1. Open the Terminal app

(Image: © Future)

Open up the Terminal app, which can be found in the Utilities section of the Applications folder

2a. Avoid start-up when opening the lid or plug in

(Image: © Future)

To stop start-up when you’re opening the lid or connecting to power type in sudo nvram BootPreference=%00 and hit return.

2b. Avoid start-up when you open the lid

(Image: © Future)

To stop the machine starting up only when you open the lid type in sudo nvram BootPreference=%01 and hit return

2c. Avoid start-up when you plug in

(Image: © Future)

To stop the MacBook starting up only when you plug it into power type in sudo nvram BootPreference=%02 and hit return

3. Verify your password

(Image: © Future)

After you hit return you’ll be asked to verify your password, so type it in and hit return. Just remember that your password won't be visible in the terminal as you type.

If you ever want to do any of these changes, you’ll need to type sudo nvram -d BootPreference into the terminal window.

One thing to remember is that your MacBook will still boot up if you hit one of the keys or the track pad. So bear that in mind if you need to clean your machine, or plan on leaving your laptop lid open with the keyboard exposed.

More from Tom's Guide

Tom Pritchard
UK Phones Editor

Tom is the Tom's Guide's UK Phones Editor, tackling the latest smartphone news and vocally expressing his opinions about upcoming features or changes. It's long way from his days as editor of Gizmodo UK, when pretty much everything was on the table. He’s usually found trying to squeeze another giant Lego set onto the shelf, draining very large cups of coffee, or complaining about how terrible his Smart TV is.

Read more
The Mac mini M4 upright on a desk showing its underside and power button
Apple exec explains why the Mac mini M4’s power button is in such a weird place
MacBook Pro 14-inch (2024, M4) shown open on a table
The notch is dead! MacBook Pro with OLED may ditch it once and for all
Apple iPhone 16 Plus Review.
How to turn off your iPhone 16 — power down or restart your device this way
Apple Intelligence on MacBook
5 Apple Intelligence features to try first on your new MacBook
MacBook Air M2 and HP Envy x360 in split image
I ditched Windows for a MacBook after 30 years — here's why I'm never going back
Apple iPhone 15 held in the hand.
How to turn off your iPhone
Latest in MacBooks
MacBook Air 15-inch M3
MacBook Air M4 biggest upgrades just tipped right before launch
A MacBook Air tease by Tim Cook
Apple's Tim Cook just teased 'Something in the Air' ahead of MacBook Air M4 launch
An iPhone 16 in hand in front of MacBook Air 13-inch M3 on table
I paired an iPhone 16 with my MacBook Air — and now I pity Android users who are missing these features
Microsoft Copilot
Microsoft Copilot just landed on the Mac App Store — here's which Macs can run it
MacBook Air M3 13-inch held in hand with Tom's Guide Price Drop badge
Surprise! MacBook Air M3 is $200 off at Amazon — including all models in Midnight and Starlight
MacBook Pro 14-inch M3
MacBook Pro M5 — all the rumors we’ve heard so far
Latest in News
MacBook Air 15-inch M3
MacBook Air M4 biggest upgrades just tipped right before launch
James Marsden and Sterling K. Brown in Paradise
'Paradise' season finale ending explained — who killed President Bradford?
Android 12
Google March Android Security Update fixes two high severity vulnerabilities — update now
Kieran Culkin as Benjamin "Benji" Kaplan in "A Real Pain"
Hulu top 10 movies — here's the 3 worth watching now
Apple iPad 11
iPad 11 just announced — here’s what’s new
Pixel Studio showing people illustration
Pixel Studio can finally generate people — and that's not the only change Google is bringing to Pixel phones