gamemode: Gamemode 1.8.1 can't set CPU governor and GPU Optimisation
Describe the bug Update gamemode to 1.8.1 and get this when install
warning: directory permissions differ on /usr/share/polkit-1/rules.d/
filesystem: 750 package: 755
Run gamemoded -t
and it would fail with this message
:: Feature tests
::: Verifying CPU governor setting
ERROR: Governor was not set to performance (was actually schedutil)!
::: Failed!
::: Verifying Scripts
::: Passed (no scripts configured to run)
::: Verifying GPU Optimisations
ERROR: Current AMD GPU performance level during gamemode does not match requested value!
expected:high was:auto
::: Failed!
To Reproduce Steps used to reproduce the behavior:
- Update gamemod to 1.8.1
- Run
gamemoded -t
Tests Failed!
Expected behavior
: All Tests Passed!
after running gamemoded -t
System Info (please complete the following information):
- OS and version: ArchLabs - 6.6.8-2-cachyos
- GameMode Version 1.8.1
Additional context Downgrade to GameMode version 1.7 and it work again.
About this issue
- Original URL
- State: open
- Created 6 months ago
- Reactions: 2
- Comments: 45
I got it to work, the solution is to create the following .pkla in
/etc/polkit-1/localauthority/50-local.d
:Basically, it’s the same as the gamemode.rules file but in the older format accepted by the outdated polkit in Ubuntu 22.04.
From the new
gamemode.ini
fileSo I ran the command and added my username to the group
gamemode
, and nowgamemode 1.8.1
work normally. I did not intend to use therenice
function though.Yes. I added me user to the gamemode group with “sudo usermod -aG gamemode sascha” in the terminal , reboot and do install again gamemode-1.8.1 because there was no effect by test gamemode with gamemoded -t in the console. The CPU Governor can’t change from gamemode-1.8.1 but the rest of the test are successfully as it was before.
Can confirm this very issue also happens to me. I’m using gamemode 1.8.1 (happened on 1.8 too, not on 1.7), Pop OS! 22.04 (kernel 6.6.6), already tried adding my user to gamemode group and restarting. Issue still remains.
I faced the same problem, but in slightly different conditions, as it seemed to me, however, the solution https://github.com/FeralInteractive/gamemode/issues/452#issuecomment-1986861524 It helped me.
By default, the version from the standard Ubuntu “1.6.1-1 build2” repository was installed.
I wanted to put together a more recent version. Fortunately, everything worked out the first time, although I often have errors with the assembly of some modules and other things, because I am building an up-to-date stable kernel with clang-18, so the variables
CC=clang-18 CXX=clang-18 LLVM=-18
were set in my environment (I don’t know if it could does this affect a successful build, but suddenly someone will encounter).Immediately after successful completion ./bootstrap.sh I ran the “gamemoded -t” test and got this error.
At first I tried to add myself to the gamemode group, but it didn’t work because there was no such group. However, this was not a problem for version 1.6.1.
After the reboot, I added myself to the group again and this time the group already existed. However, this did not eliminate the problem with passing the tests. Therefore, I created the file
/etc/polkit-1/localauthority/50-local.d/gamemode.pkla
by logging in as root (pkaction version 0.105
). After that, I rebooted, ran the tests and they worked.At the moment, I am observing errors in the log, more specifically, I am interested in what is said about IGPU, can I ignore it and everything is fine or does it need to be solved?
Hi @ralmachado, you are right, i try to make this .pkla file at the right position as you say and it’s work for me with the gamemode 1.8.1. Thank you very much
This is a niceness problem, not really related to this issue, but yes, you should only let usermode processes renice to -19 for safety reasons. Root should be able to renice to -20 to kill any hung processes.
In any case, setting the limit to -19 should be enough, otherwise disable renice in gamemode config.
My solution was intended only for outdated polkit versions (used in Ubuntu LTS), which doesn’t support the shipped polkit rules file.
I tried a clean build in an arch based distro with polkit 124 and it worked. Check
journalctl
output after agamemoded -t
to see if the issue is in fact polkit 😃I don’t get any directory permissions issue, but I do get the ERROR: Governor was not set to performance (was actually schedutil)! I ran built and installed with bootstrap.sh, added myself to the gamemode group, and rebooted. No errors were reported until I ran gamemoded -t.
I built:
Hi, try to open a Terminal (Strg + Alt + t) and type into it
cd /home/$USER/gamemode
then make the uninstall steps again, also
systemctl --user stop gamemoded.service ninja uninstall -C builddir
It shuld now find the Builddir to uninstall it. Greetings
stumbled upon the same issue today and adding myself to the gamemode group fixed it for me.
In my case that worked not for me. Gamemode can´t change the Governor. I added me to the group gamemode but no success.