Nvidia: update DRM kernel mode setting section (#974)

* nvidia: DRM KMS is now enabled by default on newer drivers

* nvidia: add command to check for DRM KMS

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
Julian 2025-02-14 20:08:52 +01:00 committed by GitHub
parent bf4f4d6288
commit 7dc705a8ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,9 +54,11 @@ Install the following packages:
## DRM kernel mode setting
Since NVIDIA does not load kernel mode setting by default, enabling it is
required to make Wayland compositors function properly. To enable it, the NVIDIA
driver modules need to be added to the initramfs.
On driver version 560.35.03-5 or earlier NVIDIA does not load kernel mode
setting by default. Enabling it is required to make Wayland compositors
function properly.
To enable it, the NVIDIA driver modules need to be added to the initramfs.
Edit `/etc/mkinitcpio.conf`. In the `MODULES` array, add the following module names:
@ -72,6 +74,8 @@ options nvidia_drm modeset=1 fbdev=1
Lastly, rebuild the initramfs with `sudo mkinitcpio -P`, and reboot.
To verify that DRM is actually enabled, run `cat /sys/module/nvidia_drm/parameters/modeset` which should return `Y`.
More information is available [here](https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting).
## Environment variables