hyprland-wiki
hyprland-wiki copied to clipboard
[Question] NVIDIA: DRM kernel mode setting obsolete for newer drivers
In the wiki at the DRM kernel mode setting section it is stated that
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.
However when reading the Arch Wiki page for Nvidia which is also linked in the Hyprland wiki it says
Starting from nvidia-utils 560.35.03-5, DRM defaults to enabled. For older drivers, set the modeset=1 kernel module parameter for the nvidia_drm module.
Also on my fresh install I checked if DRM is actually enabled with cat /sys/module/nvidia_drm/parameters/modeset and it seems to be the case.
Does that make this section in the Hyprland wiki irrelevant for newer drivers or am I misunderstanding something?
I'll happily update the wiki and create a MR if it needs to be changed :)
The Arch wiki is surely more up to date regarding Nvidia. If you've followed that and everything works, then feel free to PR.
On hybrid GPU laptops, however, it's better to specify both igpu and nvidia modules in mkinitcpio.conf and avoid using kms hook. Otherwise, nouveau driver can be loaded before nvidia, and break things. Adding stuff, like nvidia-drm=1 to bootloader config or /etc/modprobe.d/nvidia.conf is not necessary, though.
I believe thats something Arch does, its not necessarily standard, so its probably still valid advice.
https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/blob/main/0001-Enable-atomic-kernel-modesetting-by-default.patch?ref_type=heads