In 2016, Apple started including an auto power-on feature for its new MacBook models that activated when you opened the notebook lid or plugged in USB-C power when the lid was open. This is a cool little convenience if you don’t want the added step of pressing the power button — plus it could get the computer running if, for some reason, that button stops working.
How to stop your MacBook from turning on when you open the lid

But what if you open the lid just to clean the screen or are troubleshooting the computer for some other issue? Or perhaps you are building a slabtop and don’t want it to power on just because you plugged it into power? Or what if you don’t want to automate everything? In these cases, auto power-on is either a minor inconvenience or a straight-up annoyance.
The first MacBooks to get this feature had Intel processors, and it continued over to every new model, including when Apple switched to its own Apple Silicon M-series processors. There’s a Terminal command for the Intel MacBooks that can be used to disable open lid power-on, but when Apple launched the M1 MacBook Air in 2020, that command no longer worked. However, in January 2025, Apple finally added an official way to disable autoboot upon opening the lid of M1 and newer MacBooks.
Here’s how to disable auto power-on when opening the lid of either type of Mac.
Disable auto power-on on an Apple Silicon M-series MacBook
You’d think Apple would just add a simple “enable power on when opening lid” toggle in System Settings, but that would be too easy. Instead, you’ll have to do a bit of work under the hood of your macOS software by way of a special Terminal command that Apple has sanctioned.
The command, according to Apple, will work on all Apple Silicon models running macOS 15 Sequoia. However, we’ve also successfully tested it on macOS 14.7 Sonoma. For reference, these instructions are for newer models like the 2020 M1 MacBook Air and the 2024 14-inch and 16-inch MacBook Pro models with M4 Pro and M4 Max chips.
Here’s how to disable autoboot when opening the lid and / or plugging in power while the lid is open on your Apple Silicon M-series MacBook:
- Log in to your MacBook using an admin account (if you’re the only user, you are likely the admin already).
- Open up the Terminal application from the Applications > Utilities folder. You can get there from Finder by going to the Go menu on the toolbar and selecting Applications.
- In Terminal, copy and paste ONE of the following commands, depending on what you’d like, and then press Return:
- If you want to disable autoboot when you open the lid or when you plug in a charger while the lid is open:
- sudo nvram BootPreference=%00
- If you want to disable autoboot ONLY when you open the lid:
- sudo nvram BootPreference=%01
- If you want to disable autoboot ONLY when you plug in a charger:
- sudo nvram BootPreference=%02
- Terminal will then ask you for an admin password. Enter your user password (it won’t show you’re typing). Then press Return.
Now you can shut down the computer, close the lid, and test if it works.
To revert your settings back to the defaults, follow the steps above but enter this command instead:
- sudo nvram -d BootPreference
Disable auto power-on on an Intel MacBook
Are you still rocking a 2016 or newer Intel-based MacBook? If it’s still working and doing what you need it to do, that’s great! But if the darn autoboot is bothering you — say, if you’re experimenting with building a headless or slabtop MacBook — this Terminal command can fix that.
Here’s how to disable autoboot when opening the lid or plugging in power while the lid is open on your Intel-based MacBook:
- Log in to your MacBook using an admin account (if you’re the only user, you are likely the admin already).
- Open up the Terminal application from the Applications > Utilities folder. You can get there from Finder by going to the Go menu on the toolbar and selecting Applications.
- In Terminal, copy and paste the following command into the window and then press Return:
- sudo nvram AutoBoot=%00
- Terminal will then ask you for an admin password. Enter your user password (it won’t show you’re typing). Then press Return.
Now, you can shut down the computer, close the lid, and test if it works.
To undo your setting back to default, follow the steps above until you get to the Terminal but enter this command instead:
- sudo nvram AutoBoot=%03
Enjoy the lack of autoboot!
In 2016, Apple started including an auto power-on feature for its new MacBook models that activated when you opened the notebook lid or plugged in USB-C power when the lid was open. This is a cool little convenience if you don’t want the added step of pressing the power button…
Recent Posts
- The secretive X-37B space plane snapped this picture of Earth from orbit
- Beyond 100TB, here’s how Western Digital is betting on heat dot magnetic recording to reach the storage skies
- The end of an era? TSMC, Broadcom could tear apart Intel’s legendary business after 57 years by separating its foundry and chip design
- Beterbiev vs Bivol 2 LIVE: Fight stream, cheapest PPV deals, how to watch light-heavyweight title rematch
- Spotify HiFi was announced four years ago, and it’s almost here — maybe
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010