Header Banner
Gadget Hacks Logo
Gadget Hacks
Windows Tips
gadgethacks.mark.png
Gadget Hacks Shop Apple Guides Android Guides iPhone Guides Mac Guides Pixel Guides Samsung Guides Tweaks & Hacks Privacy & Security Productivity Hacks Movies & TV Smartphone Gaming Music & Audio Travel Tips Videography Tips Chat Apps

How to Keep Laptop Running When Closed: Windows 11 Guide

How to Keep Laptop Running When Closed: Windows 11 Guide

Two settings changes are all it takes. Set the lid-close action to Do Nothing and disable the inactivity sleep timer. Both live in Settings > System > Power & Battery and take about three minutes to configure.

The same fix works for any background task that needs to finish without you at the keyboard: AI agents, file transfers, video exports. The settings are identical regardless of workload.

Before starting: you need local admin rights to edit power settings. On enterprise-managed machines, the relevant options may appear greyed out. That's a Group Policy restriction, not a display bug. Check with IT before proceeding, because the steps below require the ability to change those settings.


Why Windows kills background jobs when you close the lid

This is a configuration problem, not an AI problem. By default, closing a laptop lid sends Windows into sleep or hibernation, which terminates any running process before it finishes. PCWorld reported today that this default behavior predates AI by years and is what kills background tasks mid-run.

One distinction worth knowing: turning off the display is not the same as sleep. Screen off leaves all background processes intact. Sleep suspends them. A laptop with a dark screen and a closed lid can still run a job to completion, as long as sleep has been disabled. PCWorld makes this explicit. That's the logic the fix is built on.

There's a second, less obvious trigger: the inactivity sleep timer. Background processes don't register as user input, so even with lid behavior corrected, Windows will still push the machine to sleep after the idle period expires. PCWorld notes that most laptops ship with this timer set to a few minutes by default. Fix the lid setting without fixing the timer, and the machine goes to sleep anyway, just on a slight delay.

Both settings need to change. Here's how.


Step 1: Prevent laptop from sleeping when lid is closed

  1. Open Settings > System > Power & Battery.
  2. Scroll down to the Power section.
  3. Find the "Closing the lid will make my PC" dropdown.
  4. Change it from Sleep to Do Nothing.
  5. Do this for both the On battery and Plugged in columns.

PCWorld specifically flags the On battery column as the one most commonly missed. Update only the plugged-in state, and battery-powered jobs still terminate at lid close.

After this step: Closing the lid turns off the screen but leaves the machine and its processes running.

If the dropdown is greyed out: Group Policy is overriding local control. Request an IT exception or move the workload to a personal device.

Settings path variation: Depending on your Windows 11 build or OEM configuration, the lid-close option may also appear at Control Panel > Hardware and Sound > Power Options > Choose what closing the lid does. If you can't locate it in Settings, try that path.


Step 2: Disable the inactivity sleep timer

  1. Stay on Settings > System > Power & Battery.
  2. Scroll up to Screen, sleep, and hibernate timeouts.
  3. Open the "Make my device sleep after" dropdown and set it to Never.
  4. Do this for both the On battery and Plugged in columns.

This removes the second trigger. PCWorld notes that most laptops default to a few minutes here, short enough to cut off most long-running background tasks even after the lid setting is corrected.

After this step: Combined with Step 1, the laptop keeps processing with the lid closed until the task finishes, the battery runs out, or you open the lid and stop it yourself.

Tradeoff to keep in mind: Setting sleep to Never means the machine draws power during idle periods too, not just during active jobs. Two practical options: reset the sleep timer to a longer interval once the task finishes, or create a separate Windows power plan for unattended runs and switch back to your standard plan afterward. Creating a custom power plan in Control Panel takes about two minutes and saves the mental overhead of remembering to reset things each time.


Step 3 (if it still sleeps): disable presence sensing

This step applies only to laptops with presence-sensing cameras. The hardware detects whether someone is nearby and locks or sleeps the machine when it decides the room is empty. PCWorld identifies this as a distinct failure mode from standard sleep behavior, and one that triggers precisely when you close the lid and walk away with a task running.

If Steps 1 and 2 are correctly configured and the machine still suspends during unattended jobs:

  1. Search for "Presence sensing" in Settings, or navigate to Settings > Privacy & Security > Presence sensing.
  2. If the feature is enabled and set to lock or sleep on absence, disable it for unattended runs.

Not every laptop has this hardware. If the option doesn't appear in Settings, skip this step entirely.


Verify before you rely on it

Test the configuration with something low-stakes before trusting it with real work. Start a large file copy or a local model run with a visible progress indicator, close the lid, walk away for a couple of minutes, then reopen and confirm the task is still running.

If it's progressing normally, the configuration is working. If it's paused or stopped, go back through Steps 1 to 3 and confirm each setting saved. Windows occasionally requires a restart before power setting changes take full effect. After a reboot, run the test again before committing to a longer job.


Where this fix still fails: heat

The software side is clean. The hardware side is less predictable.

Running an intensive job inside a closed laptop generates sustained heat. When thermal limits are reached, the laptop initiates an emergency shutdown to protect its components, and the task terminates regardless of how the sleep settings are configured. PCWorld notes this directly, with firsthand experience across several Surface devices where the problem made extended closed-lid compute unreliable.

Some practical guidance on working within those limits:

  • Plug in for any long workload. Running intensive inference on battery accelerates discharge and may trigger battery-protection throttling that slows or interrupts the job.
  • Use a hard, flat surface. Soft surfaces block bottom vents. This matters more with the lid closed, since the airflow available when the screen is open is no longer a factor.
  • Know when to leave the lid up. For short or light tasks, the closed-lid fix works reliably on most hardware. For sustained, heavy inference on a thin machine with limited cooling headroom, thermal shutdown is a real risk. If the laptop runs noticeably hot during a quick test run, leaving the lid open is the more reliable choice. Physics, not software.

The settings changes convert a software problem into a hardware question. For most people running typical background workloads, the software fix is the whole answer. For sustained heavy inference on thermally constrained hardware, the open-lid approach may turn out to be correct, just for reasons that have nothing to do with AI.


What to do next

The two core changes, lid close action set to Do Nothing and sleep timer set to Never, are all most users need. PCWorld confirms this configuration keeps the machine and its processes running with the lid closed. Presence detection (Step 3) covers a narrower edge case on newer hardware with always-on cameras.

Test once, use it with confidence for short unattended runs. For heavier workloads on a machine that already runs warm, leave the lid open. Either way, once the task finishes, reset the sleep timer to something reasonable. Leaving it on Never indefinitely means the machine stays fully powered every time you step away, which adds up on battery faster than expected.

Apple's iOS 26 and iPadOS 26 updates are packed with new features, and you can try them before almost everyone else. First, check our list of supported iPhone and iPad models, then follow our step-by-step guide to install the iOS/iPadOS 26 beta — no paid developer account required.

Sponsored

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!