Tests Fail when Running "gamemoded -t"
Describe the bug The test failed when I runned gamemoded -t
To Reproduce Steps used to reproduce the behavior:
- Launch gamemod with " gamemoded -t "
- Run it 'on the terminal'
- View output of the command
- See error:
sierra@Latitude-7420:~$ gamemoded -t : Loading config Loading config file [/usr/share/gamemode/gamemode.ini] : Running tests
:: Basic client tests :: Passed
:: Dual client tests gamemode request succeeded and is active Quitting by request... :: Passed
:: Gamemoderun and reaper thread tests ...Waiting for child to quit... ...Waiting for reaper thread (reaper_frequency set to 5 seconds)... :: Passed
:: Supervisor tests :: Passed
:: Feature tests ::: Verifying CPU governor setting ERROR: Governor was not set to performance (was actually powersave)! ::: Failed! ::: Verifying Scripts ::: Passed (no scripts configured to run) ::: Verifying GPU Optimisations ::: Passed (gpu optimisations not configured to run) ::: Verifying renice ::: Passed (no renice configured) ::: Verifying ioprio ::: Passed ERROR: :: Failed! : Tests Failed!
Expected behavior Pass all the tests
System Info (please complete the following information):
- OS and version: [Ubuntu 25.04]
- GameMode Version [1.8.2]
Additional context I've installed it on a brand new Ubuntu installation.
Echoing for Debian 13, same failure point
My solution was:
- Check the available governors:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governorsIf performance doesn't show up, it means that your kernel or CPU configuration doesn't have that governor enabled. In that case, you would have to load the module:sudo modprobe cpufreq_performance - change it manually:
sudo cpupower frequency-set -g performance - Make sure you have the gamemoded running:
systemctl --user status gamemoded, If not active:systemctl --user enable --now gamemoded - Now try again
- OS and version: [CachyOS 6.15.3-2-cachyos]
- GameMode Version [1.8.2]
do you still have this problem since i fixed this on my pc so maybe i can help if its still fails or errors?
I encountered a similar issue when installing gamemode on a fresh Kubuntu 25.04 system. After installing the package, the gamemode group was not automatically created, which prevented the service from functioning correctly for my user.
As a workaround, I manually created the group and added my user to it:
# Check if the gamemode group exists
getent group gamemode
# If no output, create the group
sudo groupadd gamemode
# Add the current user to the group
sudo usermod -aG gamemode $USER
After running these commands, log out and back in for the group membership changes to take effect.
This resolved the issue for me.
@AkemiKami201
The result of cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors is :
So I think I do have performance mode available
And the result of systemctl --user status gamemoded is :
So I think that Gamemode is running correctly
@Mattheish I also tried your solution but the gamemode group already exist :
Maybe this can help, I am using TLP
Had the same problem (running latest CachyOS on 6.17.0-4-cachyos). Found a working solution on reddit:
Run sudo usermod -aG gamemode "$(whoami)" - this adds the current user to the gamemode group.
Reboot and run the tests again.