You are not logged in.

#1 2020-11-09 17:11:47

860lacov
Member
Registered: 2020-05-02
Posts: 497

[SOLVED] Nvidia driver with custom kernel

I would like to install linux-zen
Wiki says that I should use nvidia-dkms driver.
Custom kernel

And next section is about DRM kernel mode setting.

I don't understand if I have to enable DRM, or I can but don't have to.

And
If I add nvidia-drm.modeset=1 to kernel parameters then I

can add nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs according to Mkinitcpio#MODULES.

But should I remove

nvidia-drm.modeset=1

from kernel parameters or it is nvidia-drm.modeset=1 + modules?

If I would like to have two kernels - linux and linux-zen
Will this configuration work for both kernels?
Do I have to have nvidia and nvidia-dkms or just dkms version?

In wiki there is an advice to create pacman hook to run mkinitcpio If modules are added to the initramfs.
Do I need hook for linux-zen and linux or just for ZEN?

Last edited by 860lacov (2021-02-08 23:09:14)

Offline

#2 2020-11-09 17:18:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: [SOLVED] Nvidia driver with custom kernel

The entire DRM section is completely separate from concerns for custom kernels, you can do any of these things, if you didn't notice anything wrong or incorrect so far there's not much need to.

As for setting up nvidia-dkms you can use just nvidia-dkms instead of nvidia for all kernels you have installed you should just make sure you have the appropriate linux-headers package installed as well.

Offline

#3 2020-11-09 18:30:14

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Nvidia driver with custom kernel

Thank you and tell me please how should I knew this. (I don't want to attack you. I just don't know how to say it in a  better way smile )

I started to read Nvidia installation page on wiki. At the beginning there is information for standard linux and linux-lts kernels
I have linux kernel and I want to install ZEN now.
I was sure that I should install nvidia package, and then move to wiki section connected with custom kernel.

Offline

#4 2020-11-09 21:32:45

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Nvidia driver with custom kernel

Oh
And I checked with: mkinitcpio -v
At the end of an output there is:

==> ERROR: module not found: nvidia' ==> ERROR: module not found: nvidia_modeset’
adding module: nvidia-uvm (/lib/modules/5.9.6-arch1-1/kernel/drivers/video/nvidia-uvm.ko.xz)
==> ERROR: module not found: nvidia' ==> ERROR: module not found: nvidia_drm’

I assume that i need to specify the path to the files but I don't know where are those files.

Offline

#5 2020-11-09 22:10:03

loqs
Member
Registered: 2014-03-06
Posts: 19,041

Re: [SOLVED] Nvidia driver with custom kernel

860lacov wrote:

I assume that i need to specify the path to the files but I don't know where are those files.

Why do you assume that?  Have you installed nvidia-dkms to the header package for your kernel to generate the module?

Last edited by loqs (2020-11-09 22:10:19)

Offline

#6 2020-11-09 22:21:38

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Nvidia driver with custom kernel

loqs wrote:
860lacov wrote:

I assume that i need to specify the path to the files but I don't know where are those files.

Why do you assume that?  Have you installed nvidia-dkms to the header package for your kernel to generate the module?

It was my guess.
I didn't install headers for ZEN then.
They are now and error is the same.

After installation of nvidia-dkms I uninstalled nvidia.

Last edited by 860lacov (2020-11-09 22:22:37)

Offline

#7 2020-11-09 22:47:27

loqs
Member
Registered: 2014-03-06
Posts: 19,041

Re: [SOLVED] Nvidia driver with custom kernel

When you installed linux-zen-headers did the DKMS run and generate nvidia module for the zen kernel?
You can check if the module is present for the kernel using:

modinfo nvidia-uvm

If not see Dynamic_Kernel_Module_Support#Rebuild_modules.

Offline

Board footer

Powered by FluxBB