Nvidia drivers broken after recent update

When I try to run anything on the GPU it fails and says something in the lines of

glx: failed to create dri3 screen
failed to load driver: nvidia-drm

this also happens if I run gamescope on tty with drm backend.

On my own engine it says

libEGL warning: pci id for fd 22: 10de:25a2, driver (null)
pci id for fd 23: 10de:25a2, driver (null)
pci id for fd 24: 10de:25a2, driver (null)
libEGL warning: egl: failed to create dri2 screen
pci id for fd 23: 10de:25a2, driver (null)
pci id for fd 24: 10de:25a2, driver (null)
libEGL warning: egl: failed to create dri2 screen
WINDOW CREATION EGL: Failed to create context: Arguments are inconsistent

lspci -k says:

VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)

Subsystem: Lenovo Device 3af6 Kernel driver in use: nvidia Kernel modules: nouveau, nvidia_drm, nvidia

Already rebuilt the module but still doesn’t work

What command did you use?
The one that ‘just works’ for almost everyone is sudo akmods --rebuild --force and that one only works when the driver has been installed from rpmfusion.

I also noted that there was a newer driver update within the last few days, and now the driver from rpmfusion is version 580.105.08. I had issues with the 580.105.03 driver that has been replaced.

turns out DRI_PRIME doesn’t work anymore and I had to use something else

Having the same problem on Fedora 43.
Rebuilding the kernel module does not help.

Downgrading Xorg was the only thing that made the nvidia driver work again on my system:
sudo dnf downgrade xorg-x11-server-Xorg xorg-x11-server-common

Apperently this issue is also happening on Arch Linux:

Are you going to tell other users who might have the same issue how you resolved it by using “something else”? :slight_smile:

I found the issue.
DRI_PRIME=1 does not work anymore, instead use nvidia-prime or

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

This is not the solution; we can not run any software by writing a poem in front of it.

The only thing that makes sense right now is to downgrade the drivers and lock the version

sudo dnf downgrade xorg-x11-server-Xorg xorg-x11-server-common
sudo dnf versionlock add xorg-x11-server-Xorg xorg-x11-server-common
1 Like

by default the os uses the integrated gpu, the fix is just using the fix instead of dri_prime, either way you’re putting something before the app, I added it to GAMEMODERUNEXEC so now when I use gamemoderun it gets applied

Problem is, that when the X11 is configured to use the Nvidia dGPU as the primary GPU it is broken at the moment as you only get software rendering.

Only fix so far that I have found is to revert the Xorg version to the one before the update.

well that’s not what this issue is about

As noted, you are off topic.

I would add that X11 is no longer supported by fedora with the release of f43 and wayland will be in use going forward. If using X11 it will become necessary for you to switch to wayland after upgrading to f43.

is xorg-x11 issue in my case 


mkdir abc/
cd abc 
koji download-build -a x86_64 xorg-x11-server-21.1.18-1.fc41
createrepo_c .
cd ..
dnf  --repoid=abc  --repofrompath=abc,rpms downgrade "xorg-x11-server*" --no-gpgchecks --refresh

fixed my problem