Open thomasfjen opened 1 year ago
Hey, thanks for reaching out. I've just made the switch to Sunshine this week so I might be looking into changing the script to set up monitor switching automatically.
I'll give you some quick pointers on how to do it manually though, it's actually way simpler than GameStream.
So, Sunshine lets you set up a command to call when you start streaming an application and another when you stop streaming.
https://localhost:47990/apps
;Edit
;Do
field and in an Undo
field:
• in the Do
field, write the command that switches to your remote
profile.
Assuming you've set up moonlight-toggler
before:
<full_path_to_moonlighttoggler>\moonlight-toggler\bin\MonitorSwitcher.exe -load:<full_path_to_moonlighttoggler>\moonlight-toggler\profiles\remote.xml
• in the Undo
field, write the command that switches to your monitor
profile.
<full_path_to_moonlighttoggler>\moonlight-toggler\bin\MonitorSwitcher.exe -load:<full_path_to_moonlighttoggler>\moonlight-toggler\profiles\monitor.xml
• don't press the +Add
button unless you want to add another command and press the Save
button at the end of the page.
And that's it! After Sunshine restarts, the next time you start the application in Moonlight, your remote
switch should fire automatically. No server process needed.
The only caveat is that if you shut down your PC while streaming, the Undo
command won't fire and you'll still be on the remote
profile.
Funny enough that's exactly how i have done it in the mean time while searching for solution. Only caveat i have is similar to your mentioned problem when shutting down the PC but that's in combination with Moonlight started through SteamOS not closing the moonlight game stream correctly and staying on the remote profile. But i think that's another topic and independent to your tool and moonlight
Thanks!
Hey man! I think this is really cool, do you think you would ever update it in the future?
As you probably know the Nvidia Gamestream solution is coming to an end. Is there a way you could integrate the sunshine streaming solution? As additional benefit you would open the solution to other graphics cards manufacturers.
Thank you anyway to making this nice tool!