diff --git a/sunshine/config.cpp b/sunshine/config.cpp index 83c7db9b..cccce8be 100644 --- a/sunshine/config.cpp +++ b/sunshine/config.cpp @@ -105,7 +105,8 @@ video_t video { {}, // encoder {}, // adapter_name - {} // output_name + {}, // output_name + -1 }; audio_t audio {}; @@ -371,6 +372,8 @@ void apply_config(std::unordered_map &&vars) { string_f(vars, "audio_sink", audio.sink); + int_between_f(vars, "linux_monitor_id", video.linux_monitor_id, { 0, 32 }); + string_restricted_f(vars, "origin_pin_allowed", nvhttp.origin_pin_allowed, { "pc"sv, "lan"sv, "wan"sv }); diff --git a/sunshine/platform/linux/display.cpp b/sunshine/platform/linux/display.cpp index b3869d92..5729afbf 100644 --- a/sunshine/platform/linux/display.cpp +++ b/sunshine/platform/linux/display.cpp @@ -202,7 +202,8 @@ struct x11_attr_t: public display_t if (streamedMonitor != -1) //If the value has been set at all { - BOOST_LOG(warning) << "Configuring selected monitor to stream. If it fails here, you may need Xrandr >= 1.5"sv; + + BOOST_LOG(info) << "Configuring selected monitor ("<< streamedMonitor<<") to stream. If it fails here, you may need Xrandr >= 1.5"sv; XRRScreenResources *screenr = XRRGetScreenResources(displayDisplay, xwindow); // This is the key right here. Use XRRScreenResources::noutput int output = screenr->noutput;