Keep Laptop On When Lid Closed Windows 11/10: Full Guide
To keep your laptop running when you close the lid in Windows 11, open the Control Panel (Win + R → powercfg.cpl) → click “Choose what closing the lid does” on the left sidebar → set “When I close the lid” to Do nothing → Save changes. But here is the counterintuitive part that explains the #1 follow-up complaint (“I set it to Do nothing and it still goes to sleep”): the lid setting only controls the moment of closing — it does not override the sleep timer, the screen lock, or the idle behavior. A laptop with “Do nothing” on lid-close can still fall asleep fifteen minutes later because the plan’s sleep timeout is a separate setting. The full “always on” configuration requires changing three things: the lid action, the sleep timeout, and the display-off timeout — and all three live in different places.
Closing the lid on a laptop is a hardware event — a small magnetic or mechanical switch tells Windows “the display panel is physically closed.” What Windows does with that event is a power-policy setting, and it applies separately for “On battery” and “Plugged in.” The reason it lives in the Control Panel rather than the modern Settings app is architectural: the lid action, the power button, and the sleep button are all part of the legacy Power Options subsystem that Windows inherited from Windows 7 and has never migrated. This is why searching “close laptop lid settings windows 11” in the Settings app returns nothing useful — the setting is in a page the Settings app doesn’t link to.
Jake’s customer this week wanted to use her laptop as a home media server — streaming movies to the living-room TV while the laptop sat closed on a shelf. She set “Do nothing” on lid-close, closed the lid, and the movie stopped ten minutes later. She came to the shop convinced the setting was broken. Jake checked: the lid action was correct. The problem was the sleep timer — Windows put the PC to sleep after fifteen minutes of “inactivity” (no keyboard, no mouse, because the lid was closed and nobody was touching it). Ethan’s diagnosis was immediate: “The lid setting controls the moment of closing. The sleep timer controls everything after. You changed one of three settings and expected all three to follow.”
What the Lid Setting Actually Controls (And What It Doesn’t)
The lid-close setting answers one question: “What should Windows do at the instant the lid physically closes?” It does not control the sleep timer (which puts the PC to sleep after a period of inactivity), the display timeout (which turns the screen off), the screen lock (which requires a password after wake), or the hibernate timer. Four separate settings, four separate locations, one common misconception:
| Setting | What it controls | Where to change it |
|---|---|---|
| Lid close action | The instant the lid closes: do nothing, sleep, hibernate, or shut down | Control Panel → Power Options → “Choose what closing the lid does” |
| Sleep timer | When Windows puts the PC to sleep after inactivity | Control Panel → Power Options → “Change plan settings” (or Settings → System → Power & battery → Screen and sleep) |
| Display timeout | When the screen turns off after inactivity (separate from sleep) | Same page as the sleep timer |
| Screen lock | Whether Windows requires a password after waking or after time away | Settings → Accounts → Sign-in options |
“So I changed the lid setting and my laptop still went to sleep — because the sleep timer was a different setting the whole time?” Jake asked.
“And the display timeout, and the lock screen,” Ethan said. “Three settings, three places, one customer complaint. The lid is the easiest one to find and the least consequential on its own. It’s the sleep timer that does the real damage to your media server, and it lives on a page most people never open.”
🙋♂️ Jake's Reality Check
"The customer’s movie stopped after ten minutes. The lid setting was Do nothing. What actually killed it?"
The straight answer. The sleep timer. She was on the Balanced power plan with the default “Put the computer to sleep after 15 minutes” (on battery). No keyboard or mouse activity meant Windows counted the session as idle. Ten minutes in, Windows put the PC to sleep. The lid setting was correct and irrelevant — the sleep timer was the killer, and it was set to the factory default.
Keep Your Laptop On When Closing the Lid (Step-by-Step)
This is the complete walkthrough for the lid action setting on Windows 11 (and Windows 10 — the path is identical):
- Press Win + R, type
powercfg.cpl, and press Enter. This opens the Power Options page in the Control Panel. (Or: right-click the battery icon in the taskbar → Power Options. Or: Control Panel → Hardware and Sound → Power Options.) - On the left sidebar, click “Choose what closing the lid does.” The page title reads “Define power buttons and turn on password protection.”
- You see four columns: “When I press the power button,” “When I press the sleep button,” and “When I close the lid” — each with separate dropdowns for “On battery” and “Plugged in.”
- Find the “When I close the lid” row. Set both dropdowns to “Do nothing” (or set only “Plugged in” to Do nothing and leave “On battery” on Sleep, if you want the laptop to stay on only when connected to the charger).
- If the dropdowns are grayed out, click the blue text at the top: “Change settings that are currently unavailable.” This unlocks the grayed options (requires admin rights).
- Scroll down and click “Save changes.” The lid setting is now active.
- Close the lid. The laptop stays running. Open the lid later and the screen wakes immediately (no password prompt unless the lock screen setting is also configured).
✅ Why set battery and plugged-in separately?
The dual dropdowns let you have different behavior for different power states. The most common setup for a media-server or docked-laptop scenario: “Plugged in” = Do nothing, “On battery” = Sleep. This keeps the laptop running when it has external power (where battery drain doesn’t matter) and still sleeps when on battery (where running with the lid closed would drain the battery for nothing). If you want it always on regardless of power, set both to Do nothing.
The Four Lid Actions Explained
The lid-close dropdown has four options, and the difference between them matters more than most guides explain:
- Do nothing — the PC stays fully running: CPU, Wi-Fi, apps, processes, everything. The internal display turns off (the hardware disconnects the panel), but the computer keeps working. On an external monitor, the display extends or mirrors to the monitor. Without an external display, the laptop runs “headless” (no visible output, but fully functional).
- Sleep — the PC enters S3 sleep (low-power state, RAM stays powered, everything else pauses). Apps are suspended, not closed. Wake is fast (seconds), but the PC is not running while asleep. This is the default on most laptops for both battery and plugged-in.
- Hibernate — the PC writes all RAM contents to disk and powers off completely. Zero battery drain while hibernating. Wake is slower (tens of seconds) because the RAM contents are read back from disk. Apps are preserved exactly where they were.
- Shut down — the PC closes all apps and powers off. No state is preserved. Everything starts fresh on the next boot. The slowest option both to enter and to leave.
The confusion between sleep and hibernate is common: sleep uses a small amount of battery power to keep RAM alive, while hibernate uses zero power but takes longer to resume. If the laptop is going to be closed for hours and you want to preserve the session, hibernate is better than sleep (no battery drain). If it’s going to be closed for minutes, sleep is better (faster wake). If you want the laptop to keep running while closed, neither works — only “Do nothing” keeps the CPU and apps active.
The Full “Always On” Configuration (Three Settings, Not One)
Setting the lid to “Do nothing” is step one of a three-setting configuration. For a laptop that stays on with the lid closed and never falls asleep, you need all three:
- Lid action → Do nothing (covered above). Control Panel → Power Options → “Choose what closing the lid does.”
- Sleep timer → Never. Control Panel → Power Options → click “Change plan settings” next to the active plan (usually “Balanced” or “High performance”) → set “Put the computer to sleep” to Never for both “On battery” and “Plugged in” → Save changes. On Windows 11, the same setting lives in Settings → System → Power & battery → Screen and sleep, but the Control Panel path works on both Windows 11 and Windows 10.
- Display timeout → short (or never). Same page as the sleep timer: set “Turn off the display after” to a short period (5 minutes is reasonable) or Never. The display turns off when the lid is closed anyway (the panel is physically disconnected), so this setting mostly matters when the lid is open but the laptop is idle. Setting it to a short period saves power without affecting the lid-closed operation.
With all three set, the laptop runs continuously with the lid closed: the lid close does nothing, the idle timer never triggers sleep, and the screen turns off after the display timeout (which is fine because the screen is disconnected anyway). This is the configuration for a media server, a download station, a docking-station workstation, or any “set it and forget it” laptop.
Running with an External Monitor (Clamshell Mode)
The most common reason to keep a laptop on with the lid closed: an external monitor. Connect a monitor via HDMI, DisplayPort, or USB-C, set the lid to “Do nothing,” close the lid, and the display moves entirely to the external monitor. The laptop becomes a desktop with the lid serving as the base.
- Connect the external monitor (HDMI/DP/USB-C) and let Windows detect it.
- Press Win + P and select “Second screen only” (or “Extend” if you want the external monitor as a second desktop). On Windows 11, you can also open the Quick Settings flyout (Win+A) and use the display-project button.
- Set the lid-close action to “Do nothing” (covered above).
- Close the lid. The display stays on the external monitor. The laptop keyboard and trackpad are still usable if you need them (or pair a Bluetooth keyboard and mouse for the full desktop experience).
- Open the lid later and the internal display comes back. The external monitor becomes the secondary or disconnects, depending on your display mode.
One thermal note: laptops are designed with the keyboard deck as part of the cooling system on some models. Running with the lid closed can restrict airflow on certain designs (particularly gaming laptops with keyboard-intake cooling). If the laptop’s fans run at full speed with the lid closed, check the manufacturer’s documentation or use a laptop stand that provides clearance. Most business-class laptops handle closed-lid operation without issue.
Stop the Screen from Locking (The Separate Problem)
A significant keyword cluster asks “how to stop my computer from locking when I close the lid.” This is a different problem from the lid-sleep issue, and the fix lives in a different place:
- The screen lock after waking from sleep: Settings → Accounts → Sign-in options → “If you’ve been away, when should Windows require you to sign in again?” Set this to “Never” (or “Every time” for maximum security). This controls whether Windows asks for a PIN/password after the PC wakes from sleep or after the display turns back on.
- The screen lock from the screensaver: Settings → Personalization → Lock screen → Screen saver → uncheck “On resume, display logon screen” (if a screensaver is set).
- Dynamic Lock: Settings → Accounts → Sign-in options → Dynamic Lock → uncheck “Allow Windows to automatically lock your device when you’re away.” Dynamic Lock uses Bluetooth proximity — when your paired phone moves out of range, Windows locks. If your phone’s Bluetooth is flaky, the laptop locks randomly.
If the laptop is asking for a PIN every time you open the lid after setting “Do nothing”: the lid action is correct, but the sign-in requirement is still set to “Every time” or the default “After 5 minutes away.” Change the sign-in requirement and the laptop wakes directly to the desktop, no password, same as a desktop PC.
The powercfg Method (Command-Line Control)
For scripted configuration, deployment, or when the Control Panel is unavailable, the powercfg command sets the lid action directly from an elevated Command Prompt:
:: Set lid close to "Do nothing" when plugged in
powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0
:: Set lid close to "Do nothing" when on battery
powercfg /setdcvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0
:: Apply the changes to the active power plan
powercfg /setactive SCHEME_CURRENT
The LIDACTION values: 0 = Do nothing, 1 = Sleep, 2 = Hibernate, 3 = Shut down. The SCHEME_CURRENT keyword targets the currently active power plan. Use setacvalueindex for the “Plugged in” setting and setdcvalueindex for “On battery.” The setactive command is required to apply the changes — without it, the values are written to the registry but the running configuration doesn’t update until the plan is re-activated.
Common Issues When Running with the Lid Closed
| Issue | Cause | The fix |
|---|---|---|
| Laptop sleeps even with “Do nothing” set | Sleep timer is putting it to sleep after inactivity (the lid setting only controls the moment of closing) | Set “Put the computer to sleep” to Never in the power plan settings |
| Laptop gets hot with lid closed | Keyboard-deck airflow is blocked on certain laptop designs | Use a stand for clearance, or check the manufacturer’s guidance on closed-lid operation |
| Laptop locks every time you open the lid | Sign-in requirement is set to “Every time” or a short timeout | Settings → Accounts → Sign-in options → “If you’ve been away” → set to Never |
| Battery drains fast when lid is closed | The laptop is fully running (CPU active, apps processing, Wi-Fi scanning) | Set “On battery” lid action to Sleep instead of Do nothing, or plug in |
| Dropdowns grayed out in Power Options | The settings require admin rights | Click “Change settings that are currently unavailable” at the top of the page |
| Setting reverts after a Windows update | Update created a new power plan or reset the active one | Re-check the setting after major updates; use powercfg to verify LIDACTION is still 0 |
And the when-nothing-works paragraph: if the lid is set to “Do nothing,” the sleep timer is set to Never, and the laptop still powers off when the lid closes, the problem is not Windows — it’s the BIOS/UEFI. Some laptop manufacturers override the operating system’s lid behavior at the firmware level, particularly on business-class machines with security policies. Check the BIOS/UEFI settings (F2/F10/Del at boot) for a “lid close” or “power behavior” option. If the BIOS has its own lid-close action set to “Power Off” or “Suspend,” no Windows setting overrides it. Our power settings guide covers the related battery and sleep behavior that interacts with this setting.
The IT Admin Corner: Deploying Lid Settings at Scale
For fleet deployments, the lid action is controlled through Group Policy or a powercfg script pushed through Intune/SCCM:
Group Policy: Power Plan Settings
Computer Configuration → Administrative Templates → System → Power Management → Button Settings. The “Select the lid switch action” policy forces the lid behavior for all targeted machines. Options: Do Nothing, Sleep, Hibernate, Shutdown. Set separately for “On Battery” and “Plugged In” if you need the distinction.
PowerShell: Remote Lid Configuration
# Configure lid action on a remote PC
Invoke-Command -ComputerName "REMOTE-PC" -ScriptBlock {
powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0
powercfg /setdcvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0
powercfg /setactive SCHEME_CURRENT
}
# Set sleep to Never as well (full always-on config)
Invoke-Command -ComputerName "REMOTE-PC" -ScriptBlock {
powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0
}
✅ The enterprise scenario, compressed
For kiosk machines, digital signage laptops, or media-room PCs: push the Group Policy lid setting (Do Nothing on Plugged In) plus the sleep-never policy through Intune or GPO. For remote workers, the Invoke-Command powercfg pattern configures the lid and sleep timer in one push. Always include powercfg /setactive — without it, the changes don’t take effect.
Frequently Asked Questions
How do I keep my laptop on when I close the lid in Windows 11?
Control Panel → Power Options → “Choose what closing the lid does” (left sidebar) → set “When I close the lid” to Do nothing → Save changes. Also set the sleep timer to Never if you want the laptop to stay on indefinitely, not just at the moment of closing.
Where is the lid close setting in Windows 11?
Control Panel → Hardware and Sound → Power Options → “Choose what closing the lid does” on the left sidebar. Or press Win+R → powercfg.cpl → same sidebar link. The setting is not in the modern Settings app — it lives in the legacy Control Panel Power Options page.
Why does my laptop still go to sleep after setting Do nothing?
The lid setting only controls the moment of closing. The sleep timer is a separate setting: Control Panel → Power Options → “Change plan settings” → set “Put the computer to sleep” to Never. Without this, Windows puts the PC to sleep after the idle timeout regardless of the lid setting.
What is the difference between Do nothing, Sleep, Hibernate, and Shut down?
Do nothing: the PC keeps running fully (apps, CPU, Wi-Fi). Sleep: the PC enters a low-power state (RAM powered, everything paused). Hibernate: RAM contents are written to disk and the PC powers off (zero drain, slower resume). Shut down: everything closes and the PC powers off (nothing preserved).
How do I stop my laptop from locking when I close the lid?
The lock is a separate setting from the lid action. Settings → Accounts → Sign-in options → “If you’ve been away, when should Windows require you to sign in again?” → set to Never. Also check Dynamic Lock (same page) and the screensaver’s “On resume, display logon screen” option.
How do I use an external monitor with the laptop lid closed?
Connect the monitor via HDMI/DisplayPort/USB-C, press Win+P and select “Second screen only” (or Extend), set the lid to Do nothing, then close the lid. The display moves entirely to the external monitor. Pair a Bluetooth keyboard and mouse for input.
Can I keep the laptop on with the lid closed on battery?
Yes — set the “On battery” lid action to Do nothing. The laptop runs fully on battery with the lid closed. Be aware that the battery drains as if the lid were open (CPU, Wi-Fi, apps all active). For battery-conscious setups, set “Plugged in” to Do nothing and “On battery” to Sleep.
How do I set the lid action via the command line?
Run from an elevated Command Prompt: powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0 (plugged in) and powercfg /setdcvalueindex SCHEME_CURRENT SUB_BUTTONS 0 (battery). Values: 0=Do nothing, 1=Sleep, 2=Hibernate, 3=Shut down. Then powercfg /setactive SCHEME_CURRENT to apply.
Is it safe to run a laptop with the lid closed?
For most laptops, yes — the hardware is designed to run closed (it would be unusable in a backpack otherwise). On gaming laptops with keyboard-intake cooling, closed-lid operation can restrict airflow. Use a stand for clearance if the fans run at full speed with the lid closed. Business laptops handle it without issue.
Why are the lid dropdowns grayed out in Power Options?
The settings require administrator rights. Click the blue text at the top of the page: “Change settings that are currently unavailable.” This unlocks the grayed dropdowns. If you’re not an admin on the PC, you need admin credentials.
How do I stop the laptop from hibernating when I close the lid?
Set the lid action to “Do nothing” instead of “Hibernate” in Control Panel → Power Options → “Choose what closing the lid does.” If the laptop still hibernates, check whether hibernation is triggered by the battery saver or a critical battery threshold rather than the lid.
Does Windows 10 have the same lid setting?
Yes — the path is identical: Control Panel → Power Options → “Choose what closing the lid does.” The same four options (Do nothing, Sleep, Hibernate, Shut down) with the same battery/plugged-in split. Windows 10 reached end of support on October 14, 2025.
Can I keep the laptop running closed and use Wake-on-LAN?
Yes, if the lid is set to Do nothing, the laptop stays running and the network stays active, so remote desktop, file sharing, and Wake-on-LAN are all available. If the laptop is asleep, Wake-on-LAN depends on the BIOS supporting it and the network adapter being configured for wake events.
How do I check the current lid setting?
Open Control Panel → Power Options → “Choose what closing the lid does” — the dropdowns show the current values. Or run: powercfg /q SCHEME_CURRENT SUB_BUTTONS LIDACTION from an elevated Command Prompt.
Why did my lid setting change back to Sleep after a Windows update?
A major Windows update can create a new power plan or reset the active one, which resets the lid action to the default (Sleep). Re-check the setting after feature updates. The powercfg /q SCHEME_CURRENT SUB_BUTTONS LIDACTION command verifies the current value.
Can the BIOS override the Windows lid setting?
Yes. Some laptop manufacturers set a lid-close behavior at the firmware level that Windows cannot override. If the lid setting is correct but the laptop still powers off when closed, check the BIOS/UEFI for a “lid close” or “power behavior” option. The BIOS setting takes precedence.
Revision note. Updated September 2026. The lid-close settings path (Control Panel → Power Options) has been unchanged since Windows 7, and Microsoft has not announced plans to migrate it to the modern Settings app. If you have been setting “Do nothing” and wondering why the laptop still sleeps, take heart: the lid is one of three settings you need, and now you know exactly where each one lives and which one was actually killing your media server.