Skip to content
Servey logoServey

How to use a MacBook with the lid closed and no external display

By Janesh Kapoor · · 4 min read

An old MacBook is the cheapest always-on Mac most people already own. The problem is that closing the lid puts it to sleep, and Apple's official way round that needs an external display you do not want to buy, plug in or find desk space for. Here is what is actually happening, the three ways round it ranked by how much you will regret them, and how Servey removes the problem instead of working around it.

Frequently asked questions

Can I use a MacBook with the lid closed and no external monitor?
Yes, but not with default settings, because macOS sleeps the machine when the lid closes unless it sees an external display, power and an input device. The three ways round it are a dummy HDMI plug that pretends to be a monitor, the command sudo pmset disablesleep 1 which turns off sleep entirely, or a remote tool that manages the setting for you. Servey has an opt-in closed-lid mode that asks for authorisation when the Mac goes online and restores your original power settings when it goes offline.
What does sudo pmset disablesleep 1 do?
It stops the Mac sleeping at all, for any reason, until you set it back to 0. It is not a lid-specific setting: it is a system-wide override that also disables idle sleep and persists across reboots. That is right for a machine living on a shelf and wrong for a laptop you carry, because a MacBook that cannot sleep will flatten its battery in a bag. The usual mistake is not that the command fails but that people forget they ran it.
Do I need a dummy HDMI plug?
Not for the sleep behaviour if you use pmset or a tool that manages it, but it solves a second problem worth knowing about. With no display attached at all, macOS falls back to a default resolution that is often an awkward shape, so your remote desktop arrives small or letterboxed. A headless display emulator costs very little and presents a normal display to the system, fixing both issues at once. Servey streams the Mac's screen to an iPhone or iPad directly, so no external display is needed for the lid part.
Is it bad for a MacBook to run with the lid closed all the time?
There are two real trade-offs rather than a hard no. Heat, because a closed lid partially blocks the main vent, so give the machine airflow and do not stack anything on top of it. And battery, because a cell held permanently at full charge ages faster than one that cycles. Neither is dangerous, but both argue for a Mac mini if you are actually buying a machine rather than repurposing one you already own.
Should I use a spare MacBook or buy a Mac mini for an always-on Mac?
A Mac mini is the better machine and a spare MacBook is the better deal. The mini has no lid, no battery to age and no vent to block, so none of the problems in this article arise. The argument for the laptop is that you already own it and it has a built-in uninterruptible power supply, so a brief power cut that would drop a mini does not interrupt it at all.

Servey puts your Mac in your pocket. Launching soon.