1.To close the laptop lid and keep it running, go to Control Panel ( Run –> Control )
2.In the Control Panel, go to Hardware and Sound –> Power Options Choose what closing the lid does
3.From the left-hand menu, select "Choose what closing the lid does". The power options for lid closing open.
4. Select " Do nothing " in the drop-down options of "when close the lid".
5. After making these changes click the Save changes option.