Can't install NVIDIA Drivers on Fedora Kinoite

I am trying to install NVIDIA Drivers and everytime i boot, it give me the error: NVIDIA KERNEL MODULE MISSING. FALLING BACK TO NOUVEAU.

steps i made:
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
sudo rpm-ostree kargs --append=rd.driver.blacklist=nouveau --append=modprobe.blacklist=nouveau --append=nvidia-drm.modeset=1
as per rpmfusion wiki.
When i run akmods --force, this happens:
Checking kmods exist for 6.15.5-200.fc42.x86_64 [ OK ]
Building and installing nvidia-kmod [FAILED]
Could not install newly built RPMs. You can find them and the logfile in:
/var/cache/akmods/nvidia/575.64.03-2-for-6.15.5-200.fc42.x86_64.failed.log
[FAILED]

Sorry, the RPM Fusion guide is outdated. You now need to use a different command:

Here is the updated version:

sudo rpm-ostree kargs --append=rd.driver.blacklist=nouveau,nova_core --append=modprobe.blacklist=nouveau,nova_core

You’ll also need to undo the incorrect kernel arguments:

sudo rpm-ostree kargs --delete-if-present=rd.driver.blacklist=nouveau --delete-if-present=modprobe.blacklist=nouveau  --delete-if-present=nvidia-drm.modeset=1

Run both commands and then reboot. The NVIDIA drivers should load successfully.

2 Likes

Hello! Thanks for the support! Unfortunately, i ran the two commands that you send but it didn’t work yet. The part of “Nvidia kernel module missing…” was solved, but now my PC is stucked at 1024x768 and when i run nvidia-smi, this happens:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
akmods --force output:
Checking kmods exist for 6.15.5-200.fc42.x86_64 [ OK ]
Building and installing nvidia-kmod [FAILED]
Could not install newly built RPMs. You can find them and the logfile in:
/var/cache/akmods/nvidia/575.64.03-2-for-6.15.5-200.fc42.x86_64.failed.log
[FAILED]

Did you disable secure boot?

Yes. Already disabled. mokutil --sb-state output:
SecureBoot disabled

Can you check the output of rpm-ostree kargs --editor? It shows the current kernel arguments.

Sure! The output:

ostree=/ostree/boot.0/fedora/da7a43b79b9ffc912dd4e726ca4b4b62e7ad90f972b6451564d7f747d11b3fac/0 rd.luks.uuid=luks-4e242f24-a642-4ada-b958-f8c59226206b rhgb quiet root=UUID=3a98d920-1eac-41a1-ae9d-7695516c429c vconsole.keymap=br-thinkpad rootflags=subvol=root rw slab_nomerge init_on_alloc=1 mitigations=auto,nosmt lockdown=confidentiality rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core

Can you check whether the NVIDIA GPU is detected using lspci -nn | grep -i nvidia?

Yes.
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1)
05:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)

If you already have the driver installed and want to rebuild it the suitable command would be sudo akmods --force --rebuild which then will remove the older copy and build a completely new copy of the driver. This also is a way to ensure that the new module is properly signed.

Note that I use Workstation and not Kinoite so potentially that command will not work. The main part of the system for Kinoite is read-only so certain updates do not work.

I ran this command and it gave the same error. I’m almost giving up, since i already tried to solve this for many hours and didn’t have any progress. I will wait some hours to see if someone here has a solution. If don’t, i will uninstall and back to Workstation

Did you install both drivers cuda and no cuda? I’d so remove non cuda restart and rebuild

Yes. I ran both
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
and the kargs command and restart my PC.

I will try here. Will back if to let you know if it worked

Not required.

There are special instructions for the atomic systems located at

Those instructions are out of date in the 3rd command line as already noted above with the correction given.

There are special instructions also provided for use with secure boot.

I know just pointed out that I had multiple times issues when I install both cuda and non cuda and removing non cuda with rebuild fixed things and new large lines with nova core

I have been using Kinoite about 3 years now with nvidia

Didn’t work too.

try removing all that was installed, including the kernel arguments.

Then do a new clean install for cuda and use the updated kernel arguments given above with both nouveau and nova_core

I can not send my failed.log here, so i will highlight some things that i consider important enough.
/usr/src/kernels/6.15.5-200.fc42.x86_64/scripts/Makefile.build:254: Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel

/build/nvidia/src/common/inc/nv-linux.h:76:10: fatal error: drm/drmP.h: No such file or directory

/usr/sbin/akmods: line 362: yum: command not found akmods: Could not install newly built RPMs.

Already tried that. When a solution doesn’t work, i always rollback to the last build and try again another method. You think that these logs that i found here have something that can help us to solve this problem?

Failed.log output from sudo akmods --force --rebuild