Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

[Nightly] Sunshine chose wrong adaptor.

Open F-TD5X opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

Is your issue present in the nightly release?

  • [X] This issue is present in the nightly release

Describe the Bug

ADAPTER and DISPLAY (whatever I disable Intel or not, the DISPLAY50 always under 4070 Ti):

====== ADAPTER =====
Device Name      : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem   : 0 MiB
Share Sys Mem    : 16166 MiB

    ====== OUTPUT ======
    Output Name       : \\.\DISPLAY50
    AttachedToDesktop : yes
    Resolution        : 1920x1080

====== ADAPTER =====
Device Name      : Intel(R) UHD Graphics 770
Device Vendor ID : 0x00008086
Device Device ID : 0x0000A780
Device Video Mem : 128 MiB
Device Sys Mem   : 0 MiB
Share Sys Mem    : 16166 MiB

the \\.\DISPLAY50 is a virtual display created by parsec VDA or usbmmid or iddSampleAdapter

Expected Behavior

Sunshine should detect a output \\.\display50 on NVIDIA GeForce RTX 4070 Ti, chose it, and could stream video normally.

But actually it chose the Intel(R) UHD Graphics 770, and trying to use av1_qsv codec. No video output at this time.

And after I disabled the Intel(R) UHD Graphics 770, sunshine could chose the right NVIDIA GeForce RTX 4070 Ti now, and could stream normally.

Additional Context

If I start sunshine with intel disabled
[2023:09:13:15:44:15]: Info: nvprefs: No need to modify application profile settings
[2023:09:13:15:44:15]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2023:09:13:15:44:15]: Info: Sunshine version: 0.20.0.8e5516c1232bb95ed9d637cea3a292385480805f
[2023:09:13:15:44:15]: Info: Compiling shaders...
[2023:09:13:15:44:15]: Info: System tray created
[2023:09:13:15:44:15]: Info: Compiled shaders
[2023:09:13:15:44:15]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:13:15:44:15]: Info: Trying encoder [nvenc]
[2023:09:13:15:44:15]: Info: ddprobe.exe [1] [\\.\DISPLAY50] returned: 0x00000000
[2023:09:13:15:44:15]: Info: Set GPU preference: 1
[2023:09:13:15:44:16]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:16]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:16]: Info: Using realtime GPU priority
[2023:09:13:15:44:16]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:16]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:16]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
If I specific adaptor or reenable Intel
[2023:09:13:15:51:22]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:13:15:51:22]: Info: Trying encoder [nvenc]
[2023:09:13:15:51:22]: Error: Failed to locate an output device
[2023:09:13:15:51:23]: Error: Failed to locate an output device
[2023:09:13:15:51:23]: Info: Encoder [nvenc] failed
[2023:09:13:15:51:23]: Info: Trying encoder [quicksync]
[2023:09:13:15:51:24]: Error: Failed to locate an output device
[2023:09:13:15:51:24]: Error: Failed to locate an output device
[2023:09:13:15:51:24]: Info: Encoder [quicksync] failed
[2023:09:13:15:51:24]: Info: Trying encoder [amdvce]
[2023:09:13:15:51:25]: Error: Failed to locate an output device
[2023:09:13:15:51:26]: Error: Failed to locate an output device
[2023:09:13:15:51:26]: Info: Encoder [amdvce] failed
[2023:09:13:15:51:26]: Info: Trying encoder [software]
[2023:09:13:15:51:26]: Error: Failed to locate an output device
[2023:09:13:15:51:27]: Error: Failed to locate an output device
[2023:09:13:15:51:27]: Info: Encoder [software] failed
[2023:09:13:15:51:27]: Fatal: Couldn't find any working encoder
If start sunshine with intel enabled

definitely it chose intel 770, and trying `*_qvs` codecs

Host Operating System

Windows

Operating System Version

Windows 11 22621.2134

Architecture

64 bit

Sunshine commit or version

0.20.0.8e5516c1232bb95ed9d637cea3a292385480805f

Package

Portable

GPU Type

Nvidia

GPU Model

GeForce 4070 Ti

GPU Driver/Mesa Version

536.67

Capture Method (Linux Only)

No response

Config

output_name = \\.\DISPLAY50
resolutions = [
    1280x720,
    1920x1080,
    3840x2160,
    2550x1440
]
fps = [60,120,144]
adapter_name = NVIDIA GeForce RTX 4070 Ti

Apps

No response

Relevant log output

Launch with intel disabled, try stream, reenable intel, and etc
[2023:09:13:15:44:15]: Info: nvprefs: No need to modify application profile settings
[2023:09:13:15:44:15]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2023:09:13:15:44:15]: Info: Sunshine version: 0.20.0.8e5516c1232bb95ed9d637cea3a292385480805f
[2023:09:13:15:44:15]: Info: Compiling shaders...
[2023:09:13:15:44:15]: Info: System tray created
[2023:09:13:15:44:15]: Info: Compiled shaders
[2023:09:13:15:44:15]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:13:15:44:15]: Info: Trying encoder [nvenc]
[2023:09:13:15:44:15]: Info: ddprobe.exe [1] [\\.\DISPLAY50] returned: 0x00000000
[2023:09:13:15:44:15]: Info: Set GPU preference: 1
[2023:09:13:15:44:16]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:16]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:16]: Info: Using realtime GPU priority
[2023:09:13:15:44:16]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:16]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:16]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:17]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:17]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:17]: Info: Using realtime GPU priority
[2023:09:13:15:44:17]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:17]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:17]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:17]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:17]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:17]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:44:17]: Info: Color depth: 8-bit
[2023:09:13:15:44:17]: Info: Color range: [JPEG]
[2023:09:13:15:44:17]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:44:17]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:17]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:17]: Info: Using realtime GPU priority
[2023:09:13:15:44:17]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:17]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:17]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:17]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:17]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:17]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:44:17]: Info: Color depth: 8-bit
[2023:09:13:15:44:17]: Info: Color range: [JPEG]
[2023:09:13:15:44:17]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:44:18]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:18]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:18]: Info: Using realtime GPU priority
[2023:09:13:15:44:18]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:18]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:18]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:18]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:18]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:18]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:44:18]: Info: Color depth: 8-bit
[2023:09:13:15:44:18]: Info: Color range: [JPEG]
[2023:09:13:15:44:18]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:44:19]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:19]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:19]: Info: Using realtime GPU priority
[2023:09:13:15:44:19]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:19]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:19]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:19]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:19]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:19]: Info: SDR color coding [Rec. 709]
[2023:09:13:15:44:19]: Info: Color depth: 10-bit
[2023:09:13:15:44:19]: Info: Color range: [JPEG]
[2023:09:13:15:44:19]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:09:13:15:44:19]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:44:19]: Info: Active GPU has HAGS enabled
[2023:09:13:15:44:19]: Info: Using realtime GPU priority
[2023:09:13:15:44:19]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:44:19]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:44:19]: Info: Display refresh rate [60Hz]
[2023:09:13:15:44:19]: Info: Requested frame rate [60fps]
[2023:09:13:15:44:19]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:44:19]: Info: SDR color coding [Rec. 709]
[2023:09:13:15:44:19]: Info: Color depth: 10-bit
[2023:09:13:15:44:19]: Info: Color range: [JPEG]
[2023:09:13:15:44:19]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:09:13:15:44:20]: Info: 
[2023:09:13:15:44:20]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:09:13:15:44:20]: Info: 
[2023:09:13:15:44:20]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2023:09:13:15:44:20]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2023:09:13:15:44:20]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2023:09:13:15:44:20]: Info: Configuration UI available at [https://localhost:47990]
[2023:09:13:15:44:20]: Info: Registered Sunshine mDNS service
[2023:09:13:15:51:22]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:13:15:51:22]: Info: Trying encoder [nvenc]
[2023:09:13:15:51:22]: Error: Failed to locate an output device
[2023:09:13:15:51:23]: Error: Failed to locate an output device
[2023:09:13:15:51:23]: Info: Encoder [nvenc] failed
[2023:09:13:15:51:23]: Info: Trying encoder [quicksync]
[2023:09:13:15:51:24]: Error: Failed to locate an output device
[2023:09:13:15:51:24]: Error: Failed to locate an output device
[2023:09:13:15:51:24]: Info: Encoder [quicksync] failed
[2023:09:13:15:51:24]: Info: Trying encoder [amdvce]
[2023:09:13:15:51:25]: Error: Failed to locate an output device
[2023:09:13:15:51:26]: Error: Failed to locate an output device
[2023:09:13:15:51:26]: Info: Encoder [amdvce] failed
[2023:09:13:15:51:26]: Info: Trying encoder [software]
[2023:09:13:15:51:26]: Error: Failed to locate an output device
[2023:09:13:15:51:27]: Error: Failed to locate an output device
[2023:09:13:15:51:27]: Info: Encoder [software] failed
[2023:09:13:15:51:27]: Fatal: Couldn't find any working encoder
[2023:09:13:15:51:58]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:13:15:51:58]: Info: Trying encoder [nvenc]
[2023:09:13:15:51:58]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:51:58]: Info: Active GPU has HAGS enabled
[2023:09:13:15:51:58]: Info: Using realtime GPU priority
[2023:09:13:15:51:58]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:51:58]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:51:58]: Info: Display refresh rate [60Hz]
[2023:09:13:15:51:58]: Info: Requested frame rate [60fps]
[2023:09:13:15:51:58]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:51:59]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:51:59]: Info: Active GPU has HAGS enabled
[2023:09:13:15:51:59]: Info: Using realtime GPU priority
[2023:09:13:15:51:59]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:51:59]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:51:59]: Info: Display refresh rate [60Hz]
[2023:09:13:15:51:59]: Info: Requested frame rate [60fps]
[2023:09:13:15:51:59]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:51:59]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:51:59]: Info: Color depth: 8-bit
[2023:09:13:15:51:59]: Info: Color range: [JPEG]
[2023:09:13:15:51:59]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:51:59]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:51:59]: Info: Active GPU has HAGS enabled
[2023:09:13:15:51:59]: Info: Using realtime GPU priority
[2023:09:13:15:51:59]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:51:59]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:51:59]: Info: Display refresh rate [60Hz]
[2023:09:13:15:51:59]: Info: Requested frame rate [60fps]
[2023:09:13:15:51:59]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:51:59]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:51:59]: Info: Color depth: 8-bit
[2023:09:13:15:51:59]: Info: Color range: [JPEG]
[2023:09:13:15:52:00]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:52:00]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:52:00]: Info: Active GPU has HAGS enabled
[2023:09:13:15:52:00]: Info: Using realtime GPU priority
[2023:09:13:15:52:00]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:52:00]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:52:00]: Info: Display refresh rate [60Hz]
[2023:09:13:15:52:00]: Info: Requested frame rate [60fps]
[2023:09:13:15:52:00]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:52:00]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:52:00]: Info: Color depth: 8-bit
[2023:09:13:15:52:00]: Info: Color range: [JPEG]
[2023:09:13:15:52:00]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:52:00]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:52:00]: Info: Active GPU has HAGS enabled
[2023:09:13:15:52:00]: Info: Using realtime GPU priority
[2023:09:13:15:52:00]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:52:00]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:52:00]: Info: Display refresh rate [60Hz]
[2023:09:13:15:52:00]: Info: Requested frame rate [60fps]
[2023:09:13:15:52:00]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:52:00]: Info: SDR color coding [Rec. 709]
[2023:09:13:15:52:00]: Info: Color depth: 10-bit
[2023:09:13:15:52:00]: Info: Color range: [JPEG]
[2023:09:13:15:52:00]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:09:13:15:52:01]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:52:01]: Info: Active GPU has HAGS enabled
[2023:09:13:15:52:01]: Info: Using realtime GPU priority
[2023:09:13:15:52:01]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:52:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:52:01]: Info: Display refresh rate [60Hz]
[2023:09:13:15:52:01]: Info: Requested frame rate [60fps]
[2023:09:13:15:52:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:52:01]: Info: SDR color coding [Rec. 709]
[2023:09:13:15:52:01]: Info: Color depth: 10-bit
[2023:09:13:15:52:01]: Info: Color range: [JPEG]
[2023:09:13:15:52:01]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:09:13:15:52:01]: Info: 
[2023:09:13:15:52:01]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:09:13:15:52:01]: Info: 
[2023:09:13:15:52:01]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2023:09:13:15:52:01]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2023:09:13:15:52:01]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2023:09:13:15:52:01]: Info: Executing [Desktop]
[2023:09:13:15:52:02]: Info: nvprefs: No need to modify application profile settings
[2023:09:13:15:52:02]: Info: nvprefs: No need to modify global profile settings
[2023:09:13:15:52:02]: Info: CLIENT CONNECTED
[2023:09:13:15:52:02]: Info: 
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002782
Device Video Mem   : 12010 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16166 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2023:09:13:15:52:02]: Info: Active GPU has HAGS enabled
[2023:09:13:15:52:02]: Info: Using realtime GPU priority
[2023:09:13:15:52:02]: Info: Desktop resolution [1920x1080]
[2023:09:13:15:52:02]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:52:02]: Info: Display refresh rate [60Hz]
[2023:09:13:15:52:02]: Info: Requested frame rate [60fps]
[2023:09:13:15:52:02]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0,0]
Green Primary      : [0,0]
Blue Primary       : [0,0]
White Point        : [0,0]
Min Luminance      : 0 nits
Max Luminance      : 0 nits
Max Full Luminance : 0 nits
[2023:09:13:15:52:02]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:09:13:15:52:02]: Info: SDR color coding [Rec. 601]
[2023:09:13:15:52:02]: Info: Color depth: 8-bit
[2023:09:13:15:52:02]: Info: Color range: [MPEG]
[2023:09:13:15:52:02]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:09:13:15:52:02]: Warning: Failed to install Steam audio drivers: 259
[2023:09:13:15:52:16]: Info: CLIENT DISCONNECTED

F-TD5X avatar Sep 13 '23 08:09 F-TD5X

I have a suspicion the issue is the fact that Windows has a tendency to rename displays to a different number, when Sunshine tries to locate the configured display it can often fail because Windows decided to change it. Can you try this script to see if that works for you? https://github.com/Nonary/MonitorSwapAutomation/releases/latest

Nonary avatar Sep 28 '23 06:09 Nonary

I have a suspicion the issue is the fact that Windows has a tendency to rename displays to a different number, when Sunshine tries to locate the configured display it can often fail because Windows decided to change it. Can you try this script to see if that works for you? https://github.com/Nonary/MonitorSwapAutomation/releases/latest

Maybe it is not a multi-monitor problem. I guess that it is a laptop discrete GPU problem what I meet too. And I'm looking for help too.

I have only one monitor and it is my laptop screen. The MultiMonitorTool.exe shows that the adaptor of the screen is 'Intel(R) HD Graphics 4600', but I want to stream some games run with the descrete GPU 'NVIDIA GeForce GTX 970M'(for higher streaming performance). I try to set the 'Adapter Name' in sunthine configuration to the descrete gpu 'ADAPTER' following the 'dxgi-info.exe' shows, then it doesn't work. Sunshine only works well when the setting is 'Intel(R) HD Graphics 4600'. All things you can see in the screen shot below. 20231004195950

PolarisYan avatar Oct 04 '23 12:10 PolarisYan

I have a suspicion the issue is the fact that Windows has a tendency to rename displays to a different number, when Sunshine tries to locate the configured display it can often fail because Windows decided to change it. Can you try this script to see if that works for you? https://github.com/Nonary/MonitorSwapAutomation/releases/latest

Actually windows doesn't change the display name (seems the tendency you mentioned only applied to plug-in-and-out situation), whatever I enable iGPU or not, the display name is still //./DISPLAY50 and is enumerated under 4070Ti. But whatever I'll try this if I'm free.

F-TD5X avatar Oct 23 '23 02:10 F-TD5X

If you are using only the laptop display in an Optimus laptop the display is wired to the Intel regardless of what is "enabled" or "disabled" (or where windows shows it as being enumerated under)

The 4070 is rendering into the Intel framebuffer to display to the screen.

The other user with the 970M might have a mux'ed laptop. Things are a bit different in mux'ed laptops. Newer laptops (like your 4070) are muxless and the only time the dGPU is rendering directly into it's own framebuffer for scanout is if you have a hdmi/DP port that is wired directly into the dGPU.

Ahh the joys of muxless laptops. This also causes issues with VR headsets, fyi

insanemal avatar Jan 18 '24 15:01 insanemal

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

LizardByte-bot avatar Apr 18 '24 10:04 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Apr 28 '24 10:04 LizardByte-bot