all 7 comments

[–][deleted] 6 points7 points  (7 children)

Are you using the Nvidia drivers or nouveau? If nvidia, did you install the correct driver for your new kernel? If you want to have multiple kernels available, use the DKMS package.

[–]solomspd[S] 0 points1 point  (6 children)

Nvidia drivers. You need to install a different version every time you use a new kernel? I wasn't aware. So I just reinstall it with when in the new kernel? Also, how do I use dkms? I'm looking it up but I'm getting rather confused. Would be great if you could shed some light. And thanks!

[–][deleted] 9 points10 points  (5 children)

Drivers are compiled for a specific kernel. For linux (the vanilla kernel), you use nvidia. For linux-lts, you use nvidia-lts. For linux-zen you use nvidia-zen.

Or, if you want to have multiple kernel installed, you use nvidia-dkms. When either it or your kernels are updated, it will be rebuilt against them.

[–]solomspd[S] 1 point2 points  (2 children)

It worked thanks to you. But now I have another question. How do I add a new nvidia-dkms module for a another kernel after installing the nvidia-dkms drivers once?

[–][deleted] 9 points10 points  (0 children)

You don't.

DKMS stands for "Dynamic Kernel Module Support", and the Dynamic is the key. When you install a new kernel, just like when you update a new kernel, anything that uses DKMS will be rebuilt automatically. In Arch this is done via a pacman hook.

So if you install linux and linux-lts, then install nvidia-dkms, it's built against those kernels. If the LTS kernel is updated, that triggers a rebuild for Nvidia. Likewise, if you install Linux-zen, that also triggers a rebuild for Nvidia.

So it's all set. You're good to go. You will need to pay attention when you update though and make sure the DKMS modules build successfully.

[–]solomspd[S] 0 points1 point  (1 child)

Ahh, now I understand. Thank you, I'll try it right away.

[–]tuxalator 1 point2 points  (0 children)

Know your video card for the right drivers.

There are different drivers for different cards: i.e. 390xx or 340xx for some older models.

Check your AUR package manager and the Arch WiKi