1gamemoderun(1) gamemoderun man page gamemoderun(1)
2
3
4
6 gamemoderun - invoke gamemode into any program
7
9 gamemoderun PROGRAM
10
12 GameMode is a daemon/lib combo for Linux that allows games to request a
13 set of optimisations be temporarily applied to the host OS.
14
15 The design has a clear cut abstraction between the host daemon and
16 library (gamemoded and libgamemode), and the client loaders (libgamemo‐
17 deauto and gamemode_client.h) that allows for safe usage without worry‐
18 ing about whether the daemon is installed or running. This design also
19 means that while the host library currently relies on systemd for
20 exchanging messages with the daemon, it's entirely possible to imple‐
21 ment other internals that still work with the same clients.
22
23 GameMode was designed primarily as a stop-gap solution to problems with
24 the Intel and AMD CPU powersave or ondemand governors, but is intended
25 to be expanded beyond just CPU governor states, as there are a wealth
26 of automation tasks one might want to apply.
27
28
30 libgamemodeauto.so.0 can be pre-loaded into any program to request
31 gamemoded begin or end the mode, like so:
32
33 gamemoderun ./game
34
35 Or by setting the Steam launch options for a game:
36
37 gamemoderun %command%
38
39 The library can be manually preloaded if needed:
40
41 LD_PRELOAD=$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0 ./game
42
43
45 It is possible to set additional start commands to gamemoderun by set‐
46 ting the environment variable:
47
48 GAMEMODERUNEXEC="command"
49
50 When this is set, gamemoderun will execute the command given by that
51 environment variable, and the command line passed to gamemoderun will
52 be passed as arguments to that command. GameMode will not be applied to
53 the wrapper command, just the game itself.
54
55
57 gamemoded(8)
58
59
61 GameMode source can be found at https://github.com/FeralInterac‐
62 tive/gamemode.git
63
64
66 Feral Interactive (linux-contact@feralinteractive.com)
67
68
69
701.6-dev 4 May 2020 gamemoderun(1)