archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Add nvidia-drm.modeset

Open ryzendew opened this issue 2 years ago • 6 comments

Could nvidia-drm.modeset=1 be added to grub please so we can have Wayland for NVidia out of the box? but only if the NVidia drivers are selected.

ryzendew avatar Nov 13 '23 22:11 ryzendew

Hi, you can add it in modeprobe.d, this way, it will work with all bootloaders.

In the same way, you could cancel the gdm rule with: 'ln -s /dev/null /etc/udev/rules.d/61-gdm.rules' to give Nvidia users the option to use Wayland on GNOME.

Cardiacman13 avatar Nov 23 '23 10:11 Cardiacman13

Hi, you can add it in modeprobe.d, this way, it will work with all bootloaders.

In the same way, you could cancel the gdm rule with: 'ln -s /dev/null /etc/udev/rules.d/61-gdm.rules' to give Nvidia users the option to use Wayland on GNOME.

I like this method, easy to maintain. Any dracks? Early KMS might be the only thing missing but that should be solved elsewhere anyway?

Torxed avatar Nov 23 '23 11:11 Torxed

Hi, you can add it in modeprobe.d, this way, it will work with all bootloaders. In the same way, you could cancel the gdm rule with: 'ln -s /dev/null /etc/udev/rules.d/61-gdm.rules' to give Nvidia users the option to use Wayland on GNOME.

I like this method, easy to maintain. Any dracks? Early KMS might be the only thing missing but that should be solved elsewhere anyway?

No, normally there shouldn't be any dracks to put it in modeprobe.d except that people are so used to putting it in the boot-loader options that they might open issues saying it's not done XD .

Also, normally, early KMS isn't necessary, especially since it makes the initramfs huge, which can cause issues for those using multiple kernels.

Cardiacman13 avatar Nov 23 '23 13:11 Cardiacman13

Hi, you can add it in modeprobe.d, this way, it will work with all bootloaders. In the same way, you could cancel the gdm rule with: 'ln -s /dev/null /etc/udev/rules.d/61-gdm.rules' to give Nvidia users the option to use Wayland on GNOME.

I like this method, easy to maintain. Any dracks? Early KMS might be the only thing missing but that should be solved elsewhere anyway?

No, normally there shouldn't be any dracks to put it in modeprobe.d except that people are so used to putting it in the boot-loader options that they might open issues saying it's not done XD .

Also, normally, early KMS isn't necessary, especially since it makes the initramfs huge, which can cause issues for those using multiple kernels.

https://wiki.archlinux.org/title/NVIDIA#Early_loading some users require putting it in early loading, but this can be done post-install. The only thing we need too ensure is that /boot and /EFI are separate to facilitate multiple kernels.

Torxed avatar Nov 23 '23 14:11 Torxed

~I'm closing this not because it's done, but because #1903 also exists which has the same need.~

Never mind, this has more useful info.

Torxed avatar Nov 27 '23 12:11 Torxed

Unified kernel images could help by indicating the kernel parameters nvidia_drm.fbdev=1 and nvidia_drm.modeset=1, but archinstall should compile the UEFI executables during the installation. Although users must have UEFI, they can work with different bootloaders and load the kernel parameters as soon as possible. For instance, mkinitcpio builds /etc/kernel/cmdline, which can be used to configure the parameters:

root=UUID=0a3407de-014b-458b-b5c1-848e92a327a3 rw quiet bgrt_disable nvidia_drm.modeset=1 nvidia_drm.fbdev=1

sanchezcarlosjr avatar Apr 14 '24 04:04 sanchezcarlosjr