How to keep your laptop on with the lid closed in Windows 10 and 11
By default, closing your laptop lid puts Windows into sleep mode. However, whether you want to keep downloading large files, play music in the background, or use an external monitor, you can easily change what closing the lid does. This guide shows you how to keep your laptop running with the lid closed in Windows 10 and 11.
Quick tutorial: Press Windows + R, type control powercfg.cpl, press Enter. Click Choose what closing the lid does in the left sidebar, set When I close the lid under Plugged in to Do nothing, and click Save changes.
Important! Never put a running laptop in a bag, suitcase, or backpack with the lid closed — the system can overheat quickly in an enclosed space, which can lead to battery degradation or hardware failure. Always turn your laptop off before traveling with it.
How to keep laptop on with lid closed
- Press the Windows + R keyboard keys to open the Run dialog.
- Type
control powercfg.cplin the Run dialog. - Press Enter or click OK.
- Click Choose what closing the lid does in the left sidebar.
- Set When I close the lid under Plugged in to Do nothing.
- Click Save changes at the bottom of the window.

You can now close your laptop's lid while it is plugged into power, and it will keep running instead of going into sleep mode.
Plugged in vs. On battery settings
Recommended settings:
- Plugged in: Do nothing
- On battery: Sleep
Setting Plugged in to Do nothing lets you download large files, play music in the background, or use an external monitor at your desk without leaving the screen open.
Leaving On battery set to Sleep acts as a safety net. If you close your laptop and put it in a bag while unplugged, the laptop goes to sleep instantly — preventing battery degradation or hardware failure due to overheating.
Is it safe to use a laptop with the lid closed?
For basic daily tasks like streaming music, downloading, or web browsing on an external monitor, keeping the lid closed is completely safe.
However, if you perform heavy, hardware-intensive tasks, keep these thermal tips in mind:
- Watch heat-sensitive displays: Many modern laptops expel hot air near the display hinge. Trapping intense heat against a closed screen for hours can stress the panel or top bezel.
- Use a vertical laptop stand: Elevating the laptop vertically opens up bottom air intakes and improves passive cooling.
- Leave the lid slightly open during heavy tasks: If fans are running at maximum speed for video rendering or gaming, leave the lid slightly open to maintain proper ventilation.
Related:
How to stop Windows 11 from turning off your computer screen
How to disable the power button in Windows 11 (and 10)