Skip to content

Advanced display device options don't work #4324

@UMARU-xiaomai

Description

@UMARU-xiaomai

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

I'm too lazy to test

Describe the Bug

I'm trying to let sunshine work with Parsec-VDD because it can be control via CLI but after I finishing steps below, it doesn't work as I excepted:

  1. Add a set of Command Preparation:[{"do":"cmd /c "vdd -a"","elevated":true,"undo":"cmd /c "vdd -r""}]
  2. Specify Adapter Name
  3. Specify display device id
  4. Set "Advanced display device options -> Device configuration" to "Deactivate other displays and activate only the specified display"

Expected Behavior

Since the display device id of Parsec-VDD is fixed and independent of the actual display, it can be accessed remotely regardless of whether the host is now connected to the display or not, and since installing the device only when needed ('vdd -a') will not affect the daily use of the host (e.g. daily use is accidentally set to 'second monitor only')

Additional Context

No response

Host Operating System

Windows

Operating System Version

26100.6584

Architecture

amd64/x86_64

Sunshine commit or version

Version 2025.924.154138

Package

Windows - installer (recommended)

GPU Type

NVIDIA

GPU Model

NVIDIA GeForce RTX 5060

GPU Driver/Mesa Version

581.15

Capture Method

Desktop Duplication API (Windows)

Config

adapter_name = NVIDIA GeForce RTX 5060
dd_configuration_option = ensure_only_display
global_prep_cmd = [{"do":"cmd /c \"vdd -a\"","elevated":true,"undo":"cmd /c \"vdd -r\""}]
output_name = {f0f2bd44-9933-5119-bde7-638f4079e4c0}

Apps

Relevant log output

[2025-10-09 04:35:16.102]: Info: Sunshine version: 2025.924.154138 commit: 86188d47a7463b0f73b35de18a628353adeaa20e
[2025-10-09 04:35:16.102]: Info: Package Publisher: LizardByte
[2025-10-09 04:35:16.102]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-10-09 04:35:16.102]: Info: Get support: https://app.lizardbyte.dev/support
[2025-10-09 04:35:16.102]: Info: config: 'adapter_name' = NVIDIA GeForce RTX 5060
[2025-10-09 04:35:16.102]: Info: config: 'dd_configuration_option' = ensure_only_display
[2025-10-09 04:35:16.102]: Info: config: 'global_prep_cmd' = [{"do":"cmd /c \"vdd -a\"","elevated":true,"undo":"cmd /c \"vdd -r\""}]
[2025-10-09 04:35:16.102]: Info: config: 'output_name' = {f0f2bd44-9933-5119-bde7-638f4079e4c0}
[2025-10-09 04:35:16.102]: Info: Provided workaround settings for SettingsManager:
{
  "hdr_blank_delay": null
}
[2025-10-09 04:35:16.106]: Info: Currently available display devices:
[
  {
    "device_id": "{41584bf5-7b2c-51cd-bac0-a2c29e8da23e}",
    "display_name": "\\\\.\\DISPLAY1",
    "edid": {
      "manufacturer_id": "SKY",
      "product_code": "2388",
      "serial_number": 1
    },
    "friendly_name": "F24G3",
    "info": {
      "hdr_state": null,
      "origin_point": {
        "x": 0,
        "y": 0
      },
      "primary": true,
      "refresh_rate": {
        "type": "rational",
        "value": {
          "denominator": 1000,
          "numerator": 144003
        }
      },
      "resolution": {
        "height": 1080,
        "width": 1920
      },
      "resolution_scale": {
        "type": "rational",
        "value": {
          "denominator": 100,
          "numerator": 100
        }
      }
    }
  }
]
[2025-10-09 04:35:16.251]: Info: nvprefs: No need to modify application profile settings
[2025-10-09 04:35:16.251]: Info: nvprefs: No need to modify global profile settings
[2025-10-09 04:35:16.264]: Info: Compiling shaders...
[2025-10-09 04:35:16.322]: Info: Compiled shaders
[2025-10-09 04:35:16.330]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-10-09 04:35:16.330]: Info: Trying encoder [nvenc]
[2025-10-09 04:35:16.584]: Info: 
Device Description : NVIDIA GeForce RTX 5060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002D05
Device Video Mem   : 7807 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15924 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2025-10-09 04:35:16.584]: Info: Active GPU has HAGS enabled
[2025-10-09 04:35:16.584]: Info: Using realtime GPU priority
[2025-10-09 04:35:16.585]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.620117]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2025-10-09 04:35:16.585]: Info: Desktop resolution [1920x1080]
[2025-10-09 04:35:16.585]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-10-09 04:35:16.585]: Info: Display refresh rate [144.003Hz]
[2025-10-09 04:35:16.585]: Info: Requested frame rate [60fps]
[2025-10-09 04:35:16.586]: Info: Creating encoder [h264_nvenc]
[2025-10-09 04:35:16.586]: Info: Color coding: SDR (Rec. 601)
[2025-10-09 04:35:16.586]: Info: Color depth: 8-bit
[2025-10-09 04:35:16.586]: Info: Color range: JPEG
[2025-10-09 04:35:16.642]: Info: NvEnc: created encoder H.264 P1 async two-pass rfi
[2025-10-09 04:35:16.663]: Info: Creating encoder [hevc_nvenc]
[2025-10-09 04:35:16.663]: Info: Color coding: SDR (Rec. 601)
[2025-10-09 04:35:16.663]: Info: Color depth: 8-bit
[2025-10-09 04:35:16.663]: Info: Color range: JPEG
[2025-10-09 04:35:16.717]: Info: NvEnc: created encoder HEVC P1 async two-pass rfi
[2025-10-09 04:35:16.739]: Info: Creating encoder [av1_nvenc]
[2025-10-09 04:35:16.739]: Info: Color coding: SDR (Rec. 601)
[2025-10-09 04:35:16.739]: Info: Color depth: 8-bit
[2025-10-09 04:35:16.739]: Info: Color range: JPEG
[2025-10-09 04:35:16.792]: Info: NvEnc: created encoder AV1 P1 async two-pass rfi
[2025-10-09 04:35:16.814]: Info: Creating encoder [h264_nvenc]
[2025-10-09 04:35:16.814]: Info: Color coding: SDR (Rec. 601)
[2025-10-09 04:35:16.814]: Info: Color depth: 8-bit
[2025-10-09 04:35:16.814]: Info: Color range: JPEG
[2025-10-09 04:35:16.866]: Info: NvEnc: created encoder H.264 P1 async yuv444 two-pass rfi
[2025-10-09 04:35:17.089]: Info: 
Device Description : NVIDIA GeForce RTX 5060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002D05
Device Video Mem   : 7807 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15924 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2025-10-09 04:35:17.089]: Info: Active GPU has HAGS enabled
[2025-10-09 04:35:17.089]: Info: Using realtime GPU priority
[2025-10-09 04:35:17.089]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.620117]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2025-10-09 04:35:17.090]: Info: Desktop resolution [1920x1080]
[2025-10-09 04:35:17.090]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-10-09 04:35:17.090]: Info: Display refresh rate [144.003Hz]
[2025-10-09 04:35:17.090]: Info: Requested frame rate [60fps]
[2025-10-09 04:35:17.090]: Info: Creating encoder [hevc_nvenc]
[2025-10-09 04:35:17.090]: Info: Color coding: SDR (Rec. 709)
[2025-10-09 04:35:17.090]: Info: Color depth: 10-bit
[2025-10-09 04:35:17.090]: Info: Color range: JPEG
[2025-10-09 04:35:17.214]: Info: NvEnc: created encoder HEVC P1 async yuv444 10-bit two-pass rfi
[2025-10-09 04:35:17.252]: Info: Creating encoder [av1_nvenc]
[2025-10-09 04:35:17.252]: Info: Color coding: SDR (Rec. 709)
[2025-10-09 04:35:17.252]: Info: Color depth: 10-bit
[2025-10-09 04:35:17.252]: Info: Color range: JPEG
[2025-10-09 04:35:17.338]: Error: NvEnc: gpu doesn't support YUV444 encode
[2025-10-09 04:35:17.339]: Error: NvEnc: NvEncUnregisterAsyncEvent() failed: NV_ENC_ERR_DEVICE_NOT_EXIST
[2025-10-09 04:35:17.358]: Info: Creating encoder [av1_nvenc]
[2025-10-09 04:35:17.358]: Info: Color coding: SDR (Rec. 709)
[2025-10-09 04:35:17.358]: Info: Color depth: 10-bit
[2025-10-09 04:35:17.358]: Info: Color range: JPEG
[2025-10-09 04:35:17.417]: Info: NvEnc: created encoder AV1 P1 async 10-bit two-pass rfi
[2025-10-09 04:35:17.454]: Info: 
[2025-10-09 04:35:17.454]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-10-09 04:35:17.454]: Info: 
[2025-10-09 04:35:17.454]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-10-09 04:35:17.454]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-10-09 04:35:17.454]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-10-09 04:35:17.461]: Info: Starting system tray
[2025-10-09 04:35:17.461]: Info: System tray thread started
[2025-10-09 04:35:17.463]: Info: Configuration UI available at [https://localhost:47990]
[2025-10-09 04:35:17.474]: Info: System tray created
[2025-10-09 04:35:17.493]: Info: System tray thread initialized successfully
[2025-10-09 04:35:17.493]: Info: No main thread features enabled, skipping event loop
[2025-10-09 04:35:18.235]: Info: Registered Sunshine mDNS service
[2025-10-09 04:46:21.509]: Info: Opening UI from system tray
[2025-10-09 04:46:21.513]: Info: Resolved user-provided command 'https://localhost:47990' to '"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --single-argument https://localhost:47990'
[2025-10-09 04:46:21.516]: Info: https://localhost:47990 running with PID 27436
[2025-10-09 04:46:21.516]: Info: Opened url [https://localhost:47990]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions