Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone with no article paywalls. Just good, fresh content! Alternatively, you can donate through PayPal, Liberapay or Buy us a Coffee. You can also buy games using our partner links for GOG and Humble Store.
Gamemode scripts not working with steam
zany130 8 Sep
My System Info

Linux Distribution: Garuda Linux
Desktop Environment: KDE
Graphics Card: GTX 1080
GPU Driver Version: 470.63.01

Have you checked for system updates?: Yes

If this is to do with Steam, please add your system read-out from Steam -> Help -> System Information (please put that into Pastebin/Gist as linked above!):

If this is not Steam, you can still give us a system readout using inxi with "inxi -SbCGxx" in terminal (please put that into Pastebin/Gist as linked above!):

You can note your issue below here

just like I reported here Scripts I wrote to change the primary display on gamemode start and exit are not working when gamemode is run through steam parameters. but it does work when I run gamemode with the test config option in the terminal

Note any particular steps to reproduce it below here
start a game in steam with gamemode added to the launch parameters like this
gamemoderun %command%

gamemode starts but fails to run the script

here are the errors I seem to be getting which seems to be related to this

Last edited by zany130 on 8 September 2021 at 6:32 pm UTC
this might be slightly offtopic but i do not use gamemode,yet i get decent performance on my machine.Solus comes preinstalled with some optimization tools like gamemode but i do not use them at all.

and you could wait until someone responds to your question.
whizse 11 Sep
  • Supporter
It's a bit hard to to follow the different bug reports. But as far as I can surmise depending on how/when the distro starts the gamemode service it will or will not have access to the DISPLAY variable?

Are you running a lot of different sessions? Otherwise DISPLAY will not really change and you can hardcode it in your scripts.
zany130 12 Sep
Was able to solve it by messing around with Nvidia x settings. Apparently something got messed up (which explains more why the overclock part of game mode wasn't but not my scripts)
zany130 17 Sep
game mode seems to have broke again and I can't figure out why the overclock doesn't seem to be working anymore either

Last edited by zany130 on 17 September 2021 at 10:29 pm UTC
While you're here, please consider supporting GamingOnLinux on:

Patreon, Liberapay or PayPal Donation.

This ensures all of our main content remains totally free for everyone with no article paywalls. We also don't have tons of adverts, there's also no tracking and we respect your privacy. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register

Or login with...
Sign in with Steam Sign in with Twitter Sign in with Google
Social logins require cookies to stay logged in.

Livestreams & Videos
Community Livestreams