Installing Fedora on the Zephyrus G14 (2022 version)

This is mostly a step-by-step set of instructions for future me if I ever need to reinstall Fedora on my laptop, but I published it here in case it might be usefull to someone else.

Change hostname

Defaults to fedora, can be changed through the settings app, under sharing or about

Installing asusctl

sudo sed -ise "s/^$/exclude=kernel kernel-core kernel-devel\n/g" /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates-testing.repo
sudo dnf copr enable lukenukem/asus-kernel
sudo dnf copr enable lukenukem/asus-linux
sudo dnf install asusctl supergfxctl asusctl-rog-gui nodejs git
sudo dnf update --refresh
sudo systemctl enable supergfxd.service

Cutting of power to dedicated graphics when running in igpu only mode

Setting supergfxd to Asus causes crashes, so try Std mode:

sudo sed -ise 's/"None"/"Std"/g' /etc/supergfxd.conf

I found this to have dubious benefits with regards to power usage and it causes stability issues when switching back to dedicated graphics, so I just run in hybrid or dgpu only mode for the time being.

Switching between hybrid and dedicated only graphics modes (requires reboot)

Hybrid: asusctl bios -D 1

Dedicated: asusctl bios -D 0

Install & configure supergfxctl-gex

git clone /tmp/supergfxctl-gex && cd /tmp/supergfxctl-gex
npm install
npm run build && npm run install-user
sudo dnf install gnome-extensions-app

Doesn't work for me.

Installing ffmpeg (for video support in Firefox)

sudo dnf -y install$(rpm -E %fedora).noarch.rpm
sudo dnf -y install$(rpm -E %fedora).noarch.rpm
sudo dnf install ffmpeg

Installing full Flathub (for VS Code)

flatpak remote-add --if-not-exists flathub

Fix steam lag on dedicated graphics

Switch to Xorg :( Or to steam beta