Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Remote session defaults to Audio sink after minimising Stream? #1402

Closed
Azuriye opened this issue Jul 25, 2024 · 2 comments
Closed
Labels

Comments

@Azuriye
Copy link

Azuriye commented Jul 25, 2024

Describe the bug

When remoting into a host Sunshine PC with the host not playing any audio, the Moonlight client works as expected by playing audio only in the client and not on the host.

However, after I minimise the remote session (NOT Quit Session) or even minimise the app itself the client sends a disconnect event which is captured in Sunshine's log. However the user hasn't even instructed to Quit the remote session. Due to this behaviour the host PC is instructed to revert to the default audio output device (Realtek(R) Audio) instead of forcing it to be on the Virtual Sink audio output device (Steam Streaming Speakers).

When I remote back in, it changes the audio output device back to Virtual Sink but during this entire process the game's audio is no longer audible unless I force restart the game from Steam Big Picture.

Steps to reproduce

  1. Verify that "Play audio on PC" is unticked from Moonlight
  2. Remote into Sunshine PC from Moonlight
  3. Open Sound from Control Panel
  4. Verify that the Virtual Sink is the default device
  5. In Moonlight client do the back button hand gesture, or the button.
  6. Verify that in Moonlight client there is a white play sign on top of whatever app you've launched for testing (Or just hold on the app and verify that Quit Session is present)
  7. Check the host PC and the default device is switched back to Audio Sink
  8. Now remote back again into the same app and as expected it reverts back to Virtual Sink

Affected games

Touhou Luna Nights, but ideally any other game which isn't happy with switching audio devices while the game is running.

Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

None

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

Android 13

Device model

Samsung Galaxy S20 FE

Server PC OS version

Windows 11 IoT Enterprise LTSC 10.0.26100 Build 26100

Server PC GeForce Experience version

3.28.0.417

Server PC Nvidia GPU driver version

560.70

Server PC antivirus and firewall software

Windows Defender and Firewall

Screenshots

No response

Relevant log output

[2024:07:25:13:07:07]: Info: Sunshine version: v0.23.1
[2024:07:25:13:07:07]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:07:07]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:07:25:13:07:07]: Info: Compiling shaders...
[2024:07:25:13:07:07]: Info: Compiled shaders
[2024:07:25:13:07:08]: Info: System tray created
[2024:07:25:13:07:08]: Info: Trying encoder [nvenc]
[2024:07:25:13:07:08]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:07:25:13:07:08]: Info: Set GPU preference: 1
[2024:07:25:13:07:08]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:08]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:08]: Info: Using realtime GPU priority
[2024:07:25:13:07:08]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:08]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:08]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:08]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:07:08]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:08]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:08]: Info: Using realtime GPU priority
[2024:07:25:13:07:08]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:08]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:08]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:08]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:08]: Info: Color depth: 10-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:07:08]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:07:08]: Info: 
[2024:07:25:13:07:08]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:07:08]: Info: 
[2024:07:25:13:07:08]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:07:08]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:07:08]: Info: Configuration UI available at [https://localhost:47990]
[2024:07:25:13:07:09]: Info: Registered Sunshine mDNS service
[2024:07:25:13:07:33]: Info: Encoder reenumeration is required
[2024:07:25:13:07:33]: Info: Trying encoder [nvenc]
[2024:07:25:13:07:33]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:33]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:33]: Info: Using realtime GPU priority
[2024:07:25:13:07:33]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:33]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:33]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:33]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:33]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:07:33]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:33]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:33]: Info: Using realtime GPU priority
[2024:07:25:13:07:33]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:33]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:33]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:33]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:33]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:33]: Info: Color depth: 10-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:07:33]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:07:33]: Info: 
[2024:07:25:13:07:33]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:07:33]: Info: 
[2024:07:25:13:07:33]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:07:33]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:07:33]: Info: Executing: [steam://open/bigpicture] in [""]
[2024:07:25:13:07:33]: Info: Resolved user-provided command 'steam://open/bigpicture' to '"C:\Program Files (x86)\Steam\steam.exe" -- "steam://open/bigpicture"'
[2024:07:25:13:07:33]: Info: steam://open/bigpicture running with PID 24388
[2024:07:25:13:07:33]: Info: App exited gracefully within 5 seconds of launch. Treating the app as a detached command.
[2024:07:25:13:07:33]: Info: Adjust this behavior in the Applications tab or apps.json if this is not what you want.
[2024:07:25:13:07:34]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:07:34]: Info: nvprefs: No need to modify global profile settings
[2024:07:25:13:07:34]: Info: CLIENT CONNECTED
[2024:07:25:13:07:34]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:34]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:34]: Info: Using realtime GPU priority
[2024:07:25:13:07:34]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:34]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:34]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:34]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:34]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:34]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:07:34]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:34]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:34]: Info: Color depth: 8-bit
[2024:07:25:13:07:34]: Info: Color range: [MPEG]
[2024:07:25:13:07:34]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:44]: Info: Gamepad 0 will be Xbox 360 controller (default)
[2024:07:25:13:07:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:53]: Info: Using realtime GPU priority
[2024:07:25:13:07:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:53]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:53]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:07:53]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:53]: Info: Color depth: 8-bit
[2024:07:25:13:07:53]: Info: Color range: [MPEG]
[2024:07:25:13:07:53]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:19]: Info: CLIENT DISCONNECTED
[2024:07:25:13:08:52]: Info: Encoder reenumeration is required
[2024:07:25:13:08:52]: Info: Trying encoder [nvenc]
[2024:07:25:13:08:52]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:52]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:52]: Info: Using realtime GPU priority
[2024:07:25:13:08:52]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:52]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:52]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:52]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:52]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:08:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:53]: Info: Using realtime GPU priority
[2024:07:25:13:08:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:53]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:08:53]: Info: Color depth: 10-bit
[2024:07:25:13:08:53]: Info: Color range: [JPEG]
[2024:07:25:13:08:53]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:08:53]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:08:53]: Info: 
[2024:07:25:13:08:53]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:08:53]: Info: 
[2024:07:25:13:08:53]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:08:53]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:08:53]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:08:53]: Info: nvprefs: No need to modify global profile settings
[2024:07:25:13:08:53]: Info: CLIENT CONNECTED
[2024:07:25:13:08:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:53]: Info: Using realtime GPU priority
[2024:07:25:13:08:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:53]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:53]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:08:53]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:08:53]: Info: Color depth: 8-bit
[2024:07:25:13:08:53]: Info: Color range: [MPEG]
[2024:07:25:13:08:53]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:54]: Info: Gamepad 0 will be Xbox 360 controller (default)
[2024:07:25:13:09:50]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:09:50]: Info: Active GPU has HAGS enabled
[2024:07:25:13:09:50]: Info: Using realtime GPU priority
[2024:07:25:13:09:50]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:09:50]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:09:50]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:09:50]: Info: Requested frame rate [60fps]
[2024:07:25:13:09:50]: 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.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:09:50]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:09:50]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:09:50]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:09:50]: Info: Color depth: 8-bit
[2024:07:25:13:09:50]: Info: Color range: [MPEG]
[2024:07:25:13:09:50]: Info: NvEnc: created encoder P4 two-pass

Additional context

Why is Moonlight sending Client disconnects when the user hasn't instructed to Quit the Session? shouldn't it just minimise the remote session without sending those disconnect events?

Related thread: LizardByte/Sunshine#2913

@Azuriye Azuriye added the bug label Jul 25, 2024
@ClassicOldSong
Copy link

This should be a Sunshine issue. Moonlight android can't keep the stream active while being put to background, even if it can, you'll still wasting bandwidth for a stream that you're not viewing.

The only way to prevent stream being destroyed when returning to Home Screen is enable Picture in Picture mode in moonlight settings, but that still can't prevent it from being disconnected while switching apps. You have to go to Home Screen first then open other apps.

@Azuriye
Copy link
Author

Azuriye commented Jul 25, 2024

This should be a Sunshine issue. Moonlight android can't keep the stream active while being put to background, even if it can, you'll still wasting bandwidth for a stream that you're not viewing.

The only way to prevent stream being destroyed when returning to Home Screen is enable Picture in Picture mode in moonlight settings, but that still can't prevent it from being disconnected while switching apps. You have to go to Home Screen first then open other apps.

Thanks for the quick reply, Yes I had tried the Picture in Picture mode but like you've mentioned, if I switch over apps the stream is cut. I had opened up an issue similar to this in Sunshine but just wanted to know where exactly the problem lies. Closing this thread.

@Azuriye Azuriye closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants