Check out our Monthly Survey Page to see what our users are running.
Gamemode scripts not working with steam
zany130 Sep 8, 2021
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!): https://hastebin.com/ibakeqovuy.apache

You can note your issue below here

just like I reported here https://forum.garudalinux.org/t/gamemode-not-working-with-steam/11683 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 https://github.com/FeralInteractive/gamemode/issues/45

https://hastebin.com/vaqonoyepo.sql

Last edited by zany130 on 8 September 2021 at 6:32 pm UTC
whizse Sep 11, 2021
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 Sep 12, 2021
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 Sep 17, 2021
game mode seems to have broke again and I can't figure out why the overclock doesn't seem to be working anymore either https://gist.github.com/zany130/06385652a9dc70348beb321c8c3b8a68

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

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring 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 Google
Social logins require cookies to stay logged in.