u/Dazzling-Neat-6278

Reliably switching primary display at boot via script — looking for the right approach

Setup: Windows 11 | RTX 5080 | Three displays: physical monitor (ID: AUS274D), a case-mounted display (ID: RTK409A), and a Virtual Display Driver (ID: MTT1337)

Goal: A PowerShell script triggered at logon via Task Scheduler that:

  1. Detects whether the physical monitor is connected at boot
  2. If yes → set it as primary, virtual display disabled
  3. If no → set virtual display as primary, all physical displays disabled

Using the monitor cable as a boot-time toggle — no menus, no manual steps.

Current approach: Detecting monitor presence via MultiMonitorTool's CSV export (Short Monitor ID), then switching primary with /SetPrimary and /enable / /disable.

Questions:

  • Is Short Monitor ID detection via MultiMonitorTool reliable before GPU drivers fully initialize at boot?
  • Is there a more reliable detection method — WMI, EDID query, registry?
  • Any known timing issues with display enumeration on NVIDIA systems at logon?

Open to alternative tools if MultiMonitorTool isn't the right fit here.

reddit.com
u/Dazzling-Neat-6278 — 9 days ago

Boot-time headless/regular mode switcher — need advice

Host: Windows 11 | RTX 5080 | Sunshine + VDD already configured and working Displays: ASUS PG27AQWP-W (primary) | HYTE Y70ti case display | VDD by MTT (virtual)

Goal: Use monitor cable presence at boot as a toggle:

  • Monitor plugged in → Regular mode (physical monitor primary, VDD disabled, RGB on)
  • Monitor unplugged → Headless mode (VDD primary, all physical displays off, RGB off)

Sunshine already handles display switching during sessions (ensure_only_display + dd_config_revert_on_disconnect). This is purely about boot-time state.

Plan: PowerShell script via Task Scheduler at logon — detect monitor by Short Monitor ID (AUS274D) via MultiMonitorTool, branch into regular or headless config.

Question: Is Short Monitor ID detection reliable at boot before GPU drivers fully initialize? Better alternatives (WMI, EDID, registry)? Any NVIDIA-specific boot timing gotchas to watch for?

reddit.com
u/Dazzling-Neat-6278 — 10 days ago