Keep a laptop awake with the lid closed

One setting on Windows, three requirements on a Mac, and one thing a jiggler will not fix.

Some links on this page are Amazon affiliate links. If you buy through them, this site earns a commission at no extra cost to you.

On Windows, change "When I close the lid" to Do nothing in Power Options. On a Mac, closed-display mode works when the laptop has an external display, power, and an external keyboard or mouse connected. The rest of this page covers the settings around those two answers, and why a mouse jiggler does not help with lid close.

Windows: change what closing the lid does

Microsoft's own instructions:

  1. Open Control Panel.
  2. Go to Hardware and Sound > Power Options.
  3. Click Choose what closing the lid does in the left sidebar.
  4. Under When I close the lid, set both On battery and Plugged in to Do nothing.
  5. Click Save changes.

The Settings app does not expose this, which is why the path still runs through Control Panel on Windows 11. Fastest route: press Windows key, type "Choose what closing the lid does," and open it directly.

Leave the battery option on Sleep if you carry the machine around and want it to sleep when you shut it in a bag. Setting both to Do nothing means a laptop closed on battery keeps running until it dies.

The Windows catch

Do nothing means exactly that. Close the lid with no external monitor attached and you get a machine that is awake, warm, and displaying on a screen you can't see. That is fine for finishing a download or a render. It is a bad default to leave in place.

Two related settings decide what happens next, and they are separate from the lid action:

If the machine keeps sleeping after a few minutes with the lid closed, the idle timeout is the cause, not the lid. Our guide to stopping Windows from sleeping covers those timers.

macOS: closed-display mode and its three requirements

Apple calls it closed-display mode, most people call it clamshell mode. It needs three things at once:

Miss any one of them and closing the lid puts the Mac to sleep. The external input device is the part people forget: without it there is no way to wake the machine once the built-in keyboard is shut away.

Some Apple silicon MacBooks will keep running closed on battery, but the behaviour varies by model, macOS version and what is plugged in, so it is not something to rely on. Keep it on power if you want it predictable.

The Mac equivalent of the Windows lid setting does not exist as a checkbox. If you want the machine awake with the lid open and the display off, that is a different job, handled by caffeinate or the built-in settings described in keeping a Mac awake without installing anything.

Waking it back up

With the lid closed, wake comes from an external keyboard or mouse. On Bluetooth peripherals this occasionally fails because the radio drops during sleep. A wired USB keyboard or a mouse with a USB receiver is the reliable version. On Windows you can also check Device Manager > Keyboards or Mice > Properties > Power Management and confirm "Allow this device to wake the computer" is ticked.

Heat, and whether you need a stand

A closed laptop under load vents through a smaller gap, and most designs pull air from the bottom and exhaust through the hinge. Lying flat on a desk this is usually fine for browsing and calls. It gets worse with sustained CPU load or on a soft surface like a bed or sofa, where the intake is blocked outright.

Standing it on edge helps airflow and clears desk space. A Nulaxy vertical laptop stand holds one or two machines upright with an adjustable slot width, which matters because a thick gaming laptop will not fit a fixed-width dock. Worth being clear on what it does: a stand changes nothing about sleep behaviour, and it will not fix a lid setting. If your laptop runs cool and your desk has room, skip it.

If the lid setting is greyed out

On a company laptop, power options are often locked by group policy or Intune, and the lid dropdown will be greyed out or reset overnight. There is no user-level workaround for that, and the answer is to ask IT rather than to fight the policy.

Worth separating two things that get confused here. A mouse jiggler does not stop lid-close sleep. Closing the lid triggers a power action directly, not an idle timeout, so simulated input has nothing to reset. Jigglers solve the adjacent problem: the machine sleeping or your status flipping while the lid is open and you're away from the desk. If that's what you actually want, the free tool on our homepage handles it, and choosing a jiggler for a home setup covers the options.

The one-cable version

If you close the lid every day and reconnect a display, power, keyboard and network each time, a dock removes four plugs. The Anker 575 13-in-1 USB-C docking station carries display output, USB ports, Ethernet, an SD reader and power delivery over a single USB-C cable, which also satisfies the Mac's power and peripheral requirements in one connection.

The trade-off is cost. A dock of this class costs many times what a cable does, and if you run one monitor and a wireless mouse, an HDMI cable plus the charger you already own does the same job for nothing. Buy a dock to cut the cable count. It makes no difference to the lid setting.

Bottom line

Try the browser tool or grab the free download