NVIDIA Driver not recognized by applications

Hi, I’ve just recently installed Fedora 40 Xfce. I installed NVIDIA driver using rpm-fusion, but Fedora just used Intel Mesa or in some cases llvimpipe instead of NVIDIA.

I ran nvidia-smi and it works fine

Wed Oct  9 15:27:44 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 860M        On  |   00000000:01:00.0 Off |                  N/A |
| N/A   52C    P8             N/A /   36W |       5MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1806      G   /usr/libexec/Xorg                               2MiB |
+-----------------------------------------------------------------------------------------+

But as soon as I started running glxgears-info. It only recognize Intel integrated graphics.

GL_RENDERER   = Mesa Intel(R) HD Graphics 4600 (HSW GT2)
GL_VERSION    = 4.6 (Compatibility Profile) Mesa 24.1.7
GL_VENDOR     = Intel

And this is the output of dmesg | nvidia

[   10.855862] nvidia: loading out-of-tree module taints kernel.
[   10.855887] nvidia: module license 'NVIDIA' taints kernel.
[   10.855899] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   10.855902] nvidia: module license taints kernel.
[   11.308445] nvidia-nvlink: Nvlink Core is being initialized, major device number 511
[   11.310410] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[   11.673317] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[   11.851051] nvidia-uvm: Loaded the UVM driver, major device number 509.
[   12.236101] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  560.35.03  Fri Aug 16 21:21:48 UTC 2024
[   12.279795] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[   12.280095] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[   12.280106] nvidia 0000:01:00.0: [drm] No compatible format found
[   12.280109] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes

Also this is the output for glxinfo | grep “OpenGL renderer string”

OpenGL renderer string: Mesa Intel(R) HD Graphics 4600 (HSW GT2)

This is the output for dnf list installed /nvidia/

Installed Packages
akmod-nvidia.x86_64                3:560.35.03-1.fc40 @rpmfusion-nonfree-updates
kmod-nvidia-6.10.12-200.fc40.x86_64.x86_64
                                   3:560.35.03-1.fc40 @@commandline             
nvidia-gpu-firmware.noarch         20240909-1.fc40    @updates                  
nvidia-modprobe.x86_64             3:560.35.03-1.fc40 @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64         3:560.35.03-1.fc40 @rpmfusion-nonfree-updates
nvidia-settings.x86_64             3:560.35.03-1.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64         3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64    3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686 3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64
                                   3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686      3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64    3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64   3:560.35.03-5.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-xorg-libs.x86_64
                                   3:560.35.03-5.fc40 @rpmfusion-nonfree-updates

I have disabled secure boot and I could open NVIDIA settings (I think the options are limited).

But all of my applications only recognize Intel or llvmpipe. This makes me unable to run certain apps like screen recording (all black no display). This is the output of nvidia-bug-report.sh in case you may need them.

Note: I’ve tried using this documentation to make NVIDIA the default option, but that makes my whole laptop and my second monitor blank so I have to revert the changes.

Added x11, xfce