FeralInteractive / gamemode

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

Try to use power-profiles-daemon API to hold performance profile if available #462

Open 3v1n0 opened 6 months ago

3v1n0 commented 6 months ago

In case power-profiles-daemon is installed, that should be used to set request the maximum performances to the CPU and hold that.

DBus documentation is at https://upower.pages.freedesktop.org/power-profiles-daemon/gdbus-org.freedesktop.UPower.PowerProfiles.html (or powerprofilesctl) can be used instead too.

v1993 commented 4 days ago

A simple workaround for the time being is to use GAMEMODERUNEXEC="powerprofilesctl launch" environment variable (make sure to adjust yours accordingly if you're already using it).