If you want that the notebook to turn off the display after the lid has been closed, change the following setting to switch off the notebook internally:
- In the Setup, go to System > Registry > sessions > user_display0 > options > lid_events.
- Enable React on lid open and close event.
- Click Apply or Ok to save the setting.