NVIDIA driver won't load after Fedora 36 upgrade!

Current version: Fedora Workstation 35

I am neither a Linux or Fedora expert.

My HP Omen laptop uses NVIDIA GE Force GTX 1070 graphics chip.

In Fedora 35, I was using the official driver provider by Nvidia which I downloaded from Nvidia’s website; I downloaded and installed the ‘Notebook’ version of driver for GE Force GTX 1070.

Today I decided to upgrade from Fedora 35 to Fedora 36.

After the upgrade, the Nvidia driver is not loading and I don’t see any GUI (gnome) for Fedora 36.

Secute boot is turned off

Luckily, I can still ‘boot in’ to the previous kernel 5.18.4-101. Since I am a new user I can only upload one screenshot. Hence I couldn’t upload GRUB screenshot here.

Any idea how can I fix it ?

Below are the outputs of rpm -qa \*kmod\* , rpm -qa \*nvidia\* and rpm -qa \*kernel\*

$ rpm -qa *kmod*
kmod-nvidia-5.17.13-200.fc35.x86_64-510.68.02-2.fc35.x86_64
kmod-nvidia-5.18.4-101.fc35.x86_64-510.68.02-2.fc35.x86_64
xorg-x11-drv-nvidia-kmodsrc-510.68.02-2.fc36.x86_64
kmodtool-1.1-3.fc36.noarch
kmod-libs-29-7.fc36.x86_64
kmod-29-7.fc36.x86_64
akmods-0.5.7-8.fc36.noarch
akmod-nvidia-510.68.02-2.fc36.x86_64
kmod-nvidia-5.18.5-200.fc36.x86_64-510.68.02-2.fc36.x86_64

$ rpm -qa *nvidia*
kmod-nvidia-5.17.13-200.fc35.x86_64-510.68.02-2.fc35.x86_64
kmod-nvidia-5.18.4-101.fc35.x86_64-510.68.02-2.fc35.x86_64
xorg-x11-drv-nvidia-kmodsrc-510.68.02-2.fc36.x86_64
xorg-x11-drv-nvidia-libs-510.68.02-2.fc36.x86_64
xorg-x11-drv-nvidia-cuda-libs-510.68.02-2.fc36.x86_64
akmod-nvidia-510.68.02-2.fc36.x86_64
xorg-x11-drv-nvidia-power-510.68.02-2.fc36.x86_64
xorg-x11-drv-nvidia-510.68.02-2.fc36.x86_64
nvidia-settings-510.68.02-1.fc36.x86_64
kmod-nvidia-5.18.5-200.fc36.x86_64-510.68.02-2.fc36.x86_64

$ rpm -qa *kernel*
kernel-core-5.17.13-200.fc35.x86_64
kernel-modules-5.17.13-200.fc35.x86_64
kernel-5.17.13-200.fc35.x86_64
kernel-modules-extra-5.17.13-200.fc35.x86_64
kernel-devel-5.17.13-200.fc35.x86_64
kernel-core-5.18.4-101.fc35.x86_64
kernel-modules-5.18.4-101.fc35.x86_64
kernel-5.18.4-101.fc35.x86_64
kernel-modules-extra-5.18.4-101.fc35.x86_64
kernel-devel-5.18.4-101.fc35.x86_64
kernel-headers-5.18.4-200.fc36.x86_64
kernel-srpm-macros-1.0-14.fc36.noarch
kernel-core-5.18.5-200.fc36.x86_64
kernel-modules-5.18.5-200.fc36.x86_64
kernel-5.18.5-200.fc36.x86_64
libreport-plugin-kerneloops-2.17.1-1.fc36.x86_64
kernel-devel-5.18.5-200.fc36.x86_64
kernel-devel-matched-5.18.5-200.fc36.x86_64
abrt-addon-kerneloops-2.15.1-1.fc36.x86_64
kernel-modules-extra-5.18.5-200.fc36.x86_64

output of uname -a
Linux localhost.localdomain 5.18.5-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

In the GRUB menu, if I choose the latest kernel “5.18.5-200” that came Fedora 36, although NVIDIA driver won’t work , I still have access to the shell. Should I try re-installing Nvidia driver or something ?

Screenshot of GRUB menu

I use the driver from rpmfusion which works well for me but however you had nvidia working with F35 it won’t hurt to reinstall it on to F36.

1 Like

Not quite sure how the official nvidia driver handles kernel upgrades.
rpmfusion’s nvidia drivers are packaged as ‘akmod’ meaning roughly “Auto-build kernel module”. The drivers are rebuilt every kernel upgrade to match the new kernel version, and I rarely encounter issues with them.
I’d suggest trying rpmfusion

2 Likes

This was mentioned recently on the rpm fusion FAQ:

https://rpmfusion.org/CommonBugs

“This can easily be fixed by using “sudo depmod -ae” and rebooting the system.”

2 Likes

Thank You Straycat, ruzko, Scott

I downloaded the latest version of Nvidia driver for my graphics card installed it like below and the issue is fixed.

$ sudo ./NVIDIA-Linux-x86_64-515.48.07.run

If i face this issue again, I will think about NVIDIA’s driver from rpmfusion.

Only after fixing it, I saw the message from Scott Williams :slight_smile:
As per the link he posted, it seems to be a bug. This explains why I didn’t encounter this error before.

I have another trivial question.

After the upgrade, during boot up, hen I was stuck with ‘Nvidia kernel module missing. Falling back to nouveau’ error. All I got was a black screen with tiny cursor blinking on the top left hand corner.

Then I typed CTRL+ALT+F2, I can log in to the shell as shown below. In fact, I installed new NVIDIA driver from this prompt. What kind of login is this ?

But, when I boot normally to gnome GUI, CTRL+ALT+F2 does not take me to this shell prompt. CTRL+ALT+F3 does. So, I would like to know what kind of feature in Redhat or Fedora is this ?

Those are the TTYs. You can read about them here: https://www.howtogeek.com/428174/what-is-a-tty-on-linux-and-how-to-use-the-tty-command/

1 Like

Your nvidia-dkms built failed on your current linux kernel. Maybe linux kernel version and nvidia driver kernel version are mismatched.
when i upgraded from Linux kernel 5.17 to 5.18 faced the same issue, it’s required to have the latest version nvidia-driver installed from nvidia official site. Thus I substitute my nvidia-driver 510.60.02 with 515.48.07.

  • Download .run driver installer Official Drivers | NVIDIA
  • log out your account and enter character mode ctrl + alt + F3(3~6 are ok)
  • Turn off your gdm service sudo service gdm stop
  • Launch your installer sudo bash ./<Filename>.run
  • Reboot. DO NOT boot from the latest kernel that nvidia-dkms built failed.
  • Enter character mode again. Ctrl + Alt + F3
  • Rebuild the latest kernel. sudo dnf reinstall kernel*<your kernel version>*(Wildcards are included) For me, my is 5.18.5.
  • (If you’re using a laptop)After successful installation, remove the X11 default configuration file sudo rm /etc/X11/xorg.conf. Otherwise, you might get a black screen on the next boot.
  • Boot from the latest kernel

These methods work for me.