Skip to content

Sunshine: integrate Virtual Display Driver #54

Todo

Description

@ReenigneArcher

Is there an existing issue for this item?

  • I have searched the existing issues

Repositories

SunshineStream/Sunshine, LizardByte/libvirtualdisplay, LizardByte/libdisplaydevice

Languages/Skills/Technologies

C++, Windows, Linux, macOS

Description

This has been a highly requested feature for Sunshine.

Scope and ownership

Ship opt-in, client-sized virtual displays in Sunshine on Windows, macOS, and supported Linux desktops. The first release on each platform should provide one temporary SDR display per Sunshine app session, work with the physical monitors disconnected where the host session supports it, and clean up reliably. Release each platform when it passes its own validation.

libvirtualdisplay owns display creation, backend capabilities, stable identity, leases, and driver or service artifacts. libdisplaydevice continues to enumerate and configure displays and restore supported desktop settings. Sunshine owns user policy, session lifetime, capture, input mapping, and client-facing errors. The Windows driver is free to use. Display creation and management must work offline without a purchase, account, activation, or licensing service.

1. Stabilize the imported repository

2. Define the library contract

3. Build and validate the platform backends

4. Integrate with Sunshine

  • Add a disabled-by-default setting and availability diagnostics. During launch or resume, acquire the display before encoder probing and app startup, wait for it to become capturable, and hand its exact target to capture. Use the effective mode and geometry for input mapping. Report an actionable Moonlight error if the requested display cannot be used.
  • Cover ready-to-stream, failed encoder or app startup, abandoned RTSP setup, cancel, disconnect and resume, app exit, display disappearance, and Sunshine shutdown. Stop capture and restore any changed topology in the correct order before releasing the display. Add regression tests with Sunshine’s shared test header and include conventions. Wire the dependency into the CMake lock and affected packaging manifests. Use Sunshine PR #5114 as reference for use cases and UI feedback.

5. Release and expand support

  • For each platform, validate a real Moonlight launch, stream, reconnect at the same or a different client mode, and teardown. Exercise a host with no physical monitor attached, a host with a physical monitor, and failure or crash recovery. Confirm existing physical display streaming still works. Publish the tested OS, desktop, and GPU support matrix, installation and rollback steps, and troubleshooting guidance. The macOS backend draft records the Sunshine prototype’s streaming tests.
  • After the SDR lifecycle is stable, prioritize HDR end-to-end, persistent displays, platform-specific app placement, additional Linux compositors, and multi-display or per-client support. Keep each behind its own capability and validation evidence.

Start with the MSVC fix and CI/quality baseline, then the shared API and test double. Windows release packaging and the KDE feasibility work can proceed alongside the macOS port. Use linked implementation issues and PRs for individual changes and keep this roadmap issue as the cross-repo checklist.

Estimated Effort

effort:Extra-Large

Priority

priority:High

Target Milestone

6+ months

Dependencies

  • A libvirtualdisplay release and compatible Sunshine dependency pin for each enabled backend.
  • LizardByte’s Windows signing and installer pipeline, plus clean Windows test systems for installed-driver validation.
  • A libdisplaydevice release containing the macOS stable ID fix, signed Sunshine macOS builds, and hardware to test the supported versions.
  • Supported Linux compositor and capture combinations, with a host-side module package only if the optional DRM backend is adopted.

Activity

  1. added
    help wanted
    planned
    on Apr 20, 2025
  2. Xarishark commented on Mar 1, 2026

    @Xarishark
  3. ReenigneArcher commented on Mar 3, 2026

    @ReenigneArcher
    Author
  4. Xarishark commented on Mar 3, 2026

    @Xarishark
  5. quantumphaze commented on May 9, 2026

    @quantumphaze

    This feature worked briefly, if unintentionally, under Linux when XDG-Portal was being developed with v2026.204.180221. On the first run the compositor would run that screen and window selection screen most desktop sharing applications trigger with the option of using a virtual monitor. Every subsequent run would no longer prompt for which monitor (virtual or not) to use, remembering the first setting forever and the whole feature stopped working after a later update.

  6. SorceressLyra commented on Sep 11, 2026

    @SorceressLyra

    I would be willing to look into this in my spare time, as this is the feature I miss the most from Sunshine :)

  7. ReenigneArcher commented on Sep 11, 2026

    @ReenigneArcher
    MemberAuthor

    This feature is probably next on my list actually.

  8. SorceressLyra commented on Sep 11, 2026

    @SorceressLyra

    This feature is probably next on my list actually.

    Alright that's awesome to hear! I won't get in your way then :)

  9. moved this from Todo to In Progress in roadmapon Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

  • Status
    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions