Nvidia-inst detecting “custom” kernels

Hello!
Not sure if this is the suggestion forum. ^^

I spent a few hours trying to install the Nvidia drivers and I noticed they were ACTUALLY installed, but just for the stock kernel, not the other kernels like zen.

Maybe it’s just a skill issue and I just had a really bad day, but I’m sure it’s possible if a custom kernel is detected, and warning the user, and eventually proposing a solution. ^^

I am not sure I am following the issue.

Doesn’t nvidia-inst install the dkms drivers?

Did you also try to install them manually?

1 Like

Headers are still required for each kernel. So for the zen kernel, the right ones need to be installed too, and the nvidia-inst script, probably won’t do it. It would also be useful to have some basic information about the hardware for which these drivers are to be built. Of course, I’m a rookie, so it’s best if knowledgeable guys speak up

1 Like

It does install the DKMS drivers, but the install is only performed on one kernel.

Are you missing the headers for the other kernels?

I feel stupid now… I expected it to be a dependency.
Alright, thanks for the help! :heart:

2 Likes

I’ll do a post if some has the same issue, so they can jump directly to the answer.

sudo pacman -S linux-zen-headers

DKMS modules were automatically generated.

You shouldn’t use pacman -Sy. That can create partial update scenario and end up breaking your system.

Since you did that, you should update your system with sudo pacman -Syu

2 Likes

Actually nvidia-inst has some of the kernel headers as optional dpendencies:

$ LANG=C pacman -Si nvidia-inst
Repository      : endeavouros
Name            : nvidia-inst
Version         : 1.8-1
Description     : Script to setup nvidia drivers (dkms version) in EndeavourOS
Architecture    : any
URL             : https://github.com/endeavouros-team/PKGBUILDS/tree/master/nvidia-inst
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : nvidia-installer-common  dkms
Optional Deps   : linux-headers: for nvidia-inst with kernel linux
                  linux-lts-headers: for nvidia-inst with kernel linux-lts
                  linux-hardened-headers: for nvidia-inst with kernel linux-hardened
                  linux-zen-headers: for nvidia-inst with kernel linux-zen
Conflicts With  : None
Replaces        : nvidia-installer-dkms  nvidia-installer-db
Download Size   : 19.38 KiB
Installed Size  : 20.94 KiB
Packager        : EndeavourOS <info@endeavouros.com>
Build Date      : Sat Dec 17 17:55:30 2022
Validated By    : MD5 Sum  SHA-256 Sum  Signature

The same with the dkms package.

Alright, my bad then.
RTFM as they say. :upside_down_face:

Pacman (and yay) display lots of useful messages when instaling and / or updating packages.
But those messages come quickly and are easy to bypass if not looking at them carefully. :wink:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.