Hello! I'm experiencing a potential issue with Sunshine and/or Bazzite. I have a fairly fresh system (installed yesterday) using the prerelease version of Sunshine. I also tested this on the stable release of sunshine as well with the same results.
My intended sequence of events is to be in Bazzite's gaming mode which is displayed on my TV at 4K resolution. Upon starting a session from my android handeld via Moonlight I would like to drop the resolution down to 1080p. Upon disconnection I'd like to revert back to 4K.
I set up the following command for the "do" hook of my app:
/usr/bin/kscreen-doctor output.HDMI-A-1.mode.1920x1080@120
I have a similiar command to revert back to 4k with the "undo" hook:
/usr/bin/kscreen-doctor output.HDMI-A-1.mode.3840x2160@120
I have ensured that HDMI-A-1 is the correct interface for my HDMI output.
Sunshine attempts to run the command but it fails with error code "6".
Interestingly, if I run that command via the terminal from Bazzite's desktop environment, it works as expected. Only when running from the "Game Mode" environment of Bazzite does it fail.
I assume that because I'm in Game Mode, KDE isn't being used and kscreen-doctor is not longer applicable.
Could this have something to do with Gamescope? Is there a way to change Gamescope's resolution on the fly or reset it via scripts?