Interrupted upgrade of nvidia drivers, how to re-install?

Hey folks, pretty much the title. I foolishly rebooted too soon after a command-line update, and interrupted my nvidia module build (from what I can tell). After the reboot it noted there was no “dkms module found” or something similar - it flew by pretty fast.

One of the major symptoms is I am now getting the infamous Minecraft error “GLFW error 65542: GLX: No GLXFBConfigs returned.”

I would normally get this after an nvidia driver upgrade in the past, where I would have to remove and reinstall the driver to fix it - specifically to rebuild the dkms modules. To be fair this was a while ago and on Ubuntu.

I have tried the following, which all worked in terms of commands, but I cannot get my minecraft working (yes I know I am somewhat conflating two issues here bear with me)

sudo dnf remove nvidia* --allowerasing
sudo dnf install akmod-nvidia
sudo dnf install nvidia-gpu-firmware

dkms status returns does not list any nvidia driver modules. Should it?

I would appreciate any help diagnosing what’s going on - P&TY. I recognize this might look like a Minecraft issue, and perhaps it ultimately is. How would I test if my nvidia drivers are loaded, and working?

Other info:

sudo lsmod | grep nvidia
nvidia_drm            135168  33
nvidia_modeset       1617920  10 nvidia_drm
nvidia_uvm           6815744  0
nvidia              61018112  246 nvidia_uvm,nvidia_modeset
video                  81920  2 amdgpu,nvidia_modeset

lspci -n -n -k | grep -A 2 -e VGA -e 3D
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090 Ti] [10de:2203] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device [1043:8870]
	Kernel driver in use: nvidia
--
5c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev ca)
	Subsystem: ASRock Incorporation Device [1849:364e]
	Kernel driver in use: amdgpu

glxinfo | grep -e OpenGL.vendor -e OpenGL.renderer
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3090 Ti/PCIe/SSE2

switcherooctl list
Device: 0
  Name:        NVIDIA Corporation GA102 [GeForce RTX 3090 Ti]
  Default:     yes
  Environment: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

Device: 1
  Name:        Advanced Micro Devices, Inc. [AMD®/ATI] Raphael
  Default:     no
  Environment: DRI_PRIME=pci-0000_5c_00_0

One further thing to note RE the Minecraft cross-over. After removing all the nvidia drivers per above, and launching Minecraft, it works perfectly using the Mesa drivers…

Oh dear, I think I have been chasing my tail on this. I re-installed my Minecraft launcher (PrismLauncher) and everything seems to be working.

So yes, I have been diagnosing the wrong thing for the last 4 hours.

As you were! :smiley:

Please use the preformatted text button </> for text you copy & paste (instead of blockquote) so it retains formatting as seen on screen. This is the difference compared to what you posted above.

lspci -n -n -k | grep -A 2 -e VGA -e 3D
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090 Ti] [10de:2203] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:8870]
Kernel driver in use: nvidia
–
5c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev ca)
Subsystem: ASRock Incorporation Device [1849:364e]
Kernel driver in use: amdgpu

will do, have edited my post above to reflect this.

1 Like