GameMode-1.8.2

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 24. Quality of Life

- Prev

  inih-62

- Next

  Creative Commons License

- Up
- Home

# GameMode-1.8.2

## Introduction to GameMode

The GameMode package provides a daemon, utilities, and libraries which allows games to request optimizations which then get applied to the host temporarily.

### Important

For the lib32 installation instructions, they require new Meson cross files from MLFS, as `--libdir=/usr/lib32` has been moved to the cross files and no longer appear in the instructions. Install the new cross files so that 32-bit libraries don't get installed in `/usr/lib`.

- Download: https://github.com/FeralInteractive/gamemode/releases/download/1.8.2/gamemode-1.8.2.tar.xz

### GameMode Dependencies

Required
D-Bus-1.16.2
Recommended
inih-62, Systemd-259.1, and Polkit-127 (for the daemon)
Optional
AppStream

## Installation of GameMode

Install GameMode by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr                      \
                --libexecdir=/usr/libexec/gamemode \
                --buildtype=release                \
                .. &&
    ninja

Now, as the `root` user:

    ninja install

If you installed the recommended dependencies and haven't installed this package just as a dependency, enable the daemon for every user as the `root` user:

    systemctl enable --global gamemoded

## lib32 Installation of GameMode

Install lib32-GameMode by running the following commands:

    rm -rf * &&
    meson setup --prefix=/usr                     \
                --buildtype=release               \
                --cross-file=lib32                \
                -D with-sd-bus-provider=no-daemon \
                .. &&
    ninja

Now, as the `root` user:

    DESTDIR=$PWD/DESTDIR ninja install    &&
    cp -vR DESTDIR/usr/lib32/* /usr/lib32 &&
    rm -rf DESTDIR                        &&
    ldconfig

## Command Explanations

### Note

Inspect `meson_options.txt` or `meson.options` for a full list of options.

`--libexecdir=/usr/libexec/gamemode`: This parameter ensures there are no binary conflicts in `/usr/libexec`.

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

`-D with-sd-bus-provider=no-daemon`: This parameter disables building the daemon which requires Systemd-259.1 and inih. This is used in the lib32 build since the daemon doesn't provide any libraries.

## Contents

Installed Program: gamemoded, gamemodelist, gamemoderun
Installed Library: libgamemodeauto and libgamemode
Installed Directory: /usr/libexec/gamemode

### Short Descriptions

gamemoded | is the GameMode daemon
gamemodelist | finds running process for GameMode
gamemoderun | loads GameMode for an application/game
`libgamemodeauto` | automatically requests GameMode upon loading
`libgamemode` | dispatches requests to gamemoded

- Prev

  inih-62

- Next

  Creative Commons License

- Up
- Home