How to Cleanly Unplug a Second Display Before LockDown Browser Launches

Unplugging a second display before LDB launches is the most common path through the multi-display block. The procedure: disable AirPlay/Sidecar first, then physically unplug cables, then wait 10 seconds for macOS to release the display state, then launch LDB. Below: the clean sequence.

The clean sequence (5 minutes before exam)

  1. Save any open work on the second display's windows. macOS auto-migrates windows to the built-in display when the second is removed; if you have unsaved work, save first.
  2. Disable AirPlay: Control Center → Screen Mirroring → off.
  3. Disable Sidecar: System Settings → Displays → click iPad → Disconnect.
  4. Quit any app using a USB-C dock display feature: Spotify, video editors, anything that may have window state on the dock display.
  5. Physically unplug the cable: HDMI, DisplayPort, USB-C-to-display, etc. Pull the cable from your laptop end (not the monitor end).
  6. If using a USB-C dock with display passthrough: either unplug the dock's display ports, OR unplug the dock entirely if you don't need its other features (USB devices, Ethernet).
  7. Verify in System Settings → Displays: only your built-in display should be listed.
  8. Wait 10 seconds. macOS's display arrangement state takes a moment to stabilize after disconnect.
  9. Launch LDB from your LMS.

If LDB still detects "multi-display"

Common causes for false positives after unplugging:

What works in System Settings (without physical unplug)

If you can't physically unplug (e.g. external display is built into a dock you need for keyboard/mouse), you can disable the display in software:

  1. System Settings → Displays.
  2. Click the external display's tile to highlight.
  3. Click "Display Settings" or click the display gear.
  4. Look for "Use as primary display" / "Mirror" / individual disable controls.
  5. Some macOS versions: drag the display tile out of the arrangement to disable.

If your specific Mac+macOS combination doesn't have a software disable option, physical unplug is the only path.

Closed-Lid Mode workaround

Alternative: use Closed-Lid Mode to make your built-in display sleep, leaving only the external active. CGDisplayActiveDisplayCount returns 1; LDB doesn't block.

  1. Plug your laptop into AC power (Closed-Lid Mode requires AC).
  2. Connect external display + USB keyboard + USB mouse.
  3. Sign in to your laptop normally with lid open.
  4. Close the lid completely. Wait 10 seconds.
  5. External display becomes the only active display.
  6. Launch LDB. Single-display configuration.

Caveat: your built-in webcam is now closed inside the lid. Use an external USB webcam or Continuity Camera (iPhone). The exam still works; only the camera source changes.

Don't do this

Re-plugging after the exam

After exam submit + LDB exits:

  1. Plug the cable back in.
  2. macOS detects the display within ~5 seconds.
  3. Window arrangement may have shifted; drag windows back to where you want them.

If you used Closed-Lid Mode, simply opening the lid wakes the built-in display.

Frequently asked questions

My exam is in 5 minutes - can I just close the lid quickly?

Closed-Lid Mode requires AC power + ~10 seconds for the built-in to sleep. Don't do this in a panic - physical unplug is faster (~30 seconds total).

Will the second display's windows come back after I plug it back in?

macOS remembers window positions per display. When you re-plug, windows return to their original positions - though some apps (especially full-screen ones) may need to be re-positioned.

I have a vertical / portrait orientation external display. Same procedure?

Yes - CGDisplay doesn't care about orientation, only count. Disconnect the same way.