Provided by: gamemode_1.5~git20190722.4ecac89-1build3_amd64 bug


       gamemoded - optimises system performance on demand


       gamemoded [OPTIONS...]


       GameMode  is  a  daemon/lib  combo  for  Linux  that  allows  games  to  request  a set of
       optimisations be temporarily applied to the host OS.

       The design has a clear cut abstraction between the host daemon and library (gamemoded  and
       libgamemode),  and  the client loaders (libgamemodeauto and gamemode_client.h) that allows
       for safe usage without worrying about whether the daemon is  installed  or  running.  This
       design  also  means that while the host library currently relies on systemd for exchanging
       messages with the daemon, it's entirely possible to implement other internals  that  still
       work with the same clients.

       GameMode  was designed primarily as a stop-gap solution to problems with the Intel and AMD
       CPU powersave or ondemand governors, but is  intended  to  be  expanded  beyond  just  CPU
       governor states, as there are a wealth of automation tasks one might want to apply.


       -r[PID], --request=[PID]
               Toggle gamemode for process.  When no PID given, requests gamemode and pauses

       -s[PID], --status=[PID]
               Query  the  status  of  gamemode for process When no PID given, queries the status

       -d, --daemonize
               Run the daemon as a separate process (daemonize it)

       -l, --log-to-syslog
               Log to syslog

       -h, --help
               Print help text

       -t, --test
               Run diagnostic tests on the current installation

       -v, --version
               Print the version

USAGE can be pre-loaded into any program to request gamemoded begin or  end
       the mode, like so:

           gamemoderun ./game

       Or by setting the Steam launch options for a game:

           gamemoderun %command%

       The library can be manually preloaded if needed:

           LD_PRELOAD=$LD_PRELOAD:/usr/\$LIB/ ./game

       It  is possible to set additional start commands to gamemoderun by setting the environment


       When this is set, gamemoderun will execute the command given by that environment variable,
       and  the  command  line passed to gamemoderun will be passed as arguments to that command.
       GameMode will not be applied to the wrapper command, just the game itself.

       The gamemode_client.h header can be used by  developers  to  build  the  requests  into  a

           #include "gamemode_client.h"

               if( gamemode_request_start() < 0 ) {
                   fprintf( stderr, "gamemode request failed: %s\n", gamemode_error_string() )

               /* run the process */

               /* Not required, gamemoded can clean up after game exits */

       Atlernatively   developers   can   define   GAMEMODE_AUTO   to   mimic  the  behaviour  of

           #define GAMEMODE_AUTO
           #include "gamemode_client.h"

       Or, distribute and either link with -lgamemodeauto or  inject  it  as
       above with LD_PRELOAD.


       gamemoded  will  load  and  merge  gamemode.ini config files from these directories in the
       following order:

           $XDG_CONFIG_HOME or $HOME/.config/

       Behaviour of the config file can be explained by presenting a commented example:

           ; The reaper thread will check every 5 seconds for exited clients and for config file changes

           ; The desired governor is used when entering GameMode instead of "performance"
           ; The default governer is used when leaving GameMode instead of restoring the original value

           ; GameMode can change the scheduler policy to SCHED_ISO on kernels which support it (currently
           ; not supported by upstream kernels). Can be set to "auto", "on" or "off". "auto" will enable
           ; with 4 or more CPU cores. "on" will always enable. Defaults to "off".

           ; GameMode can renice game processes. You can put any value between 0 and 20 here, the value
           ; will be negated and applied as a nice value (0 means no change). Defaults to 0.

           ; By default, GameMode adjusts the iopriority of clients to BE/0, you can put any value
           ; between 0 and 7 here (with 0 being highest priority), or one of the special values
           ; "off" (to disable) or "reset" (to restore Linux default behavior based on CPU priority),
           ; currently, only the best-effort class is supported thus you cannot set it here

           ; Sets whether gamemode will inhibit the screensaver when active
           ; Defaults to 1

           ; If "whitelist" entry has a value(s)
           ; gamemode will reject anything not in the whitelist

           ; Gamemode will always reject anything in the blacklist
           ;    glxgears

           ; Here Be Dragons!
           ; Warning: Use these settings at your own risk
           ; Any damage to hardware incurred due to this feature is your responsibility and yours alone
           ; It is also highly recommended you try these settings out first manually to find the sweet spots

           ; Setting this to the keyphrase "accept-responsibility" will allow gamemode to apply GPU optimisations such as overclocks

           ; The DRM device number on the system (usually 0), ie. the number in /sys/class/drm/card0/

           ; Nvidia specific settings
           ; Requires the coolbits extension activated in nvidia-xconfig
           ; This corresponds to the desired GPUPowerMizerMode
           ; "Adaptive"=0 "Prefer Maximum Performance"=1 and "Auto"=2
           ; See NV_CTRL_GPU_POWER_MIZER_MODE and friends in

           ; These will modify the core and mem clocks of the highest perf state in the Nvidia PowerMizer
           ; They are measured as Mhz offsets from the baseline, 0 will reset values to default, -1 or unset will not modify values

           ; AMD specific settings
           ; Requires a relatively up to date AMDGPU kernel module
           ; See:
           ; It is also highly recommended you use lm-sensors (or other available tools) to verify card temperatures
           ; This corresponds to power_dpm_force_performance_level, "manual" is not supported for now

           ; This section controls the new gamemode functions gamemode_request_start_for and gamemode_request_end_for
           ; The whilelist and blacklist control which supervisor programs are allowed to make the above requests

           ; In case you want to allow a supervisor to take full control of gamemode, this option can be set
           ; This will only allow gamemode clients to be registered by using the above functions by a supervisor client

           ; Custom scripts (executed using the shell) when gamemode starts and ends
           ;start=notify-send "GameMode started"
           ;    /home/me/bin/

           ;end=notify-send "GameMode ended"
           ;    /home/me/bin/

           ; Timeout for scripts (seconds). Scripts will be killed if they do not complete within this time.




       GameMode source can be found at


       Feral Interactive (