FeralInteractive / gamemode

Optimise Linux system performance on demand
BSD 3-Clause "New" or "Revised" License
4.85k stars 188 forks source link

Gamemode refuses to work without CPU governor #411

Open popcornkerne1 opened 1 year ago

popcornkerne1 commented 1 year ago

While compiling gamemode I got the warning about the CPU governor, I agreed and kept on installing, except that when I launch a game with gamemode now, it refuses to launch, and I can't enable AMD Cool n' Quiet in my BIOS because MSI removed it for some reason and it's supposed replacement isn't there, cpufreq doesn't work either

OS: Fedora 37 Kernel: 6.25 Mobo: MSI B450 Mortar Max

SaschaVasarrhelyi commented 12 months ago

In my case the cpufreq dosnt't work with gamemoded. It dosn't change the Governor for my system OS: Ubuntu- Mate 22.04LTS Kernel Linux 6.2.0-1017-lowlatency x86_64 Gamemode version 1.8

Output from Test ~/gamemode$ 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!

I wonder why the Installer (ninja) dosn't ask me for the Root- Passwort on installing. Eventually thats the Point? gamemode-1.7 ask for the Root-Passwort at install.

Makoto009 commented 12 months ago

Exact same for me with Linux Mint 21.2 and Kernel 6.2.0-37-generic

SaschaVasarrhelyi commented 11 months ago

This is the Output from "journalctl --follow" in the Terminal. Its just one of many errors from "Gamemoded 1.8.1" pkexec[19440]: sascha: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/home/sascha] [COMMAND=/usr/libexec/cpugovctl set performance]

gamemoded[19440]: Error executing command as another user: Not authorized Dez 19 22:26:29 gamemoded[19440]: This incident has been reported. Dez 19 22:26:29 gamemoded[19438]: ERROR: External process failed with exit code 127 Dez 19 22:26:29 gamemoded[19438]: ERROR: Output was: Dez 19 22:26:29 gamemoded[19438]: ERROR: Failed to update cpu governor policy Dez 19 22:26:29 gamemoded[19438]: ERROR: Could not call Inhibit on org.freedesktop.ScreenSaver: No route to host Dez 19 22:26:29 gamemoded[19438]: org.freedesktop.DBus.Error.ServiceUnknown Dez 19 22:26:29 gamemoded[19438]: The name org.freedesktop.ScreenSaver was not provided by any .service file

This Errors dosn't exist in "Gamemoded 1.7"