-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gamemode 1.8.1 can't set CPU governor and GPU Optimisation #452
Comments
Same issue as above:
ran the command
System info
Additional context |
I reproduce the problem, also using Archlinux - 6-6-7-arch1-1 and gamemode 1.8.1 |
From the new
So I ran the command and added my username to the group |
Just ran into this "issue" and adding myself to the |
In my case that worked not for me. Gamemode can´t change the Governor. I added me to the group gamemode but no success. |
Did you rebooted the machine?
|
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. |
It worked for me without reboot after killing gamemoded process and adding my user to the gamemode group with vi. |
I had the same issue, adding the user to the group fixed it, I even did not need to do a reboot. |
stumbled upon the same issue today and adding myself to the gamemode group fixed it for me. |
I have been looking into this issue as well. I see a change in data/com.feralinteractive.GameMode.policy.in from version 1.7.0 to version 1.8.1. If I use the file from version 1.7.0, everything works. I am no Policykit expert, but to me, it looks like the new version of the policy does not actually allow anything. In any case, tweaking this file seems to work. |
Hello, I have the same line "ERROR: Governor was not set to performance (was actually powersave)!" |
Hi, cd /home/$USER/gamemode then make the uninstall steps again, also systemctl --user stop gamemoded.service It shuld now find the Builddir to uninstall it. |
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 don't get any directory permissions issue, but I do get the ERROR: Governor was not set to performance (was actually schedutil)!
I built:
|
Added myself to gamemode group
This appears to have resolved the immediate issue for me. Arch Linux with gamemode v1.8.1 I do still see the following, not sure what that's about at present
|
Can reproduce, adding oneself to the gamemode group (creating it beforehand if it does not exist) fixes the issue at hand. Edit: Tested on latest Debian stable 12.4 with GNOME |
Added my user to the group (it already existed) and the issue remains. |
It dosen't fix for me too. The Group:gamemode exists and i am in the group gamemode. That dosn't fix the problem on Ubuntu Mate 22.04 LTS with Kernel: Kernel Linux 6.5.0-14-generic x86_64 and Mate: MATE 1.26.0 |
This occurs for me as well, on Arch Linux. Adding myself to the Though, the polkit issue still remains regardless of this quick fix to get gamemode working. |
The polkit issue seems to be resolved by changing the permission of This fix is specific to Arch Linux. I'm unsure if it'll work for any other distros. |
What Polkit Rules Files and rights are in Your Directory? |
I am reinstall the 1.8.1 Version of Gamemode again and take the Terminaloutput here: :~/gamemode$ ./bootstrap.sh
Build targets in project: 10 gamemode 1.8.1 User defined options Found ninja-1.10.1 at /usr/bin/ninja
|
Confirming that adding to group works on opensuse tumbleweed as well.
Then proceed with testing and using on your launcher/games. |
On Ubuntu-Mate 22.04LTS that dosn't work. I'am in the group gamemode but it's not work. |
For those that are still having issues even after adding yourself to the gamemode group (and rebooting)... My setup: Ubuntu 22.04 with the 6.5 kernel (HWE). AMD 5600G CPU. TLDR: I decided to check alternative utilities that would let me set the governor and what my issue might be with gamemode. I had updated to the newer 6.5 kernel for the new performance features for AMD recently. In looking at governor documentation I learned that the 6.5 kernel supports the new AMD p-state driver: https://docs.kernel.org/admin-guide/pm/amd-pstate.html I tried running the cpupower utility, but hit a warning:
I checked and linux-tools-generic points to the 5.15 kernel version, so we need to install the 6.5 version.
Then I'm able to set the governor with cpupower.
After linux-tools-6.5.0-15-generic was installed, I was able to run gamemoded -t successfully. Maybe someone else knows what is in the linux-tools that is required for gamemoderun. And maybe gamemoded could give a warning if it isn't installed.
|
I test it, but it's failed again. |
Hi as a linux noob I just didn't see it was available as a package for Ubuntu. |
Hi, the Ubuntu Packages are very outdated if you use the LTS. The Git- Release are the newest versions of this Application and have to compile by yourself if you want to use the newest App- Version of Gamemode. |
It also happened to me, until I noticed the directory
Notice how in the last message, the content after "was actually" is empty string. In fact the former directory was empty because my kernel (configured by myself) was lacking the correct P-State option for my CPU. |
Same problem on Pop_OS! 22.04, with the 6.6.10-76060610-generic kernel. The gamemode group did not exist, so I created it as a regular user group and added myself to the group - did not work. I then tried creating the group as a system group (gid < 1000) - did not work. Also tried @marcj303's answer by installing the kernel appropriate Ultimately,
Sleuthing on StackExchange, it was said that JavaScript style
Could it really be that polkit < 0.106 won't allow gamemode versions above 1.7 to work at all? |
I'm using gentoo, and gamemode renice isn't working even if after adding my user to the gamemode group. |
Tested on EndeavourOS (polkit 124) and Ubuntu 23.10 (polkit 123) - both worked and passed all tests, which makes me think polkit might be the culprit here. To really ensure that issue lies with polkit, it would have to be upgraded from source on Ubuntu 22.04, keeping as many other packages intact, but I'm not too keen on doing that on the only machine I have and possibly breaking something :/ |
I got it to work, the solution is to create the following .pkla in
Basically, it's the same as the gamemode.rules file but in the older format accepted by the outdated polkit in Ubuntu 22.04. |
I've tried what you pasted, and it still doesn't work for me. id
|
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 |
Here's my
|
I found out the issue. It's the fact that in After more testing the max I can set is -19. -20 doesn't work for somereason despite setting -20 in gamemode.conf |
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. |
Hi @ralmachado, you are right, |
:~$ gamemoded -v :~$ gamemoded -t :: Basic client tests :: Dual client tests :: Gamemoderun and reaper thread tests :: Supervisor tests :: Feature tests : All Tests Passed! Good work |
I faced the same problem, but in slightly different conditions, as it seemed to me, however, the solution #452 (comment) 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 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. 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?
|
little update: When using the game, I see that the value of I don't know if it's related, but I was interested in checking it out. |
Linux mint 21.3 here.
This Comment worked! |
This is the policy that helped me: // /etc/polkit-1/rules.d/10-gamemode.rules
polkit.addRule(function(action, subject) {
if (action.id.match("com.feralinteractive.GameMode.governor-helper") ||
action.id.match("com.feralinteractive.GameMode.gpu-helper") ||
action.id.match("com.feralinteractive.GameMode.cpu-helper") ||
action.id.match("com.feralinteractive.GameMode.procsys-helper")) {
if (subject.isInGroup("gamemode") || subject.user === "<YOUR USERNAME>") {
return polkit.Result.YES;
}
}
}); |
Thanks a lot. That indeed solved it for me on Pop!_OS 22.04. Noob question: Creating that file is harmless, or it can create hypothetical issues with other apps? |
In theory, no. The pkla is simply an older format for polkit rules, and the one I posted is simply the translation of |
I get This is on artix linux. EDIT: I was able to fix the issue by manually creating the group with |
Describe the bug
Update gamemode to 1.8.1 and get this when install
Run
gamemoded -t
and it would fail with this messageTo Reproduce
Steps used to reproduce the behavior:
gamemoded -t
Tests Failed!
Expected behavior
: All Tests Passed!
after runninggamemoded -t
System Info (please complete the following information):
Additional context
Downgrade to GameMode version 1.7 and it work again.
The text was updated successfully, but these errors were encountered: