RetroFed Forum
Your home away from modern life.
What to do after install Fedora, plus some gaming tips.
Post Reply
AuthorMessage
Lemmit.Online bot Bot bot@lemmit.online
Joined: 2023-06-18
Quote

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/fedora by /u/fagnerln on 2026-06-22 22:31:39+00:00.


First of all, sorry for my bad english.

I tried to list step by step what I do on my system to leave it as I like to help some friends, but then I decided to make it public.

As I’m on KDE, I’ll use kwrite to create/edit files, it’s a great text editor, but if you’re on another DE, just make your way, it’s a similar process.

PREPARATIONS

The first thing to do is update the packages.

Just run:

sudo dnf upgrade

It’s a good idea to reboot the computer.

ENABLE RPM FUSION

RPM Fusion is crucial to install codecs and some proprietary softwares/drivers.

Run:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Install Appstream Metadata (to install RPM Fusion applications on GUI installers):

sudo dnf update @core

sudo dnf install rpmfusion-\*-appstream-data

INSTALL NVIDIA DRIVERS

As I said, I don’t have a nvidia card, so not sure how it works, but check the sources at the end of the post to read more (techhut dot tv link).

If you have a newer GPU than GTX-10 series:

sudo dnf install akmod-nvidia

If you have a GTX-10 and older:

sudo dnf install akmod-nvidia-580xx

INSTALL CODECS

You must enable RPM Fusion and upgrade the system first, then:

Run:

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

sudo dnf install @multimedia @sound-and-video ffmpeg-libs gstreamer1-plugins-{bad-*,good-*,base} gstreamer1-plugin-openh264 gstreamer1-libav lame* --allowerasing

To install hardware accelerated codecs:

AMD:

sudo dnf install mesa-va-drivers-freeworld mesa-va-drivers-freeworld.i686

NVIDIA:

sudo dnf install libva-nvidia-driver.{i686,x86_64}
Intel:

sudo dnf install intel-media-driver

INSTALL FLATPAK AND CONFIGURE FLATHUB

If you enabled it during the installation, maybe this won't be necessary, however, I needed to do this on my laptop, but on my PC it was fine, I just checked.

Install flatpak:

sudo dnf install flatpak

If you’re on KDE, check if discover has the plugin to manage flatpaks:

sudo dnf install plasma-discover-flatpak

Enable flathub:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Some recommendations of Flatpaks:

Bottles:

flatpak install flathub com.usebottles.bottles

Heroic:

flatpak install flathub com.heroicgameslauncher.hgl

VLC (can fix issues with codecs):

flatpak install flathub org.videolan.VLC

Enable Appimage support

It’s probably enabled by default, but who knows?

sudo dnf install fuse-libs

Set the swappiness

Swappiness is a parameter that define how the system manages the RAM and Swap, lower the value, less likely to use swap, and vice versa. Fedora uses ZRAM, so isn’t a big deal, but to me, I prefer to keep using the RAM first. I suggest you to learn about it before any change.

Open/create:

kwrite /etc/sysctl.d/99-swappiness.conf

Add:

vm.swappiness=10

IMO 10 is a good value for those who have at least 16GB of RAM, as I said, learn about it first.

Save the file and apply with:

sudo sysctl --system

Check if it changed with:

cat /proc/sys/vm/swappiness

Enable niceness customization

This is completely optional and can bring stability issues, this will affect the CPU scheduler by prioritizing the process with the lowest NI value, this can fix some issues like alt-tabbing, audio issues, even frame pacing.

The NI levels can be set as -20 (the highest priority as possible) to 19 (the lowest). The recommendation is to not set lower than -10. Again, I suggest you to learn about it before any change.

Run:

kwrite /etc/security/limits.conf

Add at the end of the file:

yourusername - nice -10

Reboot the system.

To test the changes run top, choose the PID of the process you want to renice. And run:

renice -n -10 -p PID

It’s possible to create a script to improve this, I created a small script to do that:

https://github.com/fagnerln/renice-script/tree/main

Install some gaming tools

I recommend installing Steam, MangoHud to monitor fps and temperatures, GameMode to do a boost on CPU (and GPU for the fearless) and Gamescope.

sudo dnf install steam mangohud gamemode.x86_64 gamemode.i686 gamescope

Configure MangoHud

Mangohud can work without a config file, however it’s nice to customize it.

Create the MangoHud folder inside the .config folder, by using:

mkdir ~/.config/MangoHud

Create a config file called MangoHud.conf inside this subfolder.
kwrite ~/.config/MangoHud/MangoHud.conf

And add to the file:

fps_limit=0

preset=3

gamemode

Fps_limit is to limit the framerate of the game, preset is the amount of information mangohud shows (3 is a nice preset IMO, the default is -1), and gamemode is to see if gamemode is running, it’ll be useful.

Go to https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf to see more options.

To use it on steam, press the right click on a game, go to Properties, and put inside Launch Options:

mangohud %command%

Run the game and it should show the FPS metrics.

Configure Gamemode

As MangoHud, there’s no need to configure it, but as we like to tweak, let’s change this.

First we need to create the gamemode.ini file:

kwrite /etc/gamemode.ini

Add:

[general]

reaper_freq=10

desiredgov=performance

desiredprof=performance

softrealtime=on

renice=0

ioprio=0

inhibit_screensaver=1

disable_splitlock=1

Save and reboot

To use it on steam, press the right click on a game, go to Properties, and put inside Launch Options:

gamemoderun %command%

To check if it’s running, use mangohud by setting gamemoderun mangohud %command% as launch option, or by checking if the CPU governor changed by running on terminal:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Go to https://github.com/FeralInteractive/gamemode/blob/master/example/gamemode.ini if you want to know more options.

You can use gamemode to set the niceness if you enabled like explained before, and put your user in the gamemode group with sudo usermod -aG gamemode $(myusername) be aware that the renice value on gamemode is negated, so if you want to set -10, you need to set renice=10.

Be aware that this only works on native games (except counter strike 2).

EXTRAS:

Hide grub on the startup

This is only recommended if Fedora is the only OS in the system

Run:

kwrite /etc/default/grub

Edit and add:

GRUB_TIMEOUT=0

GRUB_TIMEOUT_STYLE=hidden

Save and run:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Change the name shown on the terminal

For some reason on my installation, it shows the bash version instead of my username@machine, so to fix it:

Create or edit .bashrc, and add:

export PS1='[\e[1;32m]\u@\h[\e[0m]:\w$ '

Fix the right mouse click on touchpad not working on GNOME

Just run:

gsettings set org.gnome.desktop.peripherals.touchpad click-method 'areas'

You know, gnome way.

Sources:

https://techhut.tv/fedora-44-post-install-guide .

https://rpmfusion.org/Configuration .

https://rpmfusion.org/Howto/Multimedia .

https://docs.fedoraproject.org/en-US/quick-docs/flathub-flatpak-applications/ .

https://flathub.org/pt-BR .

https://linuxize.com/post/how-to-change-the-swappiness-value-in-linux/ .

https://www.reddit.com/r/linux_gaming/comments/1658ky0/this_little_thing_can_fix_audio_crackling_in/ .

https://github.com/flightlessmango/MangoHud .

1   Original
Post Reply
Back to top