Close a MacBook lid with a TV or projector connected

By Matyas Rathonyi. Published November 17, 2026. Guides

Not on battery, not on its own. A closed MacBook keeps a TV or projector on only in Apple's closed-lid setup, which Apple documents with the Mac connected to power and "using an external keyboard and mouse". Unplug it and close the lid, and the Mac goes to sleep and the TV goes black. Apple documents no closed-lid setup for AirPlay at all. Clamshell for Mac keeps the closed Mac awake, on battery too, and the TV keeps the picture.

Cable, charger, keyboardApple's setup works, free
Closed on batteryMac sleeps, TV goes black
Lid openWorks anywhere, free
ClamshellLid closed, picture stays

The usual setup: a movie or a game on the TV, the MacBook on the coffee table, the charger in the other room, and the bright open lid in the way. Or slides on a projector, where the open screen faces the room. You close the lid and the picture is gone. This guide is written by Matyas Rathonyi, who makes Clamshell for Mac, one of the options below; the free routes come first. Apple's wording is quoted from its support pages as they read on November 17, 2026.

I tested Clamshell on an Apple Silicon MacBook running on battery, armed, with the lid closed, in three setups: a TV or monitor on HDMI mirroring the screen, a monitor extending the desktop, and AirPlay to a TV. The picture stayed on in all three.

Two closed MacBooks, each connected to a TV. On the left the Mac is on its charger and the TV shows the picture. On the right the charger cable is cut, the Mac sleeps and the TV is dark. Charger in Charger out z z
Apple's closed setup is a desk setup.A closed MacBook drives a TV in Apple's setup only on power with an external keyboard and mouse. Pull the charger and the Mac sleeps, so the TV loses the picture.

What Apple's setup needs

A TV or projector on an HDMI or USB-C cable is an external display to macOS, so the rules for a closed MacBook with a monitor apply. Apple's current pages give three conditions:

So the two cases people hit most, the charger across the room and a TV over AirPlay, are outside what Apple documents. When the Mac sleeps, it stops sending a picture, and the TV goes black.

Free ways to keep the picture

OptionOn batteryWhat it needsCostBetter choice when
Apple's closed-lid setupNo, Apple documents it on powerHDMI or USB-C cable, charger, external keyboard and mouse; on Apple silicon, approved onceFreeThe TV or projector is near an outlet and you have a keyboard and mouse. This is the setup Apple supports
Keep the lid openYesNothing. Turn the built-in screen's brightness downFreeYou can live with the open lid. Works on battery, over a cable or AirPlay
Play from the TV itselfThe Mac is not involvedA smart TV app, a streaming box, or AirPlay from your iPhoneFreeYou only want a streaming service on the big screen. The Mac can stay closed and asleep
Clamshell for MacYes, on HDMI or AirPlayAn Apple Silicon MacBook on macOS 14 or later. No keyboard, mouse or admin password$9.99 once after a 7-day free trialThe thing on the TV runs on the Mac (a downloaded movie, a game, slides, a browser tab) and you want the lid shut on battery

The Terminal command sudo pmset -a disablesleep 1 keeps a Mac awake on battery too, but it needs an admin password, blocks all sleep until you run it with 0, and Apple does not document what a closed lid with a TV does with it. What pmset disablesleep does covers it.

Four rows, a MacBook with a TV. Apple's setup with the charger, keyboard and mouse keeps the picture. Closed on battery, the picture stops. With the lid open it keeps going. With Clamshell armed, the picture stays until 20 percent battery. Charger, keyboard, mouse Closed on battery Mac sleeps, TV goes black Lid open, anywhere Clamshell armed, battery until 20% battery by default
Only one row stops. A closed MacBook outside Apple's setup sleeps. Keep the lid open, plug in with a keyboard and mouse, or arm Clamshell.

Keep the TV on with the lid closed, using Clamshell for Mac

  1. Install it and open it. Download the free trial, or run brew install --cask clamshell, then open Clamshell once. It runs in the menu bar.
  2. Connect the TV. Plug in the HDMI or USB-C cable, or open Control Center, click Screen Mirroring and choose the TV. Mirroring is easiest for a movie or slides: the TV shows what you start on the Mac. To set it on a cable, open System Settings, click Displays, click the TV, and use the "Use as" menu. An extended screen also kept its picture in my test.
  3. Arm Clamshell. Right-click the menu bar icon. That arms it until you turn it off, so you can open and close the lid during the evening. The icon changes color while armed.
  4. Start the movie or the slides, then close the lid. The TV keeps the picture. The charger can stay in the other room.
  5. When you are done, turn Clamshell off. Use the menu bar icon, or quit the app, and normal lid sleep returns. If the TV mirrored your screen, Clamshell locks the Mac when you open the lid, so the TV shows the lock screen until you unlock.

With the lid closed you have no keyboard or trackpad, so pause and volume need a Bluetooth keyboard or mouse, or opening the lid. If the Quiet Close module is on, closing the lid mutes the Mac; leave it off for a movie.

What happens in the other cases

Battery, heat and the limits

Clamshell keeps your Mac awake with the lid closed, on battery or power, and the TV or projector keeps the picture. Free for 7 days, then $9.99 once for one Mac. 14-day money-back guarantee.

Apple Silicon, macOS 14+. Notarized by Apple. Or install with Homebrew: brew install --cask clamshell. Also on Setapp.

Frequently asked questions

Can I connect my MacBook to a TV and close the lid?

Yes, with a cable, on power, with an external keyboard and mouse: that is Apple's closed-lid setup, and it is free. Without the charger, the Mac goes to sleep when you close it, and Apple documents no closed-lid setup for AirPlay. Clamshell for Mac keeps the closed Mac awake on battery too, and the TV keeps the picture.

Why does my TV go black when I close my MacBook on battery?

Apple documents the closed-lid setup with an external display only while the Mac is connected to power and using an external keyboard and mouse. Outside that setup, closing the lid puts the Mac to sleep, and a sleeping Mac sends no picture. Plug it in with a keyboard and mouse, keep the lid open, or use an app that keeps a closed Mac awake.

Will AirPlay keep working with the MacBook lid closed?

Not on its own: Apple documents no closed-lid setup for AirPlay. With Clamshell for Mac armed, AirPlay to a TV kept the picture with the lid closed on battery when I tested it.

Do I need an external keyboard and mouse?

For Apple's own closed-lid setup, yes: Apple's support article lists power, an external keyboard and an external mouse. Clamshell for Mac does not need them to keep the Mac awake, but with the lid closed you need a Bluetooth keyboard or mouse, or to open the lid, to pause or change what plays.

What happens when I open the lid?

If the TV mirrored your screen, Clamshell locks the Mac when you open the lid, so the TV shows the lock screen until you unlock. If you armed with a right-click, Clamshell stays armed until you turn it off.

Can I use an iPad as the screen with the lid closed?

No. macOS ends Sidecar when the lid closes and the iPad would be the only screen. Clamshell then turns the Mac's displays off.

Does this work on an Intel MacBook?

Apple's support article describes its closed-lid setup for Mac laptops in general. Clamshell for Mac runs only on Apple Silicon MacBooks with macOS 14 or later, so on an Intel MacBook use the free routes on this page.

Related guides

Sources checked November 17, 2026: Apple Support articles 102501 and 102282, and the Mac User Guide page Extend or mirror your Mac desktop across multiple displays. Clamshell behavior is described from its release notes and a test on an Apple Silicon MacBook on battery in November 2026. AirPlay and Sidecar are trademarks of Apple Inc. Clamshell is an independent app, not affiliated with or endorsed by Apple.