• 1 Post
  • 8 Comments
Joined 3 years ago
cake
Cake day: October 20th, 2023

help-circle
  • I’m running EndeavourOS with Hyprland (Wayland) and an RTX 3090. Hyprland supports headless virtual displays natively, so there’s no need for an HDMI dummy plug or a separate virtual display driver.

    First, create a virtual monitor:

    hyprctl output create headless
    

    Find its name using hyprctl monitors (usually HEADLESS-1), then configure it for 4K:

    hyprctl keyword monitor HEADLESS-1,3840x2160@60,auto,1
    

    From there, Sunshine captures and encodes the virtual display, and Moonlight streams it to the client. In Sunshine, configure the capture method for Wayland and select the headless output instead of your physical monitor.

    You can also configure Sunshine to enable the virtual display when a streaming session starts and remove it afterward.

    The GPU still handles rendering and hardware encoding normally. The only difference is that you’re rendering to a virtual output rather than a physical monitor. No additional hardware required.