By default Windows 11 will make a laptop computer to go sleep when the lid is closed.
The following steps show how to change this, making it so the computer will stay on when the lid is closed.
- Open the Settings window by pressing Windows + I on your keyboard
- In the search field, at the top-left of the window, type lid
- When it appears, click on the ‘Change what closing the lid does’ option
- Set ‘When I close the lid’ to ‘Nothing’ for ‘On battery’ and/or ‘Plugged in’
- Click ‘Save changes’