I use my main computer as a Mac Studio, but I often reach for my MacBook.
But this thing... When you just open the lid... It turns on... (It doesn't wake up from sleep, it turns on even if I turn it off and then close and open the lid.)
This can be convenient, but it can also be inconvenient.
Until now, there was no way to control this function...
macOS Sequoia 15 or later allows you to change this behavior without affecting the ability to turn on your Mac using the keyboard or trackpad.
Enter the following commands in Terminal:
- To prevent both opening the lid and connecting the power from automatically turning on the computer
sudo nvram BootPreference=%00
- To prevent the computer from automatically turning on when the lid is opened
sudo nvram BootPreference=%01
- To prevent the computer from automatically turning on when the power is connected
sudo nvram BootPreference=%02
- To revert to default settings (automatic power-on state)
sudo nvram -d BootPreference
By the way, there's also an app called KeyboardCleanTool.
It's an app that can be installed through brew, so if you need it, install and configure it.
brew install keyboardcleantool