Screen and display
Keep Your Laptop On When Closed: Windows 11 and Mac
November 27, 2026

To keep a laptop on when closed, you have to change what the lid does, and that works differently on Windows and Mac. On Windows 11, set the lid action to Do nothing. A Mac has no such setting: it stays on with the lid shut only while an external display, a keyboard and a mouse are connected. Either way, the screen and sleep timers keep running, so your monitor can still go dark.
Quick answer
- Windows 11: open Control Panel > Hardware and Sound > Power Options > Choose what closing the lid does, then set When I close the lid to Do nothing. Do it for Plugged in; think twice before doing it for On battery.
- Mac: connect an external display, a keyboard and a mouse or trackpad, then close the lid. With no display connected, a closed MacBook sleeps.
- The monitor still turns off? That's the screen timeout, not the lid. Raise it, or keep the display awake for one session with Keep Screen Awake.
- No app or website can do this for you. The lid is handled by the system, below the browser.
Windows 11: change what closing the lid does
Microsoft says that on a lot of PCs, laptops especially, the PC goes to sleep when you close the lid. The lid action has four possible values: Do nothing, Sleep, Hibernate and Shut down. You want the first one.
- Open Control Panel. The quickest way is to press Start and type "control panel".
- Select Hardware and Sound, then Power Options.
- In the left column, select Choose what closing the lid does.
- Next to When I close the lid, choose Do nothing in the Plugged in column.
- Select Save changes.
Recent versions of Windows 11 show the same choice in the Settings app too. Go to Settings > System > Power & battery and open Lid, power & sleep button controls (some PCs call it Lid & power button controls). The menu is named Closing the lid will make my PC, and it has separate choices for plugged in and on battery. If you don't see that section, use Control Panel, which works on every version.
On a work laptop, the option may be missing or greyed out because your organization sets it. That's a question for your IT team.
Leave the battery setting alone
The On battery column is the risky one. A laptop set to do nothing on battery keeps running after you close it and slide it into a bag, where it can get hot and run the battery down. Unless you have a specific reason, leave On battery on Sleep or Hibernate and change only Plugged in. Microsoft describes Hibernate as using less power than Sleep and as designed for laptops, so it's a sensible choice for the battery column.
The two timers that still apply
Setting the lid to do nothing only tells Windows to ignore the lid. Two other timers carry on as before, and they explain most "it still turned off" complaints.
- Turn my screen off after. This turns off your external monitor after a few minutes with no input, lid open or closed. Reading or watching a dashboard doesn't count as input.
- Make my device sleep after. This puts the whole PC to sleep after its own idle time. If a download or export dies halfway with the lid closed, this timer is usually why.
Both are in Settings > System > Power & battery > Screen, sleep, & hibernate timeouts. Microsoft has shortened the defaults on recent versions, to as little as 3 minutes on battery and 5 minutes plugged in, so a docked laptop can go dark quickly. The full steps are in keep your screen on in Windows 11.
Mac: connect a display, keyboard and mouse
A MacBook works the other way round. Apple lists closing the display as one of the ways to put a Mac laptop to sleep, and its sleep settings don't include a lid option. What keeps a closed Mac running is what's plugged into it.
- Connect an external display. Plug the display into power first if it needs it.
- Connect a keyboard and a mouse or trackpad.
- When the desktop appears on the external display, close the lid.
Apple's guide says that with an external display and accessories like a keyboard and mouse connected, you can keep working even when the lid is closed. People often call this clamshell mode. Some setups also need power: for two external displays on a MacBook Air or MacBook Pro with the M3 chip, Apple says the Mac must be connected to power with the lid closed.
If you don't have a monitor and only want a long job to finish, don't close the lid. Leave it open and let the display turn off by itself. In System Settings > Battery > Options, turn on Prevent automatic sleeping on power adapter when the display is off so the Mac keeps working while plugged in. For a one-off session, the caffeinate command does a similar job from Terminal.
Where a browser tool helps, and where it can't
A website can't keep a closed laptop on. WakeMode's Keep Screen Awake uses the browser's Screen Wake Lock, which keeps a display from dimming or turning off while the page is open and visible. It doesn't change the lid action, and it doesn't stop the computer from sleeping for other reasons. If closing the lid puts your laptop to sleep, the page sleeps with it.
It does help with the second half of the problem. Once the laptop is docked and running with the lid closed, the external monitor still follows the screen timeout. If you'd rather not change that setting for good:
- Open wakemode.net on the external monitor.
- Choose a preset, such as 1h or 2h, or set a custom time of up to 24 hours.
- Select Start, and keep the tab visible.
When the time is up or you close the tab, your normal timeout is back. Nothing is installed and no setting changes.
One more case: if you were closing the lid only to make the screen dark, say in a bedroom or while audio plays, you don't need to close it at all. Open a fullscreen black screen instead. The screen stays on but shows only black, and the laptop keeps running with the lid open.
Before you leave it closed
- Give it air. A running laptop makes heat whether the lid is open or not. Keep it on a hard, flat surface, not in a bag or on a bed. Apple's advice for Mac laptops is to use a stable work surface that allows for good ventilation.
- Check it's really running. Close the lid and look at the external monitor. If it goes dark and stays dark, the lid setting didn't save, or you changed the wrong column.
- Remember you changed it. A laptop that no longer sleeps when you shut it is easy to forget about. If you only needed it for one evening, switch the setting back.
Which setup to use
| What you want | What to do | Limit |
|---|---|---|
| Use a monitor with the Windows laptop closed | Lid action: Do nothing when plugged in | Screen and sleep timers still apply |
| Use a monitor with the MacBook closed | Connect display, keyboard and mouse, then close the lid | Needs the display and accessories connected |
| Let a long job finish | Leave the lid open and let the screen turn off; raise or disable the sleep timer | Uses more power |
| Keep the external monitor on for one meeting | Keep Screen Awake in a visible tab | Only while the tab is open and visible |
| A dark screen without sleep | Fullscreen black screen, lid open | The screen is on, just black |
Common questions
Does the setting work the same on HP, Dell and Lenovo laptops?
Yes. The lid action is a Windows setting, so the steps are the same whatever the brand. The exception is a laptop managed by an employer or school, where the option can be locked.
Can I keep music or a download going with the laptop closed?
On Windows, yes, once the lid action is Do nothing. Check Make my device sleep after too, so the idle timer doesn't cut it off. On a Mac, not without an external display connected: closing the lid puts it to sleep.
Why did my monitor go black when I closed the lid?
Either the laptop went to sleep, which means the lid action is still Sleep for the power source you're on, or the screen timeout ran out. Why does my screen keep turning off? helps you tell the two apart. For other devices, see the complete guide to keeping your screen awake.

