Sunshine gamemode auto resoultion changing
I have recently purchased a steamdeck and fallen in love with how well steamos works on the steamdeck.
It convinced me to build a new gaming PC which I have just finished setting up I am running the bazzite-deck image on it as I wanted to look at hooking the PC up to a TV and use it similar to a gaming console.
However I also wanted to be able to stream games via sunshine to my steamdeck.
I have successfully installed sunshine and have it working with streaming to moonlight on my steamdeck using the desktop streaming default option when bazzite is running gamemode. At the moment I can then manual change the resolution in gamemode to 1280x800 and games look great on my steamdeck.
However I was wanting to look at setting up sunshine to automatically change the screen resolution to 1280x800 for the steamdeck when it connects via moonlight and I am having some issues with working out how I could achieve this when bazzite is running in gamemode.
I managed to get this working in desktop mode using the following Command Preparations in sunshine with kscreen-doctor to change when launching Steam Big Picture in desktop
Do Command - flatpak-spawn --host kscreen-doctor output.1.mode.22
Undo Command - flatpak-spawn --host kscreen-doctor output.1.mode.2
Which works perfectly and changes the resolution when my steamdeck connects from moonlight.
However I was wondering how I can achieve something similar when bazzite is running in gamemode0 Replies