Menu

fedora/

Install multimedia codecs in fedora

If you are experiencing high CPU usage when watching videos on youtube, verify that the following packages are installed (requires RPMFusion repository):

# RPMFuison repositories
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

# Codecs
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
sudo dnf install lame\* --exclude=lame-devel
sudo dnf group upgrade --with-optional Multimedia

CPU usage for i3-8100T is down from 80% to 50% with this video sample

· 16 Jan 2021

High CPU usage on youtube in fedora

I’ve started to experience quite high CPU usage when watching youtube videos on 1440p screen (video sample). By default, youtube loads videos in VP9 codec. Using this codec results in 80% CPU usage (i3-8100T). By installing this extension enhanced-h264ify and by blocking VP8, VP9 and AV1, youtube will load videos in avc1(h.264) codec. The CPU usage is down to about 30%.

Unfortunately, this will disable all 4k videos - they are available only in VP9.

· 14 Jan 2021

Fedora 33: font rendering

Packages from this repository improve font rendering in fedora a lot:

sudo dnf copr enable dawid/better_fonts -y
sudo dnf install fontconfig-font-replacements fontconfig-enhanced-defaults levien-inconsolata-fonts -y
gsettings set org.gnome.desktop.interface document-font-name "Cantarell 11"
gsettings set org.gnome.desktop.interface font-name "Cantarell 11"
gsettings set org.gnome.desktop.interface monospace-font-name "Inconsolata 13"
· 30 Dec 2020

fedora: Lockdown a kernel version

Fedora typically keeps 3 latest kernel versions. However, what if you want to keep an old specific kernel version which is known to work well with your system? First, we need to install a dnf plugin that allows us to keep a specific version of any package:

sudo dnf install python3-dnf-plugins-extras-versionlock

Lets find all available kernel versions for your system:

sudo dnf list kernel --showduplicates

Install that specific version of the kernel:

sudo dnf install kernel-5.3.7-301.fc31

And lock it:

sudo dnf versionlock add kernel-5.3.7-301.fc31

To remove the lock:

sudo dnf versionlock delete kernel-5.3.7-301.fc31
· 1 Jan 2020

Lxd on Fedora 31

Fedora 31 has started to use cgroups v2 by default. According to Common F31 bugs it doesn’t play nice with Docker, lxd and others. To make fedora switch back to the old cgroups:

sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
· 1 Jan 2020

Automatically start application during the boot

To start an application automatically in fedora, you need to create a *.desktop file in the directory ~/.config/autostart, for example:

gedit ~/.config/autostart/flux.desktop

The content of the file can be something like:

[Desktop Entry]
Type=Application
Name=flux
Comment=xflux
Exec=/home/jsn/app/xflux -l 52.3837151 -g 4.8806328
Terminal=false
· 1 Jan 2015

How to find out which package provides a specific file

If you need to find out, for example, which package in fedora provides htpasswd command, you may do it with the command:

yum provides \*bin/htpasswd
· 1 Jan 2015