Instructions on how to disable the auto-start feature when opening your Macbook lid.
Detailed steps:
Step 1: Open Terminal
Press Command + Space to open Spotlight, type "Terminal" and press Enter to open the application.
Step 2: Run the command
Copy and paste the following command into the Terminal window
sudo nvram AutoBoot=%00
Step 3: Confirm the password
Press Return, the computer will ask you to enter the password of the computer. Note: When entering the password, the characters will not be displayed on the screen. You just need to type the correct password and press Return again.
Step 4: Checking
After performing the above steps, try turning off the computer, closing the lid and then opening it again to check if the auto-on feature has been disabled.
To re-enable this feature, you can do the same with the following command
sudo nvram AutoBoot=%03