NVIDIA 530.30.02 / 525.85.05 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 + Xwayland on Fedora 37/36/35/34 and GNOME 43/42/41

This is guide, howto enable NVIDIA accelerated 3D rendering and Xwayland on on Fedora 37/36/35/34 with NVIDIA 530.30.02/525.89.02/520.56.06/515.76/510.85.02/470.141.03 proprietary drivers on GNOME 43/42/41/40. Tested with latest NVIDIA drivers, I assume here that you have installed NVIDIA drivers using this guide. This might work normally with any other installation methods too, but it’s not tested.

Note: Do this using fully updated system and latest kernel, also NVIDIA 530.30.02 / 525.89.02 / 520.56.06 / 515.76 / 510.73.05 / 470.129.06 drivers installed. Check also NVIDIA’s own guide for this OpenGL and Vulkan on Xwayland.

Check video version of guide howto enable Wayland with NVIDIA on Fedora 37 and GNOME 43:

Watch More Videos and Subscribe to
if-not-true-then-false.com Youtube Channel
 

Check video version of guide:

Before you start you will at least following packages installed:

  • Xwayland >= 21.1.1.901
  • libxcb >= 1.13
  • egl-wayland >= 1.1.7

Check your packages using following command:

dnf list installed xorg-x11-server-Xwayland libxcb egl-wayland

If some missing, then install all using following command:

dnf install xorg-x11-server-Xwayland libxcb egl-wayland

8. Enable Xwayland with NVIDIA 530.30.02 / 525.89.02 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 proprietary drivers on Fedora 37/36/35/34 GNOME 43/42/41 desktop

8.1 Change root user

su -
## OR ##
sudo -i

8.2 Edit /etc/default/grub

Append ‘nvidia-drm.modeset=1’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘.

## Example row with Fedora 37/36/35/34 BTRFS ##
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau nvidia-drm.modeset=1"
## OR with LVM ##
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau nvidia-drm.modeset=1"

8.3 Update grub2 conf

Fedora 37/36/35/34

## BIOS and UEFI ##
grub2-mkconfig -o /boot/grub2/grub.cfg

Fedora 33/32/31/30

## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg
## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

8.4 Update /usr/lib/udev/rules.d/61-gdm.rules

This is needed currently on Fedora 37 / GNOME 43

Comment line which starts with IMPORT{program}= and ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!=”1″:

TEST{0711}!="/usr/bin/nvidia-sleep.sh", GOTO="gdm_disable_wayland"
TEST{0711}!="/usr/lib/systemd/system-sleep/nvidia", GOTO="gdm_disable_wayland"
#IMPORT{program}="/bin/sh -c \"sed -e 's/: /=/g' -e 's/\([^[:upper:]]\)\([[:upper:]]\)/\1_\2/g' -e 's/[[:lower:]]/\U&/g' -e 's/^/NVIDIA_/' /proc/driver/nvidia/params\""
#ENV{NVIDIA_PRESERVE_VIDEO_MEMORY_ALLOCATIONS}!="1", GOTO="gdm_disable_wayland"
IMPORT{program}="/bin/sh -c 'echo NVIDIA_HIBERNATE=`systemctl is-enabled nvidia-hibernate`'"
ENV{NVIDIA_HIBERNATE}!="enabled", GOTO="gdm_disable_wayland"
IMPORT{program}="/bin/sh -c 'echo NVIDIA_RESUME=`systemctl is-enabled nvidia-resume`'"
ENV{NVIDIA_RESUME}!="enabled", GOTO="gdm_disable_wayland"
IMPORT{program}="/bin/sh -c 'echo NVIDIA_SUSPEND=`systemctl is-enabled nvidia-suspend`'"
ENV{NVIDIA_SUSPEND}!="enabled", GOTO="gdm_disable_wayland"
LABEL="gdm_nvidia_end"

8.5 Generate initramfs

## Backup old initramfs nvidia-nomodeset image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nvidia-nomodeset.img
 
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)

8.6 Enable kms-modifiers through gsettings (as normal user)

gsettings set org.gnome.mutter experimental-features [\"kms-modifiers\"]

8.7 Reboot

reboot

When you system boot you should be able to select GNOME Wayland session, login using it and open terminal and type:

echo $XDG_SESSION_TYPE

Output should be Wayland.

3,232 comments on “NVIDIA 530.30.02 / 525.85.05 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 + Xwayland on Fedora 37/36/35/34 and GNOME 43/42/41

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close