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:
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.
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.
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
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 )
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.
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
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
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: