8. Enable Wayland with NVIDIA 555.42.02 / 550.78 / 535.179 / 470.239.06 proprietary drivers on Fedora 40/39/38 GNOME 46/45/44 desktop

This is guide, howto enable NVIDIA accelerated 3D rendering and Wayland (Xwayland) on on Fedora 40/39/38 with NVIDIA 555.42.02 / 550.78 / 535.179 / 470.223.02 proprietary drivers on GNOME 46/45/44. 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 555.42.02 / 550.78 / 535.179 / 470.239.06 drivers installed. Check also NVIDIA’s own guide for this OpenGL and Vulkan on Xwayland.

Check video version of guide NVIDIA + Wayland on Fedora 40 / GNOME 46:

Support inttf:

Buy Me a Coffee:

Check video version of guide NVIDIA + Wayland on Fedora 39 / GNOME 45:

Support inttf:

Buy Me a Coffee:

Check video version of guide NVIDIA + Wayland on Fedora 38 / GNOME 44:

Support inttf:

Buy Me a Coffee:

Before you start you will at least following packages installed:

  • Xwayland >=
  • 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.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 40/39/38 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

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

8.4 Update /usr/lib/udev/rules.d/61-gdm.rules on Fedora 40/39/38

Note: this is only for Fedora GDM users, SDDM+GNOME users can also skip this step.

Comment line

# Check if suspend/resume services necessary for working wayland support is available
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_/'
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"

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)

** Note: this is only for GNOME and Fedora 39/38 users **

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

8.7 Reboot


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


Output should be Wayland.