Make Mac Better
Download
← Make Mac Better

Guides

How to keep a Mac awake with the lid closed

A MacBook normally sleeps when its lid closes. A keep-awake session for idle system sleep does not automatically change that. First distinguish Apple’s external-display setup from a helper-based lid-closed mode, and check screen and locking behavior separately.

Step by step

  1. Clamshell mode (Apple’s official way)

    Connect the charger, an external display and a keyboard and mouse. With those connected, you can close the lid and keep working on the external display. It does not help if you just want the Mac to keep working in your bag.

  2. The caffeinate command

    In Terminal, “caffeinate -i” stops the Mac from sleeping while it is running (Ctrl+C to stop). It is built in and free, but on its own it does not keep a MacBook awake once you close the lid.

  3. Amphetamine

    A free Mac App Store app with many options, including keeping the Mac awake with the lid closed. On some Macs that needs an extra step that the app explains.

  4. Make Mac Better: verify the mode first

    For ordinary idle sleep, start a timed Awake session. Lid-closed mode requires approval of a privileged helper in System Settings and the app’s ready state before closing the lid. It is limited to 4 hours. Physical acceptance on the affected MacBook remains pending; do not assume a ready indicator proves your workload survives closing the lid.

System sleep, display sleep and locking

Normal mode prevents idle system sleep. Separate display and screen-saver protection is on by default when no saved preference exists. The idle-lock option requests periodic activity when enabled; lid-closed mode respects your display and screen-saver choices. Manual locking, password settings and managed policies are not overridden. Not every idle-lock policy is guaranteed to be prevented.

Time, battery and thermal limits

Use a ventilated surface, never a closed bag. The helper caps lid-closed sessions at 4 hours, restores sleep when a session ends, and stops for serious/critical thermal state. External power is required unless battery use is explicitly allowed; the low-battery threshold defaults to 20% and is configurable. Physical verification of these safeguards on the affected MacBook is still pending.

Version 1.0.12 and evidence limits

The public Sparkle update fixes a crash when starting lid-closed mode, improves cancellation and stopping or restarting a session, and shows display and screen-saver choices. Eleven targeted local checks passed. Notarization and a published update do not replace physical tests of a closed lid, privileged helper recovery, screen saver or idle locking.

Before leaving an AI agent or download unattended

First run a short, non-critical task with the intended mode, power source and peripherals. Confirm that it continues and that normal sleep returns when you stop the session. A keep-awake session does not guarantee network access, agent completion or an unlocked remote session.

Get Make Mac BetterSee the feature →