Enabling GameMode on Linux for best gaming performance

GameMode is a tool for Linux that enables games to request a set of optimizations to be temporarily applied to the host OS and/or a game process.

GameMode is a combination of various libraries and daemons that allows all the users to improve the gaming performance on the Linux system. Developed by games publisher Feral Interactive, it improves gaming performance by requesting a group of options that will be applied temporarily to the Linux system.

GameMode packages are available for most packaging formats including Ubuntu, Debian, Solus, the AUR, Gentoo, Fedora, OpenSUSE, Mageia and more.

In this tutorial, we are going to guide you through the installation of GameMode on Ubuntu.

Installing GameMode on Ubuntu

Step 1. Install the required dependencies.

sudo apt install meson libsystemd-dev pkg-config ninja-build git libdbus-1-dev dbus-user-session

Install Required Dependencies
Install Required Dependencies

Step 2. To download the source code first, we need to ensure that the git package is installed using the following command.

git --version

The Git Package Version
The Git Package Version

In case the git package is not installed, use the next command to install the git package.

sudo apt install git

Step 3. Use the following command to download the GameMode source code.

git clone https://github.com/FeralInteractive/gamemode.git

Download The GameMode Source Code
Download The Source Code

Step 4. After the download completes successfully, list the content of the home directory, you will find the “gamemode” directory.

ls -l

Directory With Name Gamemode Will Be Found In Your Home
Directory content

Step 5. Move to the newly created GameMode directory.

cd gamemode

Move To The Gamemode Newly Created Directory
navigate

Step 6. Now we need to build the tool using the following command.

./bootstrap.sh

Run The BootStrap Script
Run The BootStrap Script

During the installation, you will be asked to choose the installation location.

Choose Installation Location
Choose Installation Location

Also, you will be asked to enter the sudo password.

You Will Be Asked For Your Sudo Password
Password

After the installation completes successfully, you will get a screen like the below one.

Installation Completed Successfully
Installation Completed Successfully

Step 7. To ensure that the installation is successful, use the below command to check the installed GameMode version.

gamemoded --version

Check The GameMode Installed Version
Check The GameMode Installed Version

Run GameMode on Non-Steam Games

Before allowing the GameMode to run games, we can install a SuperTuxKart game for testing.

Step 1. Add the official package archive repository (PPA) to your system.

sudo add-apt-repository ppa:stk/dev

Add The Package Archive Repository Of SuperTuxKart To Ubuntu
Add The Package Archive Repository Of SuperTuxKart To Ubuntu

Step 2. Update your Ubuntu system repository using the following command.

sudo apt update

Update Your System
Update Your System

Step 3. Now install the SuperTuxKart game using the next command.

sudo apt install supertuxkart

Install The SuperTuxKart
Install The SuperTuxKart

When the installation finishes successfully, you will get something like the below screenshot.

The SuperTuxKart Game Installed Successfully
The SuperTuxKart Game Installed Successfully

Step 4. To run the SuperTuxKart using the GameMode, use the following command.

gamemoderun supertuxkart

Run GameMode on SuperTuxKart
Run SuperTuxKart

The SuperTuxKart should launch.

The SuperTuxKart Game Started Successfully
The SuperTuxKart Game Started Successfully

Overall, if you need to run the games using the GameMode, use the following command.

gamemoderun game_name

That’s it for now.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,521FansLike
364FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to setup FTP Server on CentOS

You are allowed to use any one of the FTP servers as you like. However, in this tutorial, we will be installing and using vsftpd, short for Very Secure FTP Daemon. It is a fast, stable, and secure FTP server that will help you transfer files to and from a remote system in a jiffy.

CentOS Vs. Ubuntu Server : Everything You Need to Know

Choosing the perfect Linux distribution to set up your server can be confusing since Linux provides a limitless number of options. The main reason behind these many distributions is because Linux is an opensource platform. Anybody with the required skills can contribute to the development or build and release their distribution. Currently, there are more than 600 Linux Desktop and Server distributions in the market.

Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

Linux Mint vs. Ubuntu – which is best for you?

The conundrum is that which one among them? The best solution is to try both of them out, and then choose whatever seems to work the best for your needs. But here, we're giving you some distinctions between the both that might make it easier for you to make a choice.

Top 10 reasons to use KDE as your Desktop Environment

In this article, we will take a look at yet another popular desktop environment, KDE. It's one of the most amazing Linux Desktop environments available in the market.

10 Best Video Editing Software for Linux

This article is for all the Linux users out there who are looking for video editors to create their own professional videos, which can range from short documentaries to even movies.

How to make Ubuntu look like Windows XP

If you are in a nostalgic mood and would like to make your Ubuntu look like Windows XP, you just landed in the right place. In this article, we will show you how you can make Ubuntu look like Windows XP by applying the GTK+ theme. Our Ubuntu distribution of choice is Ubuntu 20.04 LTS.