Table of Contents
1. Before NVIDIA drivers installation (Debian / Ubuntu / Linux Mint)
2. Install NVIDIA proprietary drivers on Debian / Ubuntu / Linux Mint and disable the nouveau driver
3. Some Screenshots Using Different NVIDIA Cards and Drivers
4. Restore/Change/Update Plymouth on Debian / Ubuntu / Linux Mint / LMDE After NVIDIA Drivers Installation (BIOS/UEFI Users)
5. Debian / Ubuntu / Linux Mint / LMDE Uninstall NVIDIA drivers and Enable Nouveau
6. NVIDIA 525.89.02 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 + Xwayland on Ubuntu 22.04 / 21.10 and Gnome 40+
This is guide, howto enable NVIDIA accelerated 3D rendering and Xwayland on Ubuntu 22.04 / 21.10 with NVIDIA 525.xx (525.89.02) / 520.xx (520.56.06) / 515.xx (515.76) / 510.xx (510.85.02) / 470.xx (470.141.03) proprietary drivers on GNOME 40.3. 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 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:
if-not-true-then-false.com Youtube Channel
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:
dpkg -l xwayland libxcb1 libnvidia-egl-wayland1
6. Enable Xwayland with NVIDIA 515.76 / 510.85.02 / 470.141.03 proprietary drivers on Debian / Ubuntu / Linux Mint
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 Ubuntu 22.04 / 21.10 BTRFS ##
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau nvidia-drm.modeset=1"
6.3 Update grub2 conf
Ubuntu 22.04 / 21.10
## Update grub config ##
update-grub2
6.4 Update /usr/lib/udev/rules.d/61-gdm.rules
Comment line which starts with DRIVER==”nvidia”:
# disable Wayland on Hi1710 chipsets
ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
# disable Wayland when using the proprietary nvidia driver
#DRIVER=="nvidia", RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
# disable Wayland if modesetting is disabled
IMPORT{cmdline}="nomodeset", RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
6.5 Generate initramfs
## Backup old initramfs nvidia-nomodeset image ##
mv /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r)-nvidia-nomodeset.img
## Generate new initramfs image ##
dracut -q /boot/initrd.img-$(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
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.
Table of Contents
1. Before NVIDIA drivers installation (Debian / Ubuntu / Linux Mint)
2. Install NVIDIA proprietary drivers on Debian / Ubuntu / Linux Mint and disable the nouveau driver
3. Some Screenshots Using Different NVIDIA Cards and Drivers
4. Restore/Change/Update Plymouth on Debian / Ubuntu / Linux Mint / LMDE After NVIDIA Drivers Installation (BIOS/UEFI Users)
5. Debian / Ubuntu / Linux Mint / LMDE Uninstall NVIDIA drivers and Enable Nouveau
6. NVIDIA 525.89.02 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 + Xwayland on Ubuntu 22.04 / 21.10 and Gnome 40+
90 comments on “NVIDIA 525.89.02 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 + Xwayland on Ubuntu 22.04 / 21.10 and Gnome 40+ ”