Issues after Nvidia 565 driver update

Last night I updated using sudo dnf upgrade --refresh and a nvidia driver update was available, I hit y and went for it. I stepped away fro a bit and rebooted, then when I logged back in, instead of booting to KDE, which I installed on top of the gnome desktop after the initial Fedora install, it booted into gnome. I checked nvtop and it said no gpu was available, so I attempted to recover by doing some dnf remove \*nvidia\* --exclude nvidia-gpu-firmware and reinstalling using sudo dnf install akmod-nvidia xorg-x11-drv-nvidia and after waiting and rebooting, it didn’t work. I assumed maybe the akmods weren’t rebuilt so I tried sudo akmod --rebuild and it rebuilt, but same deal. I found some guidance online saying to use modinfo to find the version of the nvidia driver and curiously the readout said 560 instead of 565. I wasn’t quite sure what to do so I started to frantically search around trying to find a solution to this and (stupidly) ran this command:

sudo rm -f /usr/lib{,64}/xorg/modules/extensions/libglx.so

and from then on things kind of went off the rails. I should have known this was likely a bad command to run but I was desperate to get things working again so I ran it, then jumped through the hoops of removing and reinstalling the nvidia drivers and now when I boot, I’m greeted by a black screen with no option to log in. I can hit ctrl+alt+f2 and get a terminal but if I type kwin_wayland I get this error:

kwin_wayland: error while loading shared libraries: libEGL.so.1: cannot open shared object file: No such file or directory

I’m at a loss for what to do now, so I’m reaching out to y’all for help before I just go and wipe the install and start over.

Hi Occlusion,

Yeah, you kinda blew yourself up …

Try this:
sudo dnf reinstall libglvnd-devel xorg-x11-server-Xorg

Then completely remove the Nvidia drivers — sudo dnf remove *nvidia* --exclude nvidia-gpu-firmware and reboot (all of the drivers for Nvidia should be gone from the kernel and you should be running on the embedded Intel video drivers, i915 usually). Now reinstall your Nvidia drivers.

no dice, gnome-session --session gnome-wayland --debug shows Cannot open display, and kwin_wayland shows the libEGL.so error.

… missed a library … sudo dnf reinstall libglvnd-egl

(one way you can find which package has the stuff you need is to do something like: sudo dnf provides */{file_name} … )

I was able to get a login screen! it shows the kde login screen and if I set it to plasma it will show the kde logo and a gear for a bit, then dump me onto a black screen where I can see my mouse. If I hit alt+space it will show a search bar that I can type stuff into, but it won’t show the taskbar or desktop or anything else. this is progress!

Okay, I apparently needed to wait five minutes for my desktop to load, but it finally did. nvidia-smiis showing Failed to initialize NVML: Driver/library version mismatch and nvtop is still showing No GPU to monitor so it looks like something is wrong with how my nvidia drivers are set up that dnf cannot fix using remove and install

Hi Occlusion,

I had the same kinds of issues on my machine when using dnf to install and maintain the Nvidia drivers — inconsistent behavior to say the least. I finally decided to just do the Nvidia driver installs via the driver download directly from Nvidia. It’s not as bad as most people make it out to be, it just takes a little additional planning to get things to work right when you basically upgrade the driver.
I currently am running the production version of the drivers (550.135) and my setup (Fedora 41, Gnome Desktop, i712700H, 64GB DDR5, GeForce RTX 3060, 4 x1920x1080p monitors, 2TB nvme) have been working fast and stable … no issues … I like playing fgfs :slight_smile: )

Ok, after following the instructions here: How to Install Nvidia Drivers on Fedora Linux nvidia-smi and nvtop work properly, however my resolution is stuck at 1024x768 with no option to change it in KDE, and my second monitor is not showing as connected. I’m guessing some dependency or something is missing that allows the resolution to be set but I can’t quite figure out what it could be.

I looked for another guide here GitHub - oddmario/NVIDIA-Fedora-Driver-Guide: A little guide to help you install & manage NVIDIA GPU drivers on your Fedora system and what helped me was adding nvidia-drm.modeset=1 nvidia-drm.fbdev=1 to my boot option when I started the computer and pressed e before it loaded my OS.

Hi Occlusion,

You can also set those options in /etc/modprobe.d
This will make the module load automatically at boot.

I created a file there called nvidia.conf

here are the contents:

blacklist nouveau
options nouveau modeset=0
options nvidia-drm modeset=1
options nvidia “NVreg_DynamicPowerManagement=0x02”

You can do it Jeff’s way as well … :slight_smile:

Adding those options at boot time only applies to that one boot.
If needed they can be made permanent after booting with
sudo grubby --args=" nvidia-drm.modeset=1 nvidia-drm.fbdev=1 " --update-kernel=ALL

What I don’t understand here is that you don’t have quoted the only guide that matter on the topic: Howto/NVIDIA - RPM Fusion

It has literally everything you need.

1 Like

Not to be too pointed… but have you ever read that guide? As a user, my goal is to “Get it working NOW!” so that I can go read that guide if needed :slight_smile:

Also, the OP posted this so I am assuming he was likely following something he read in your “Guide”

"… I started to frantically search around trying to find a solution to this and (stupidly) ran this command:

sudo rm -f /usr/lib{,64}/xorg/modules/extensions/libglx.so

and from then on things kind of went off the rails…"

And lastly …

  1. Did I help Occlusion get fixed so that he can enjoy his computer and Fedora?
  2. Did I do it with minimal extraneous information?
  3. (Bottom line) Did it work?