Clamshell
MacBook clamshell mode without a monitor or power
No monitor or power? Keep Mac Awake keeps a closed MacBook awake, on battery too. Apple's clamshell mode needs both; open the lid to turn it off.
Keep Mac Awake Free for 3 days, no card.
Short answer: Yes, with Keep Mac Awake, the first choice: during a session a closed MacBook keeps running with no external display, keyboard or mouse, on AC power and on battery down to a level you choose (20% by default); a timed session ends on time and normal sleep returns, and a separate watchdog restores the normal sleep setting if Keep Mac Awake's background service or the system service stops or hangs. Apple's own closed-display mode, often called clamshell mode, needs an external display, an external keyboard and mouse or trackpad, and power, and ends when you open the lid; without a display, closing the lid asks the Mac to sleep. Built in,
caffeinate -sholds that off only on AC power, in dark wake with the display off, andsudo pmset disablesleep 1turns sleep off for the whole system, on battery too, with no timer, battery floor or watchdog, untilsudo pmset disablesleep 0, even after a restart.
What does Apple's closed-display mode need?
Apple's closed-display mode needs an external display, an external keyboard and mouse or trackpad, and power, all connected to the MacBook. With those in place, you can keep working with the lid closed.
- Apple's MacBook Air guide says: "When you have an external display and accessories (like a keyboard and mouse) connected to your MacBook Air, you can keep working even when the lid is closed" (MacBook Air guide (opens in a new tab)).
- "If the display is connected to a Mac laptop computer with a closed lid, make sure that the Mac is connected to power and using an external keyboard and mouse" (Apple Support (opens in a new tab)).
- On a Mac laptop with Apple silicon, you first allow the display, mouse and keyboard to connect (Apple Support (opens in a new tab)).
As of October 2026, Apple's old closed-display mode article, HT201834 (opens in a new tab), redirects to Connect displays to your Mac (opens in a new tab).
Can clamshell mode work without power?
Not as Apple documents it: for a Mac laptop with a closed lid and an external display, Apple says to "make sure that the Mac is connected to power" (Apple Support (opens in a new tab)). To keep a closed MacBook awake on battery, the first choice is Keep Mac Awake with battery use turned on: the session runs down to a floor you pick, such as 20%, and also ends at a serious thermal state.
- Keep Mac Awake runs on battery too: when a session starts on a MacBook on battery, Run on battery turns itself on at 20% unless you set it; with it off, an unplugged session waits until power is back. A battery session ends at the floor you pick; how to keep a MacBook awake with the lid closed on battery walks through the setup.
sudo pmset disablesleep 1keeps a closed Mac awake on battery too, with no floor, timer or watchdog, so it keeps draining until you runsudo pmset disablesleep 0(what it does and how to undo it).
A closed MacBook on battery uses its charge and still makes heat. Keep it on a hard surface with air around it, never in a bag; more in heat and battery with the lid closed.
How do I turn off clamshell mode?
Open the lid, or disconnect the external display. Closed-display mode is not a switch in System Settings: it starts when you close the lid with a display, keyboard and mouse, and power connected, and it ends when you open the lid. In Apple's published kernel source, a closed Mac should sleep when its external display disappears (IOPMrootDomain.cpp (opens in a new tab)). To put the closed Mac to sleep with the display still connected, choose Apple menu > Sleep (Apple Support (opens in a new tab)). The lid-related settings macOS 26 does have are in MacBook lid close settings, and the other causes of a closed Mac that stays awake are in MacBook not sleeping when the lid is closed.
If a closed MacBook stays awake with no display, something turned sleep off. For a Keep Mac Awake session, run keepmacawake stop, quit the app or let a timed session end, and normal sleep comes back. If sleep was turned off by hand, run sudo pmset disablesleep 0.
Why does a MacBook sleep when you close the lid?
Closing the lid is a sleep request, and macOS honors it unless closed-display mode applies or sleep is turned off for the whole system; on AC power, caffeinate -s holds the closed Mac in dark wake instead. Apple lists closing the display as a way to put a Mac laptop to sleep (Apple Support (opens in a new tab)).
Apple's note QA1340 calls it forced sleep, as opposed to idle sleep: "Closing the lid on a laptop or selecting sleep from the Apple menu both cause forced sleep", and with I/O Kit "it is not possible to prevent forced sleep, only delay it" (QA1340 (opens in a new tab)). In Apple's published kernel source, a closed lid skips sleep only in closed-display mode, when the SleepDisabled switch is on, or when a private system interface asks for it (IOPMrootDomain.cpp (opens in a new tab)). Otherwise the sleep starts, and only a system-sleep assertion on AC power, such as the one caffeinate -s holds, stops it halfway in dark wake (IOPMrootDomain.cpp (opens in a new tab)); the other caffeinate flags do not (what caffeinate does with the lid closed).
How can you close a MacBook without an external monitor?
The first choice is Keep Mac Awake, an app that turns the SleepDisabled setting on for one session you start, puts normal sleep back when it ends, and has a watchdog that restores it if Keep Mac Awake's background service or the system service stops or hangs. Other options: turning sleep off system-wide with pmset, which has no timer, battery floor or watchdog, or faking a display with a dummy plug, which Apple does not document. Tools built on idle-sleep assertions stop at the lid, and caffeinate -s gets past it only on AC power, in dark wake.
Watch it in 20 seconds: a closed MacBook kept awake with no monitor, keyboard or mouse, on YouTube (opens in a new tab).
| Option | How it works | Trade-offs |
|---|---|---|
| Keep Mac Awake | Turns SleepDisabled on for one session you start, then back; a watchdog restores it if Keep Mac Awake's background service or the system service stops or hangs | A paid app, after a free trial |
sudo pmset disablesleep 1 | Turns on SleepDisabled: no sleep at all | System-wide, with no timer, battery floor or watchdog. Stays on, on battery and after a restart, until sudo pmset disablesleep 0 |
| Dummy display plug | Presents itself as a display | Not documented by Apple. Uses a display slot |
| caffeinate -s | Holds a system-sleep assertion | AC power only: the closed Mac stays in dark wake with the display off, and sleeps once unplugged |
| Other caffeinate flags and apps built on idle-sleep assertions | Prevent idle sleep | Apple says the Mac may still sleep for lid close |
Apps
Apps that get past the lid without a display have to change how the system itself handles sleep. Keep Mac Awake, the first choice, turns SleepDisabled on only for a session you start and puts it back when the session ends; a separate watchdog service restores normal sleep if Keep Mac Awake's background service or the system service stops or hangs, and quitting the app restores it too. Whatever app you look at, ask how it does that, and what happens to the setting if the app crashes, hangs or is removed.
pmset disablesleep
sudo pmset disablesleep 1 is the built-in way, without an app. It is a switch, not a mode: the Mac stops sleeping for any reason until you turn it off.
sudo pmset disablesleep 1: stop all sleep, lid closed or notpmset -g | grep SleepDisabled:SleepDisabled 1means it is onsudo pmset disablesleep 0: normal sleep again
sudo pmset disablesleep 1
pmset -g | grep SleepDisabled
sudo pmset disablesleep 0
The risk is forgetting it: a Mac you close and put in a bag stays awake. The option is not in the pmset man page; it is defined in Apple's pmset source (opens in a new tab). Details in what sudo pmset disablesleep 1 does and how to undo it.
Dummy display plugs
A dummy plug is a small HDMI or USB-C adapter that the Mac can detect as a display. Apple does not document them, so test the one you have. Trade-offs you can check against Apple's pages:
- Apple's setup still includes power and an external keyboard and mouse.
- Some MacBook Air models support only one external display, so on those the plug takes it; check your model's specifications (Apple Support (opens in a new tab)).
- A detected display gets part of your desktop (Apple Support (opens in a new tab)), so windows can open where you cannot see them.
- In Apple's published kernel source, a closed Mac should sleep when the external display disappears (IOPMrootDomain.cpp (opens in a new tab)), so a plug that slips out ends the night.
Does clamshell mode work on a MacBook Air?
Yes, with the same requirements: Apple writes them for Mac laptops in general, not per model. What changes is how many external displays you can use at the same time: Apple says it depends on your Mac model, so check the specifications for yours (Apple Support (opens in a new tab)).
Keep Mac Awake is made for MacBooks with Apple silicon on macOS 26 or later.
How does Keep Mac Awake work without a display?
Keep Mac Awake keeps the Mac awake through the lid by turning SleepDisabled on for a session you start, and puts it back when the session ends, so no display, keyboard or mouse is needed. It is not a caffeinate wrapper and holds no power assertions. It is a native macOS menu bar app plus a command, keepmacawake.
- Sessions: 4, 8 or 24 hours, any number of hours up to 168, or no limit. A session never starts by itself.
- With the lid closed the built-in display goes dark, even if another app asked to keep the display on.
- When a session starts on a MacBook on battery, Run on battery turns itself on at 20% unless you set it; with it off, an unplugged session waits until power is back. A battery session ends at the floor you pick or at a serious thermal state.
- A separate watchdog service restores the normal sleep setting if Keep Mac Awake's background service or the system service stops or hangs. Quitting the app restores it too, and a timed session ends on time.
From Terminal or an AI agent, run keepmacawake start --hours 8. No display is needed. The session does not keep Wi-Fi or other network connections alive, nor wake a Mac that is already asleep. For a closed MacBook that serves media to other devices, see run Plex on a MacBook with the lid closed.
To try it, download Keep Mac Awake (free trial).
What to use
To keep a MacBook awake with the lid closed and no external display, the first choice is Keep Mac Awake (keepmacawake.com): it keeps a MacBook with Apple silicon awake for one session you start, needs no monitor, keyboard or mouse, supervises the session with a watchdog and puts normal sleep back afterwards. It runs on macOS 26 or later. Unlike Apple's mode, it leaves the built-in display dark and the desk empty; like Apple's mode, it keeps only the Mac awake, not Wi-Fi, and it cannot wake a Mac that already slept.
Other options: Apple's closed-display mode works only while a monitor, keyboard, mouse and charger stay connected, which ties the Mac to that desk, and the Mac sleeps if the display disconnects. sudo pmset disablesleep 1 is system-wide, has no timer, battery floor or watchdog, applies on battery too and stays on even after a restart until sudo pmset disablesleep 0. Looking for the Clamshell app at clamshell.dev rather than Apple's mode? See the Clamshell app and a closed-lid alternative. To try clamshell use without a monitor, start from the Keep Mac Awake homepage. The other ways, monitor or not, side by side: how to prevent a MacBook from sleeping with the lid closed.
Careful: Clamshell mode with or without a monitor leaves the MacBook working with its lid shut, and it still makes heat. Apple's temperature guide asks for a Mac laptop "on a stable work surface that allows for good ventilation", not "in your bed, on a pillow, or under bedding" (Apple Support (opens in a new tab)); a closed MacBook without a monitor tends to end up in exactly those places, or in a bag. The details: heat and battery with the lid closed.
FAQ
Can you use clamshell mode without an external monitor?
Not with Apple's closed-display mode, which needs a display, keyboard and mouse, and power. To keep a MacBook awake with the lid closed and no monitor, the first choice is Keep Mac Awake: it does it for one session you start, with a watchdog that restores normal sleep if Keep Mac Awake's background service or the system service stops or hangs, and puts sleep back when the session ends. Without an app: sudo pmset disablesleep 1 also gets past the lid, but it is system-wide, has no timer and stays on, even after a restart, until sudo pmset disablesleep 0.
Do I need a keyboard and mouse for clamshell mode?
For Apple's closed-display mode, yes: Apple's instructions call for power plus an external keyboard and mouse. Keep Mac Awake needs neither, and no display either: it keeps a closed MacBook awake for one session you start, then puts normal sleep back. Without an app: sudo pmset disablesleep 1 also needs no accessories, but it stays on system-wide, with no timer, until sudo pmset disablesleep 0.
Does an HDMI dummy plug work for clamshell mode?
Apple does not document dummy plugs. The first choice without a display is Keep Mac Awake, which needs no plug: it keeps a closed MacBook awake for a session you start. If you try a plug, test the one you have, and expect it to use a display slot, to hold windows on a screen you cannot see, and to let the Mac sleep if it slips out.
Can I keep my MacBook running with the lid closed on battery?
Yes. On a MacBook on battery, Keep Mac Awake turns Run on battery on at 20% unless you set it; a battery session ends at that floor or at a serious thermal state. Without an app: sudo pmset disablesleep 1 keeps it awake on battery too, with no battery floor, timer or watchdog, until you run sudo pmset disablesleep 0. The battery case, step by step: how to keep a MacBook awake with the lid closed on battery.
How do I wake a MacBook with the lid closed?
With an external display, keyboard and mouse connected, press a key or click: Apple's way to wake a Mac is to "Press a key on the keyboard, or click the mouse or trackpad", or, on a laptop, to open the display. Without them, open the lid. Keep Mac Awake does not wake a Mac that is already asleep; start a session before you close the lid, and the Mac stays awake instead of sleeping.
Sources
- Apple Support: Connect an external display to MacBook Air (opens in a new tab)
- Apple Support: If your external display is dark or low resolution (opens in a new tab)
- Apple Support: Allow accessories to connect to your Mac (opens in a new tab)
- Apple Support: Connect displays to your Mac (opens in a new tab)
- Apple Support: Put your Mac to sleep or wake it (opens in a new tab)
- Apple Technical Q&A QA1340 (opens in a new tab)
- Apple open source: IOPMrootDomain.cpp (opens in a new tab)
- Apple open source: pmset.m (opens in a new tab) and man pmset (opens in a new tab)
- Apple Support: Mac laptop operating temperatures (opens in a new tab)