Skip to content

Instantly share code, notes, and snippets.

@d-kja
Last active December 26, 2024 17:33
Show Gist options
  • Save d-kja/734f177ac52f1594c4924f585aa58195 to your computer and use it in GitHub Desktop.
Save d-kja/734f177ac52f1594c4924f585aa58195 to your computer and use it in GitHub Desktop.
FEDORA

CONTENT TABLE


UPDATE GRUB CONFIGURATION

Referece


Enable RPM && Corp and reboot

sudo dnf install -y 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 &&
sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1 &&
sudo dnf install -y dnf-plugins-core &&
sudo reboot

Install drivers

sudo dnf install "kernel-devel-uname-r >= $(uname -r)" -y &&
sudo dnf update -y &&
sudo dnf install rpmfusion-nonfree-release-tainted -y &&
sudo dnf distro-sync "*nvidia*" &&
sudo dnf copr enable kwizart/nvidia-driver-rawhide -y &&
sudo dnf install rpmfusion-nonfree-release-rawhide -y &&
sudo dnf install gcc kernel-headers xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-cuda-libs xorg-x11-drv-nvidia-power vulkan nvidia-vaapi-driver libva-utils vdpauinfo -y &&
sudo dnf --enablerepo=rpmfusion-nonfree-rawhide install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda --nogpgcheck -y &&
sudo systemctl enable nvidia-{suspend,resume,hibernate} &&
sudo sh -c 'echo "%_with_kmod_nvidia_open 1" > /etc/rpm/macros.nvidia-kmod' &&
sudo akmods --kernels $(uname -r) --rebuild

Compile drivers

sudo akmods --force &&
sudo dracut --force

ENABLE KMS

To disable, use:

sudo grubby --update-kernel=ALL --remove-args='nvidia-drm.modeset=1'

To re-enable, use

sudo grubby --update-kernel=ALL --args='nvidia-drm.modeset=1'

CHECK NVIDIA DRIVER INFO

vdpauinfo

CHECK COMPOSITOR INFO

vainfo

Refer to /usr/share/doc/akmods/README.secureboot for more information.

sudo dnf install kmodtool akmods mokutil openssl &&
sudo kmodgenca -a &&
sudo mokutil --import /etc/pki/akmods/certs/public_key.der && # PASSWORD STEP 
systemctl reboot

After reboot a new screen is going to popup

Steps: Enroll MOK > Continue > View key 0 > Yes > Type the password


HYPRLAND

Enable wayland, uncomment WaylandEnable=true

sudo -H gedit /etc/gdm/custom.conf

# OR

sudo -H gedit /etc/gdm3/custom.conf

PACKAGES

sudo dnf copr enable solopasha/hyprland && 
# REQUIRED
sudo dnf install curl gawk git grim gvfs gvfs-mtp ImageMagick jq inxi kitty kvantum mate-polkit nano network-manager-applet openssl pamixer pavucontrol pipewire-alsa pipewire-utils playerctl python3-requests python3-pip python3-pyquery qt5ct qt6ct qt6-qtsvg rofi-wayland slurp swappy waybar wget2 wl-clipboard wlogout xdg-user-dirs xdg-utils yad -y &&
# OPTIONAL
sudo dnf install brightnessctl btop cava eog fastfetch gnome-system-monitor mousepad mpv mpv-mpris nvtop qalculate-gtk vim-enhanced aylurs-gtk-shell cliphist nwg-look SwayNotificationCenter pamixer swww wallust -y
# REMOVE (causes conflict)
sudo dnf remove dunst mako rofi -y

OTHER PACKAGES

Reference

@d-kja
Copy link
Author

d-kja commented Sep 29, 2024

@d-kja
Copy link
Author

d-kja commented Oct 4, 2024

@d-kja
Copy link
Author

d-kja commented Oct 6, 2024

POST INSTALL HOOKS

@d-kja
Copy link
Author

d-kja commented Oct 16, 2024

The section for Latest/Beta driver worked with my notebook lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment