Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] NVIDIA: DRM kernel mode setting obsolete for newer drivers #968

Open
Dashyyy opened this issue Feb 7, 2025 · 2 comments
Open

Comments

@Dashyyy
Copy link
Contributor

Dashyyy commented Feb 7, 2025

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 :)

@fufexan
Copy link
Member

fufexan commented Feb 8, 2025

The Arch wiki is surely more up to date regarding Nvidia. If you've followed that and everything works, then feel free to PR.

@izmyname
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants