Select Pause, Hibernate and Off when closing the lid.
In Windows, search for and open the Control Panel.
Find the power supply and click Power Options.
Turn on the power option in Windows
Click to specify what happens when you close the cover from the list on the left side of the window.
Choose what to do when closing the lid
Click the menu to close the lid to select the settings when using the battery and the settings when the power is connected, then click Save Changes.
Change the lid off setting
Previous:Specify what happens when you press the power button-Windows 10