System trying to load older driver?

Hello!
After upgrading to kernel 13.4.3 and the Nvidia drivers to 570, my second monitor stopped working after login. The screen just freezes, and I can’t do anything. If I disconnect the monitor, it sends me back to the login screen.

According to the problem report, this is the reason:

WARNING: CPU: 4 PID: 1282 at /tmp/akmodsbuild.Em94LtZI/BUILD/nvidia-kmod-565.77-build/nvidia-kmod-565.77/_kmod_build_6.12.7-200.fc41.x86_64/nvidia-drm/nvidia-drm-crtc.h:317 __nv_drm_handle_flip_event+0x19f/0x1b0 [nvidia_drm] [nvidia_drm]

I’m using Fedora 41 Workstation with KDE Plasma x11.
Please help.

Welcome to Fedora @phosyt

Please test Wayland as it comes in KDE preinstalled. And also give us more information about your setup.
Connection type and if you are using a docking-station etc …

Wayland seems to work fine, but it’s using the integrated graphics.
I’m connecting the monitor through HDMI.

Host: ROG Strix G513RC_G513RC (1.0)
Kernel: Linux 6.13.4-200.fc41.x86_64
Uptime: 13 mins
Packages: 2639 (rpm), 80 (flatpak)
Shell: bash 5.2.32
Display (27G2G8): 1920x1080 @ 240 Hz in 27" [External] *
Display (NCP004D): 1920x1080 @ 144 Hz (as 1536x864) in 16" [Built-in]
DE: KDE Plasma 6.3.1
WM: KWin (Wayland)
CPU: AMD Ryzen 7 6800HS (16) @ 4.79 GHz
GPU 1: NVIDIA GeForce RTX 3050 Mobile [Discrete]
GPU 2: AMD Radeon 680M [Integrated]
Memory: 9.48 GiB / 30.60 GiB (31%)
Swap: 0 B / 8.00 GiB (0%)
Disk (/): 112.03 GiB / 179.30 GiB (62%) - btrfs
Battery (G513-36): 61% [AC Connected]

Are you certain the nvidia driver is properly built and loaded?
modinfo nvidia should show the 570 driver as the one available.

Using the integrated gpu is not caused by the driver, but for most laptops is the default config.

Please show the output of inxi -Gxx so we can see all the graphics details, including drivers that are used.

I’m not too sure, I reinstalled in the same way following the steps from the rpmfusion repository.

Graphics:
 Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK
   driver: nvidia v: 570.86.16 arch: Ampere pcie: speed: 2.5 GT/s lanes: 8
   ports: active: none off: HDMI-A-1 empty: DP-6,eDP-2 bus-ID: 01:00.0
   chip-ID: 10de:25a2
 Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
   vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s
   lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, DP-5,
   Writeback-1 bus-ID: 05:00.0 chip-ID: 1002:1681 temp: 46.0 C
 Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.6
   compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
   alternate: fbdev,nouveau,nv,vesa dri: radeonsi
   gpu: amdgpu,nvidia,nvidia-nvswitch display-ID: 0
 Monitor-1: HDMI-A-1 model: AOC 27G2G8 res: 1920x1080 dpi: 82
   diag: 686mm (27")
 Monitor-2: eDP-1 model: Najing CEC Panda 0x004d res: 1920x1080 dpi: 142
   diag: 395mm (15.5")
 API: OpenGL v: 4.6 vendor: amd mesa v: 24.3.4 glx-v: 1.4 es-v: 3.2
   direct-render: yes renderer: AMD Radeon 680M (radeonsi rembrandt LLVM
   19.1.7 DRM 3.60 6.13.4-200.fc41.x86_64) device-ID: 1002:1681
   display-ID: :0.0
 API: EGL Message: EGL data requires eglinfo. Check --recommends.
 Info: Tools: api: glxinfo de: kscreen-console,kscreen-doctor
   gpu: nvidia-settings,nvidia-smi x11: xdriinfo, xdpyinfo, xprop, xrandr

The nvidia 570.86 driver appears loaded, and both monitors are seen.
You will probably need to force the system to ignore the iGPU and use the dGPU to gain the full benefit of the nvidia GPU. (For some systems the iGPU can be disabled in the bios settings).
There are also ways to do the same on a per-app basis but I don’t use them so cannot add advice on the commands to use.

The nvidia seems to be using HDMI-A-1 and the iGPU seems to be using eDP1. One for each monitor (monitor 2 on the iGPU and monitor 1 on the nvidia).

The problem was that I didn’t set my dedicated card as the primary GPU.
I followed this guide to fix it: How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs
Now it works flawlessly!
Thank you very much @computersavvy and @ilikelinux for your help.

1 Like

That guide explicitly tells the user it only works with X11.
As long as x11 is still available it works great, but the trend is to move away from X11 to Wayland and those instructions do not work with wayland.

I suggest that you research how to use the dGPU in wayland because at some point X11 will be fully gone. It already is not installed by default in either Workstation or KDE on fedora.

Okay, thanks for the advice.