Hello everyone, I have fedora 41 and my laptop has a nvidia GPU. First after installing I had some small graphical artefacts, which I managed to somehow fix. But not a long time ago they came back, right after I tried to install cuda. I had some issues during installation, and I think that it is possible that I have the RPM nvidia drivers and the nvidia drivers from the CUDA repo. Is there a way I verify this? Thanks for any help.
sudo dnf list --installed \*nvidia\*
and
dnf repolist
Please post that output for us as preformatted text.
I think that there are no conflicting drivers:
$ sudo dnf list --installed \*nvidia\*
Place your right index finger on the fingerprint reader
Installed packages
akmod-nvidia.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.11.11-300.fc41.x86_64.x86_64 3:565.77-1.fc41 @commandline
kmod-nvidia-6.12.4-200.fc41.x86_64.x86_64 3:565.77-1.fc41 @commandline
nvidia-gpu-firmware.noarch 20241210-1.fc41 updates
nvidia-modprobe.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:565.77-1.fc41 rpmfusion-nonfree-nvidia-driver
[nathanv@bongstong ~]$ dnf repolist
repo id repo name
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
cuda-fedora39-12-6-local cuda-fedora39-12-6-local
cuda-fedora39-x86_64 cuda-fedora39-x86_64
fedora Fedora 41 - x86_64
fedora-cisco-openh264 Fedora 41 openh264 (From Cisco) - x86_64
google-chrome google-chrome
rpmfusion-free RPM Fusion for Fedora 41 - Free
rpmfusion-free-updates RPM Fusion for Fedora 41 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 41 - Nonfree
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam RPM Fusion for Fedora 41 - Nonfree - Steam
rpmfusion-nonfree-updates RPM Fusion for Fedora 41 - Nonfree - Updates
updates
nvidia drivers from rpmfusion seem OK, but those 2 repos should be disabled.
sudo dnf config-manager setopt cuda-fedora39-12-6-local.enabled=0 cuda-fedora39-x86_64.enabled=0
Now we need to see the loaded modules.
lsmod | grep -iE 'nvidia|cuda'
The first command you just gave me had no output, and here is the output of
lsmod | grep -iE ‘nvidia|cuda’
$ sudo dnf config-manager setopt cuda-fedora39-12-6-local.enabled=0 cuda-fedora39-x86_64.enabled=0
Place your right index finger on the fingerprint reader
[nathanv@bongstong ~]$ lsmod | grep -iE 'nvidia|cuda'
nvidia_drm 147456 21
nvidia_modeset 1671168 5 nvidia_drm
nvidia_uvm 3989504 0
nvidia 77516800 152 nvidia_uvm,nvidia_modeset
drm_ttm_helper 16384 3 amdgpu,nvidia_drm
video 81920 3 thinkpad_acpi,amdgpu,nvidia_modeset
Thanks for your help so far.