NVIDIA 515.65.01 / 510.85.02 / 470.141.03 + Xwayland / Wayland on openSUSE Leap 15.4 / Tumbleweed and Gnome 42/41

Table of Contents

1. Before NVIDIA drivers installation (openSUSE 15.4/15.3/Tumbleweed)
2. Install NVIDIA proprietary drivers on openSUSE 15.4/15.3/Tumbleweed and disable the nouveau driver
3. Some Screenshots Using Different NVIDIA Cards and Drivers
4. Restore/Change/Update Plymouth After NVIDIA Drivers Installation (BIOS/UEFI Users)
5. openSUSE 15.4/15.3/Tumbleweed Uninstall NVIDIA drivers and Enable Nouveau
6. NVIDIA 515.65.01/510.85.02/470.141.03 + Xwayland / Wayland on openSUSE Leap 15.4 / Tumbleweed and Gnome 42/41
This is guide, howto enable NVIDIA accelerated 3D rendering and Xwayland (Wayland) on on openSUSE Leap 15.4 / Tumbleweed with NVIDIA 510.73.05/470.129.06 proprietary drivers on GNOME 41. 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 515.65.01 / 510.85.02 / 470.141.03 drivers installed. Check also NVIDIA’s own guide for this OpenGL and Vulkan on Xwayland.
Check video guide, howto enable openSUSE Tumbleweed/Leap 15.4 Xwayland/Wayland + NVIDIA 515.65.01 / 510.85.02 / 470.141.03 on GNOME 42/41:

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:

zypper search -si xwayland libxcb1 libwayland-egl1

If some missing, then install all using following command:

zypper install xwayland libxcb1 libwayland-egl1

6. Enable Xwayland with NVIDIA 510.73.05/470.129.06 proprietary drivers on openSUSE Leap 15.4 / Tumbleweed and Gnome 41 desktop

6.1 Change root user

su -
## OR ##
sudo -i

6.2 Edit /etc/default/grub

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

## Example row with openSUSE Leap 15.4 BTRFS ##
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau nvidia-drm.modeset=1"

6.3 Update grub2 conf

openSUSE Leap 15.4 / Tumbleweed

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

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

Comment line which contains GOTO=”gdm_prefer_xorg”:

# Disable wayland when nvidia modeset is disabled or when drivers are a lower
# version than 470, in any case always prefer Xorg
KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
ACTION!="add", GOTO="gdm_nvidia_drm_end"
# disable wayland if nvidia-drm modeset is not enabled
ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
# disable wayland for nvidia drivers versions lower than 470
ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"

6.5 Generate initramfs

## Backup old initramfs nvidia-nomodeset image ##
mv /boot/initrd-$(uname -r) /boot/initrd-$(uname -r)-nvidia
## Generate new initramfs image ##
mkinitrd /boot/initrd-$(uname -r) $(uname -r)

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

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

6.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.

10 comments on “NVIDIA 515.65.01 / 510.85.02 / 470.141.03 + Xwayland / Wayland on openSUSE Leap 15.4 / Tumbleweed and Gnome 42/41

Leave a Reply

Your email address will not be published.

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