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.
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.
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:
- Power, keyboard and mouse. If your external display is dark or low resolution (published April 6, 2026): "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."
- Approve the accessories on Apple silicon. Allow USB and other accessories to connect to your Mac (published April 30, 2026): "First you need to allow an external display, a mouse, and a keyboard to connect to your Mac laptop. Then you can use your Mac with the lid closed". Do this once with the lid open.
- A wired display. Apple's pages describe the closed-lid setup for a connected display. I found no Apple page that describes it for AirPlay.
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
| Option | On battery | What it needs | Cost | Better choice when |
|---|---|---|---|---|
| Apple's closed-lid setup | No, Apple documents it on power | HDMI or USB-C cable, charger, external keyboard and mouse; on Apple silicon, approved once | Free | The TV or projector is near an outlet and you have a keyboard and mouse. This is the setup Apple supports |
| Keep the lid open | Yes | Nothing. Turn the built-in screen's brightness down | Free | You can live with the open lid. Works on battery, over a cable or AirPlay |
| Play from the TV itself | The Mac is not involved | A smart TV app, a streaming box, or AirPlay from your iPhone | Free | You only want a streaming service on the big screen. The Mac can stay closed and asleep |
| Clamshell for Mac | Yes, on HDMI or AirPlay | An Apple Silicon MacBook on macOS 14 or later. No keyboard, mouse or admin password | $9.99 once after a 7-day free trial | The 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.
Keep the TV on with the lid closed, using Clamshell for Mac
- 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. - 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.
- 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.
- Start the movie or the slides, then close the lid. The TV keeps the picture. The charger can stay in the other room.
- 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
- AirPlay ends, or the cable comes out, while the lid is closed. Clamshell turns the Mac's displays off, so the built-in screen does not light up behind the lid. It stays armed, so the Mac keeps running until you turn Clamshell off or the battery reaches 20%.
- A desk monitor without the charger. Same answer: Apple documents its closed setup only on power, and an armed Clamshell keeps the picture on battery. Clamshell mode on battery covers the desk case.
- An iPad with Sidecar. It does not work. macOS ends Sidecar when the lid closes and the iPad would be the only screen; Clamshell then turns the Mac's displays off.
- An Intel MacBook. Clamshell runs only on Apple Silicon MacBooks with macOS 14 or later. Use Apple's setup on power, or keep the lid open.
Battery, heat and the limits
- Battery. Playing video with the lid closed still uses the battery. Disarm on low battery, on by default in Settings, General, disarms Clamshell when the battery reaches 20% on battery power. The Mac then sleeps and the TV goes black. The optional Battery Budget module lets a closed session use only the battery you allow, then lets the Mac sleep.
- Heat. A closed MacBook playing video makes heat. Put it on a table, not on a sofa cushion or a bed. Thermal safety is always on: if macOS reports serious or critical thermal pressure, Clamshell disarms and the Mac goes back to normal lid sleep, so the TV goes black.
- Not a bag mode. Turn Clamshell off before you pack the Mac away. An armed Mac in a bag stays awake.
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
- MacBook clamshell mode sleeps when unplugged? Does it need power?
- Play music with the MacBook lid closed
- Can a MacBook run with the lid closed on battery?
- Is it safe to run a MacBook with the lid closed?
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.