change resolution of gaming mode without the use of the ui?

I am trying to script something up for dynamic resolution and I am wondering if there is a way to change the resolution of the game mode delivered with bazzite deck without going through the settings > display menus.
7 Replies
HikariKnight
HikariKnight•2mo ago
gamemode runs at max resolution that the display supports, no way to change that.
ZombieNeuromancer
ZombieNeuromancerOP•2mo ago
alright thanks!
Dax
Dax•4w ago
I too am looking to use a custom resolution for my usecase. I was inspecting some of bazzite's configuration files and session files around the gamescope session and came across /user/share/gamescope-session-plus/gamescope-session-plus and it has this snippet (see attached). My understanding is that you can override these variables like SCREEN_WIDTH, SCREEN_HEIGHT, INTERNAL_WIDTH, INTERNAL_HEIGHT, ORIENTATION, etc., to change how gamescope behaves. Changing for example orientation on one of my devices by adding the appropriate environment varible in /etc/environmentshad the desired effect. You're saying that it is not possible to change the resolution, yet these options exist. Are they then, dummy options, with maybe an intent to implement this customizability? Otherwise, I have no idea why this section is here.
matt_schwartz
matt_schwartz•4w ago
GitHub
GitHub - ChimeraOS/gamescope-session: A gamescope based user session
A gamescope based user session. Contribute to ChimeraOS/gamescope-session development by creating an account on GitHub.
matt_schwartz
matt_schwartz•4w ago
some of this only applies to external panels, internal panels you cannot change the base resolution
HikariKnight
HikariKnight•4w ago
and a lot of the internal panels get very angry when you change the resolution, see lenovo legion go
Dax
Dax•4w ago
thank you. I did double check the panel to see what was supported and was using those resolutions, guess I was too hopeful that it would work 😄

Did you find this page helpful?