Here is the test case I've used; I'm using glmark2 as "the game".
sudo apt install gamemode glmark2
Reboot.
Log in and check that gamemode is not running by default:
ps -efH | grep gamemode | grep -v grep
Check what CPU `scaling_governor` is enabled by default, it should report `powersave`
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor powersave powersave powersave powersave
Invoke gamemode.
gamemoderun glmark2
This should have activated `gamemoded`, check the process has been started:
While the game is running check what CPU `scaling_governor` is active, it should report `performance`.
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor performance performance performance performance
Quit the game and check the CPU `scaling_governor` again, it should now report `powersave`.
I have also used the GameMode extension for GNOME and it correctly reports when gamemode has been activated.
* https://github.com/gicmo/gamemode-extension
Here is the test case I've used; I'm using glmark2 as "the game".
sudo apt install gamemode glmark2
Reboot.
Log in and check that gamemode is not running by default:
ps -efH | grep gamemode | grep -v grep
Check what CPU `scaling_governor` is enabled by default, it should report `powersave`
cat /sys/devices/ system/ cpu/cpu* /cpufreq/ scaling_ governor
powersave
powersave
powersave
powersave
Invoke gamemode.
gamemoderun glmark2
This should have activated `gamemoded`, check the process has been started:
ps -efH | grep gamemode | grep -v grep
While the game is running check what CPU `scaling_governor` is active, it should report `performance`.
cat /sys/devices/ system/ cpu/cpu* /cpufreq/ scaling_ governor
performance
performance
performance
performance
Quit the game and check the CPU `scaling_governor` again, it should now report `powersave`.
cat /sys/devices/ system/ cpu/cpu* /cpufreq/ scaling_ governor
powersave
powersave
powersave
powersave
I have also used the GameMode extension for GNOME and it correctly reports when gamemode has been activated.
* https:/ /github. com/gicmo/ gamemode- extension