[HowTo] Use Wayland with proprietary NVIDIA drivers

This tutorial is sorely out of date and missing a lot of information. Most is now in the Arch wiki, anyway. I’m going to unlist it for now.

Instead of adding the option on the kernel-command-line, you could also use the below, which makes it boot-loader agnostic :wink:

  • /etc/modprobe.d/nvidia-graphics-drivers-kms.conf
    # This file was generated by nvidia-driver-535
    # Set value to 0 to disable modesetting
    options nvidia-drm modeset=1
    
    (The above was auto generated after i installed nvidia-dkms-535 on Kubuntu…)
1 Like

That’s actually what I do myself.

❯ cat /etc/modprobe.d/nvidia.conf
options nvidia-drm modeset=1
options nvidia "NVreg_UsePageAttributeTable=1"
options nvidia "NVreg_PreserveVideoMemoryAllocations=1"
options nvidia "NVreg_TemporaryFilePath=/var/tmp"
options nvidia "NVreg_EnableS0ixPowerManagement=1"

@ NovaspirtTech: You missed something:

Those options have nothing to do with Wayland and should not be copied and pasted blindly.