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.
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:
Enjoy the lack of autoboot!
Read the full article here