Replies: 1 comment 2 replies
-
|
I don't think any official moonlight clients tell sunshine what monitor to use. You can use keyboard shortcuts to change the streamed monitor on the fly. I guess AI wouldn't know that though. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Feature Request
Body
Problem Summary
Currently,
output_nameinsunshine.confis a static configuration loaded once at startup. When using thekmscapture method on Linux (Wayland/X11), the Moonlight client's display selection buttons have no effect — only the statically configured monitor is streamed, regardless of which display the user selects in the Moonlight app.Technical Analysis
After reviewing the source code (
src/display_device.cpp,src/rtsp.h,src/nvhttp.cpp):launch_session_t(the RTSP session struct) containswidth,height,fps,appid, etc., but nodisplay_indexormonitor_idfield.parse_configuration()assignsconfig.m_device_id = video_config.output_name;— it only reads from the static config file, never from the client session.kmsgrab.cppinitializes the DRM connector at startup. There is no runtime re-initialization logic to switch connectors on-the-fly.Why This Matters
sunshine.confand restart the service.Proposed Implementation (Theory)
display_index(ormonitor_id) field to the GameStream launch/resume request parameters.display_indextolaunch_session_t.parse_configuration(), use the session'sdisplay_indexto dynamically setconfig.m_device_id.kmsgrab: re-initialize the DRM framebuffer capture when the display changes.Environment
kms(works, static only),pipewire(fails to initialize on GNOME/Wayland),x11(fails to initialize)Current Workaround
Manually edit
sunshine.confto changeoutput_name, then restart the Sunshine service:Request
Please consider implementing dynamic display switching so that multi-monitor users can select displays directly from the Moonlight client UI.
Beta Was this translation helpful? Give feedback.
All reactions