How to disable boot on MacBook Pro when lid is opened?

This article has the info for you.

Steps :

  1. Open the Terminal from this location /Applications/Utilities/

  2. Enter the command - sudo nvram AutoBoot=%00 to turn off autoboot feature.

  3. Hit return and authenticate with the admin password (necessary due to sudo).

  4. Exit terminal when finished

Note : If you want to reset to defaults, then enter this command - sudo nvram AutoBoot=%03