Rantunah / moonlight-toggler

Script that switches monitor profiles automatically while Nvidia is streaming through GameStream.
Mozilla Public License 2.0
14 stars 1 forks source link

End of Nvidia Gamestream -> Sunshine? #1

Open thomasfjen opened 1 year ago

thomasfjen commented 1 year ago

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!

Rantunah commented 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.

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.

thomasfjen commented 1 year ago

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!

voidxO7 commented 2 months ago

Hey man! I think this is really cool, do you think you would ever update it in the future?