I previously had the nvidia driver installed using the installer from NVIDIA, but I wanted to switch to the one from rpmfusion instead. Per the instructions, I did
sudo dnf install akmod-nvidia
followed by
modprobe nvidia
The nvidia kernel module loads, but when I try to start gdm it doesn’t open the greeter and in the logs I see:
xec/gdm-x-session[92359]: (II) LoadModule: "nvidia"
xec/gdm-x-session[92359]: (WW) Warning, couldn't open module nvidia
xec/gdm-x-session[92359]: (EE) Failed to load module "nvidia" (module does not >
xec/gdm-x-session[92359]: (EE) No drivers available.
xec/gdm-x-session[92359]: (EE)
xec/gdm-x-session[92359]: Fatal server error:
xec/gdm-x-session[92359]: (EE) no screens found(EE)
xec/gdm-x-session[92359]: (EE)
xec/gdm-x-session[92359]: Please consult the The X.Org Foundation support
xec/gdm-x-session[92359]: at http://wiki.x.org
xec/gdm-x-session[92359]: for help.
xec/gdm-x-session[92359]: (EE) Please also check the log file at "/var/lib/gdm/>
xec/gdm-x-session[92359]: (EE)
xec/gdm-x-session[92359]: (EE) Server terminated with error (1). Closing log fi>
xec/gdm-x-session[92357]: Unable to run X server
So it looks like:
- gdm is trying to run on X11 instead of wayland
- The xorg-x11-drv-nvidia package didn’t get installed as a dependency of akmod-nvidia like it should
When I run rpm -qa|grep nvidia
I get:
nvidia-gpu-firmware-20240909-1.fc39.noarch
xorg-x11-drv-nvidia-kmodsrc-560.35.03-5.fc39.x86_64
nvidia-modprobe-560.35.03-1.fc39.x86_64
akmod-nvidia-560.35.03-1.fc39.x86_64
nvidia-kmod-common-560.35.03-1.fc39.noarch
kmod-nvidia-6.10.11-100.fc39.x86_64-560.35.03-1.fc39.x86_64
It looks like xorg-x11-drv-nvidia-kmodsrc is there, but apparently I’m missing some other piece.
I guessed that xorg-x11-drv-nvidia-libs
might be the package I’m missing, but when I try to install it I get an error about “modular filtering”:
$ sudo dnf install xorg-x11-drv-nvidia-xorg-libs
Last metadata expiration check: 3:09:18 ago on Mon 30 Sep 2024 12:53:33 PM EDT.
Error:
Problem: package xorg-x11-drv-nvidia-xorg-libs-3:560.35.03-5.fc39.x86_64 from rpmfusion-nonfree-updates requires xorg-x11-drv-nvidia(x86-64) = 3:560.35.03, but none of the providers can be installed
- package xorg-x11-drv-nvidia-3:560.35.03-5.fc39.x86_64 from rpmfusion-nonfree-updates requires nvidia-settings(x86-64) = 3:560.35.03, but none of the providers can be installed
- conflicting requests
- package nvidia-settings-3:560.35.03-1.fc39.x86_64 from cuda-fedora39-x86_64 is filtered out by modular filtering
- package nvidia-settings-3:560.35.03-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Is xorg-x11-nvidia-drv-libs the package I’m missing? If so, why won’t it install?