Disconnect your MacBook's built-in display without closing the lid.
Keep Touch ID, camera, keyboard, and microphone available while macOS behaves as if only the external display exists.
Website · Download · Menu Bar App · Automatic Switching · How It Works · CLI
Note
Clamless targets Apple Silicon MacBooks on macOS 13 or newer. Current public builds are ad-hoc signed but not Apple-notarized yet, so first launch may require right-clicking the app and choosing Open.
macOS gives you clamshell mode, brightness controls, and display arrangement settings, but none of those are the same as keeping a MacBook open while removing the built-in screen from the desktop layout.
Clamless is for desk setups where you want the MacBook open for Touch ID, camera, keyboard, microphone, or cooling, while the system behaves like the external monitor is the only usable display.
clamless-display off combines three actions:
- Clears any display mirroring state that could keep macOS in a mirroring/sharing mode.
- Removes the built-in display from the active macOS screen arrangement.
- Requests the built-in Apple Silicon panel framebuffer to enter a low-power/off state.
The practical result is:
- the external display remains active;
- the built-in display is removed from the cursor/window layout;
- the cursor cannot move into the built-in display;
- the built-in panel is requested to turn off.
This is close to the practical behavior of Lunar BlackOut / BetterDisplay built-in display disconnect.
Clamless succeeds by combining two different macOS display layers:
- WindowServer/SkyLight layout control. The helper loads the private
SkyLight.frameworksymbolsSLSGetDisplayListandSLSConfigureDisplayEnabled. This is the part that removes or restores the built-in display from the active macOS desktop arrangement, so the cursor cannot enter the built-in panel. - Apple Silicon panel power control. The helper loads the private
IOMobileFramebuffer.frameworksymbols and callsIOMobileFramebufferRequestPowerChange. This is the part that asks the physical built-in panel to turn off or wake up.
Turning the built-in display off is therefore:
clear mirroring
-> disable the built-in display in the SkyLight layout
-> request built-in panel power off through IOMobileFramebuffer
Turning it back on is:
request built-in panel power on through IOMobileFramebuffer
-> enable the built-in display in the SkyLight layout
The important reconnect detail is that macOS can temporarily stop listing the
built-in display in SkyLight after a software disconnect. When that happens,
Clamless first uses the CoreGraphics display ID cached before disconnection,
then falls back to the built-in IOMobileFramebuffer service (disp0,...) if
the cached ID is unavailable or stale. This matters because on newer macOS
releases, IOMobileFramebufferGetID does not necessarily return the same ID as
CoreGraphics.
This is not:
- brightness dimming;
- a black overlay window;
- clamshell mode;
- a display-arrangement-only workaround;
- a way to physically remove the built-in panel from IORegistry.
The built-in panel is internal hardware, so it can still appear in lower-level system registries. The important user-facing display topology is the active WindowServer/CoreGraphics layout.
Download the latest Clamless-<version>.dmg from GitHub Releases, open it, and drag Clamless.app into Applications.
Until the app is signed with a Developer ID certificate and notarized by Apple,
macOS may show the standard unidentified-developer warning on first launch. In
that case, right-click Clamless.app and choose Open.
- Apple Silicon MacBook
- macOS 13 or newer
- At least one active external display before disconnecting the built-in display
- Xcode Command Line Tools for building from source
make buildThis creates:
.build/clamless-display
.build/Clamless.app
make installThe menu bar app is installed to:
~/Applications/Clamless.app
Open it:
open "$HOME/Applications/Clamless.app"Public releases are built by GitHub Actions when a version tag is pushed:
git tag -a v0.1.10 -m "Clamless 0.1.10"
git push origin v0.1.10The release workflow builds the DMG on a macOS arm64 runner, verifies its
checksum internally, reads the version's changes from CHANGELOG.md, creates a
GitHub Release, and uploads only the .dmg file.
If the tag already existed before the workflow was added, run the Release
workflow manually and set release_tag to the existing tag, such as v0.1.10.
For local testing, run:
make dmgThis creates:
dist/Clamless-<version>.dmg
dist/Clamless-<version>.dmg.sha256
For the smoothest public install experience, release builds should eventually be signed with a Developer ID Application certificate and notarized before the DMG is uploaded.
The menu bar app exposes:
- one switch that turns the built-in display off or on based on current state;
- a settings window for automatic switching, login item control, manual update checks, and optional daily automatic update checks;
- a quit command.
The menu bar title and menu text follow the user's preferred system language. Chinese is used for Chinese locales; English is used otherwise.
It calls the same bundled clamless-display helper. It does not implement a separate display-control path.
Clamless can automatically turn off the built-in display when a trusted external display is connected, and turn it back on when that display is disconnected.
Automatic switching is whitelist-based:
- connected external displays appear in Settings;
- a new external display is not trusted by default;
- only checked displays can trigger automatic built-in display disconnect;
- Clamless only auto-restores displays that it previously auto-disconnected.
The Settings window uses CoreGraphics to show currently active external display
names. Display keys for the whitelist are read from
IOMobileFramebuffer.DisplayAttributes.ProductAttributes.
Automatic switching uses several signals because no single macOS display source is reliable in this state:
- event-driven status refreshes, with 1-second polling only while display state is settling and no periodic polling after the state becomes stable;
- CoreGraphics display reconfiguration callbacks;
- IORegistry interest notifications for display-port services;
IOPMrootDomain.AppleClamshellStateplus system sleep/wake notifications, so closing the lid pauses automatic polling and suppresses built-in-display restore attempts until the Mac wakes with the lid open;- lower-level
AppleATCDPAltModePort.EventLogPlug/Unplugtimestamps; - a safety restore when the built-in display is disconnected but the active CoreGraphics external-display count drops to zero.
The state machine treats unplug as a restore-priority event. A later low-level
Plug event is not allowed to cancel an already pending restore, because DP
Alt Mode relinking or WindowServer recovery can emit a newer plug-like event
even when the user has not intentionally reconnected the display.
While an on or off action is running, status polling is suspended. The app
performs one status refresh after the action finishes. Failed automatic actions
stop retrying until a new display, lid, or wake event arrives.
Informational debug logging is disabled by default. The file log records only
warnings and errors unless the debugLoggingEnabled user default is enabled.
clamless-display status
clamless-display off --commit session
clamless-display on --commit session
clamless-display panel-onLower-level commands:
clamless-display layout-off
clamless-display layout-on
clamless-display panel-off
clamless-display panel-on
clamless-display panel-request 0
clamless-display panel-request 1panel-on only wakes the physical built-in panel. It does not restore the display into the macOS layout.
Open Clamless Settings and enable Open at Login.
For source builds, the helper scripts call the same macOS Login Items API used by the app and remove older LaunchAgent files if they exist:
make login-installRemove:
make login-uninstallClamless does not collect telemetry and does not send display information
anywhere. The menu bar app stores local preferences with macOS UserDefaults
under the local.clamless.menu bundle identifier.
This project uses private macOS APIs:
SkyLight.frameworkdisplay topology APIsIOMobileFramebuffer.frameworkApple Silicon panel power APIs
Apple can change these APIs in future macOS releases. This project should be treated as a pragmatic local utility, not an App Store-style supported integration.
Reconnect can fail in some macOS states after a software disconnect. If that happens, first use emergency panel wake, then restore the layout through macOS Display Settings, a lid close/open cycle, external cable reconnect, or reboot.
MIT