How to keep a Mac awake when the lid is closed

LidRun Team
6 min readJun 2026

macOS sleeps the moment you shut the lid, which suspends whatever was running. There are safe ways to keep a Mac awake with the lid closed, and a few habits that meaningfully reduce the risk of running it that way.

Why closing the lid stops everything

Clamshell sleep is a deliberate macOS power-saving default. Shut the lid and, unless an external display and keyboard are driving a true clamshell desktop session, the system suspends within seconds to save battery.

When it sleeps, every active process pauses with it: the build you started, the download that was at 80 percent, the agent that was halfway through a task. Nothing is lost, but nothing moves either.

For a quick coffee run that is fine. For anything that takes real time, you come back to a machine that did nothing while you were gone, and you start the wait over.

The safe way to keep it running

Keeping a Mac awake is the easy part. Doing it without cooking the battery or the chassis is the part worth getting right.

LidRun holds an IOKit power assertion so the Mac stays awake through a lid close, then watches battery charge and thermal state for the entire session. It is not a fire-and-forget wake lock.

If charge drops past the threshold you set, or thermal pressure climbs too high, LidRun lets the Mac sleep instead of pushing the hardware. The aim is to help reduce risk, not to override the protections macOS already has.

A session timer of one, three, or eight hours gives every run a hard cap, so nothing stays awake overnight because you forgot to stop it.

When you actually need this

If you just want the screen to stay on during a presentation or a long read, a plain keep-awake tool is plenty and you do not need lid-closed mode at all.

Lid-closed wake is for the cases where you want to physically close the laptop and walk away: a long compile, a model download, an overnight data job, an agent run you do not want to babysit.

That is the gap LidRun is built for. It is worth trying when you find yourself leaving the lid propped open just so a job will not die, especially if the Mac is on battery or somewhere warm while it works.

Habits that help

Run the Mac on a hard, flat surface with airflow underneath. A closed lid traps some heat already, and a bed, couch, or closed bag makes that worse.

Stay plugged in for long jobs. Lid-closed work on battery is fine for short runs, but mains power removes the drain question entirely.

Leave the battery auto-sleep threshold on even when plugged in, so an unexpected power cut ends the session cleanly instead of running the cell flat.

Try it instead of fighting clamshell sleep

LidRun keeps your work running with the lid closed, with battery and thermal safety built in.

Download for macOS

Frequently asked

Will keeping the lid closed damage my Mac?

LidRun uses battery and thermal thresholds to help reduce risk, but placement and airflow are still your responsibility. Run it on a flat, ventilated surface and avoid soft furniture or a closed bag.

Does this work on Apple Silicon and Intel?

Yes. LidRun supports macOS 13 Ventura and later on both Apple Silicon and Intel Macs.

What happens when the battery gets low?

When charge drops past the threshold you set, LidRun lets the Mac sleep rather than draining it to zero. You also get a warning before that point.

Do I need an external display for clamshell mode?

No. The usual macOS clamshell trick needs external power, a display, and an input device. LidRun holds the Mac awake with the lid closed without any of that.

How to Keep a Mac Awake When the Lid Is Closed