Apple has introduced a workaround for users who prefer not to have their Mac automatically turn on when opening the lid or connecting to power. The process involves using the Terminal app and modifying system settings.
To disable this feature, open the Terminal app, then type one of the following commands and press Return:
– To prevent startup when opening the lid or connecting to power: sudo nvram BootPreference=%00
– To prevent startup only when opening the lid: sudo nvram BootPreference=%01
– To prevent startup only when connecting to power: sudo nvram BootPreference=%02
Enter your administrator password and press Return. This change can be undone by running the command sudo nvram -d BootPreference.
Note that this workaround is available on macOS Sequoia or later, and users should use caution when modifying system settings.
Source: https://www.macrumors.com/2025/01/30/apple-keep-mac-turning-on-lid-open