I started one topic about Nvidia but it seems that I should learn how to read Arch Wiki.
I’ll try not to do too long topic but I would like to start with:
If you are using a custom kernel, compilation of the Nvidia kernel modules can be automated with DKMS.
DRM kernel mode setting
nvidia 364.16 adds support for DRM (Direct Rendering Manager) kernel mode setting. To enable this feature, add the
nvidia-drm.modeset=1kernel parameter. For basic functionality that should suffice, if you want to ensure it’s loaded at the earliest possible occasion, or are noticing startup issues you can add
nvidia_drmto the initramfs according to Mkinitcpio#MODULES.
Custom kernel and DRM kernel mode settings are not connected right?
I can do one or another or both. I don’t need to do DRM kernel mode setting if I install Custom kernel?
To enable DRM with
I need to edit /etc/default/grub
And change cmdline to tool like this:
I can finish at this point but I can
I can but not have to?
nvidia_drmmodules to my mkinitcpio.conf file and it should look like this:
MODULES=( nvidia nvidia_modeset nvidia_uvm nvidia_drm)
I don’t understand if it is:
- only 2 or only 3
- it can be just 2 or just 3
- if I want 3 I have to do 2 first
If I add modeulse like in point 3 then I’ll have to run
mkinitcpio -Pwith every Nvidia update manually or
/etc/pacman.d/hooks/I can create nvidia.hook with:
Description=Update Nvidia module in initcpio
Exec=/bin/sh -c ‘while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P’
linux for linux-zen or any other kernel I have
I believe that I get it quite right but I’m not sure about points 3 and 4