mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Initial 0.1 commit
This is a small daemon/libary to enable games to request a performance "game mode" from the system. Currently only implemented to upgrade the CPU governor and automatically downgrade it once done. A game only needs to load libgamemodeauto to activate the request. Which means an LD_PRELOAD can be applied to any game to activate the mode as needed. However gamemode_client.h can be used to manually activate/deactivate the mode as needed, and also perform error checking. The libs are miminal loaders to call into an installed libgamemode which, if the daemon is installed and running, will send through the equivelant game mode request, and magic will happen. See the README.md for more details. Currently licensed under the BSD 3 clause license.
This commit is contained in:
5
data/cpugovctl_perms.sh
Normal file
5
data/cpugovctl_perms.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Allow cpugovctl to control the governors
|
||||
chmod +4555 ${MESON_INSTALL_PREFIX}/bin/cpugovctl
|
||||
|
10
data/gamemoded.service
Normal file
10
data/gamemoded.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=gamemoded
|
||||
|
||||
[Service]
|
||||
Type=dbus
|
||||
BusName=com.feralinteractive.GameMode
|
||||
ExecStart=/usr/bin/gamemoded -l
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Reference in New Issue
Block a user