How to Keep Windows Running When Laptop Lid Is Closed in Windows 11

By default, most laptops go to sleep the moment you close the lid. While this helps save power, it can be frustrating when you want your system to keep running — especially if you’re:

  • Downloading large files
  • Using an external monitor
  • Running background tasks
  • Hosting a local server
  • Listening to music with the lid closed
  • Keeping apps active while docked

If you’re here reading this guide, you’re likely trying to stop your Windows 11 laptop from sleeping or shutting down whenever the lid closes. The good news? Windows gives you full control over lid behavior through the Power Options menu.

In this detailed step-by-step guide, we’ll show you exactly how to keep your laptop running even when the lid is closed, along with helpful additional settings and important precautions.

Let’s get started!

1. Change Lid-Closing Behavior Through Power Options (Primary Method)

This is the most direct and reliable method.

  1. Press Windows + R to open the Run dialog.
  2. Type:
control powercfg.cpl
  1. Press Enter — this opens Power Options.
  2. On the left sidebar, click Choose what closing the lid does.
  3. Under When I close the lid, you’ll see two settings:
    • On battery
    • Plugged in
  4. For each option, open the dropdown menu and select Do nothing.
  5. Click Save changes.

Now, closing the laptop lid will no longer put your laptop to sleep or shut it down.

2. Prevent Sleep While Using an External Monitor (Docking Mode)

If you’re using your laptop with external monitors, closing the lid usually disables the laptop screen — but it may put the device to sleep unless the lid action is set to Do nothing.

  1. Connect your external monitor(s).
  2. Open Power Options → Choose what closing the lid does.
  3. Set both options to Do nothing.
  4. Close the laptop lid.

Windows automatically switches to external display mode while keeping your laptop running.

3. Change Sleep Settings to Prevent Automatic Sleep

Even if you configure lid behavior, your laptop may still go to sleep automatically due to system-wide sleep timers.

  1. Press Windows + I to open Settings.
  2. Go to System → Power & battery.
  3. Under Power, click Screen and sleep.
  4. Set:
    • On battery, put device to sleep after → Never
    • When plugged in, put device to sleep after → Never

This ensures your system stays awake even if you’re not using it.

4. Use Modern Standby Settings (For Laptops That Use S0 Mode)

Some Windows 11 laptops use “Modern Standby,” which restricts some power-control customization.

To check if your laptop uses Modern Standby:

  1. Open Command Prompt.
  2. Type:
powercfg /a
  1. Press Enter.

If you see Standby (S0 Low Power Idle), then you’re on Modern Standby.

Fix:

  • Changing lid settings still works, but sleep may behave differently.
  • To prevent network disconnections in sleep, enable Network Connectivity in Standby under Power settings (if available).

5. Use Third-Party Apps to Keep the Laptop Awake (Optional)

If you want finer control, apps can prevent sleep even if the lid is closed.

Recommended tools:

  • Caffeine
  • NoSleep
  • Insomnia
  • Winaero Keep Awake

These tools simulate activity to prevent sleep.

Important Tips Before Keeping the Laptop Running With the Lid Closed

Keeping a laptop active while closed has advantages, but also a few risks.

1. Watch Out for Overheating

Laptops dissipate heat through the keyboard area. With the lid closed, heat can build up.
Avoid placing the laptop on:

  • Blankets
  • Cushions
  • Tight shelves

Use a laptop cooling pad for heavy workloads.

2. Increase Ventilation

Place the laptop:

  • On a hard, flat surface
  • With space around vents
  • On a laptop stand or docking station

3. Don’t Keep It Closed During Intense Gaming

High temperatures build up faster with the lid closed.
For gaming, leave the lid open slightly or use an external cooling solution.

4. Adjust Your Power Plan

Use Balanced or High performance mode if you’re running intensive tasks while lid is closed.

Wrapping Up

Keeping your Windows 11 laptop running with the lid closed is incredibly useful when using an external monitor, transferring large files, or multitasking while docked. With the simple adjustments in Power Options — along with optional tweaks to sleep settings and ventilation tips — your laptop can continue running smoothly and efficiently with the lid shut.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.