Fedora has conflicts with Nvidia GPU after updating

Hi, this is my first topic.
I was using my computer with Fedora without any problems for the whole year, until after updating everything broke.

The last Kernel that worked correctly was “6.9.8-100.fc39.x86_64”, from then on it was the same result, I would turn on and the screen would go black and I would have to force reboot to enter the last stable kernel for my computer, until at one point the stable kernel was displaced by the new updates and I was left with no options.

I backed everything up by connecting the HDMI to the motherboard to have an image and once everything was backed up I did a clean installation again, this time with Fedora 40 Workstation, I installed everything using Rpmfusion as suggested here, but the problem persists.

Currently if I boot with the HDMI on the Nvidia card it stays black, if I change the HDMI to the motherboard I can see the interface to unlock the disk (LUKS) and then enter the desktop, if I change the HDMI cable back to the Nvidia card, it gives an image, but everything is horribly slow, buggy and unusable, any action using the keyboard or mouse has a delay of at least 4 seconds.

The above in Xorg, if I use Wayland it runs slightly better (also unusable), and the Nvidia configuration section in Wayland is not complete compared to Xorg.

Thanking you in advance for any help, I’ll proceed to leave what I see people usually ask for.

System:
  Kernel: 6.9.12-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.4 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME X670-P WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 2413
    date: 02/02/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Vertical Advanced Ergonomic
    Mouse serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: 12-core model: AMD Ryzen 9 7900 bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 768 KiB L2: 12 MiB L3: 64 MiB
  Speed (MHz): avg: 532 high: 3585 min/max: 400/5482 cores: 1: 400 2: 400
    3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400
    13: 400 14: 400 15: 400 16: 400 17: 400 18: 400 19: 400 20: 3585 21: 400
    22: 400 23: 400 24: 400 bogomips: 177271
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3080 Lite Hash Rate]
    vendor: Palit Microsystems driver: nvidia v: 555.58.02 arch: Ampere pcie:
    speed: 2.5 GT/s lanes: 16 ports: active: none empty: DP-2, DP-3, DP-4,
    HDMI-A-2 bus-ID: 01:00.0 chip-ID: 10de:2216
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: HDMI-A-1
    empty: DP-1,Writeback-1 bus-ID: 11:00.0 chip-ID: 1002:164e temp: 37.0 C
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1080 s-dpi: 96
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: LG (GoldStar) ULTRAWIDE
    res: 2560x1080 dpi: 108 diag: 652mm (25.7")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.5 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi
    raphael_mendocino LLVM 18.1.6 DRM 3.57 6.9.12-200.fc40.x86_64)
    device-ID: 1002:164e
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA GA102 High Definition Audio vendor: Palit Microsystems
    driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:1aef
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 11:00.1 chip-ID: 1002:1640
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 11:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.9.12-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: d000 bus-ID: 09:00.0 chip-ID: 10ec:8125
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    vendor: AzureWave driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: c000 bus-ID: 0a:00.0 chip-ID: 10ec:b852
  IF: wlp10s0 state: up mac: <filter>
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio driver: btusb v: 0.8 type: USB
    rev: 1.0 speed: 12 Mb/s lanes: 1 bus-ID: 3-2:2 chip-ID: 13d3:3571
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 931.52 GiB used: 6.36 GiB (0.7%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SFYRS500G size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
  ID-2: /dev/nvme1n1 vendor: Kingston model: SFYRS500G size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 25.9 C
Partition:
  ID-1: / size: 464.16 GiB used: 5.94 GiB (1.3%) fs: btrfs dev: /dev/dm-0
    mapped: luks-a81432bb-33f9-4ebd-a683-7961967cb715
  ID-2: /boot size: 973.4 MiB used: 407.4 MiB (41.9%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 464.16 GiB used: 5.94 GiB (1.3%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-a81432bb-33f9-4ebd-a683-7961967cb715
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 40.1 C mobo: N/A gpu: amdgpu temp: 37.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.55 GiB used: 3.39 GiB (11.1%)
  Processes: 826 Power: uptime: 39m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9 running-in: kitty
    inxi: 3.3.34

Please let me know what additional information you need with your respective commands.
regards.

Edit:
I followed what is indicated here Link, and it worked for a few minutes using HDMI on the GPU, but after rebooting it breaks again.

On the other hand, if you permanently use HDMI on the motherboard the system works correctly, but obviously the monitor does not appear in the Nvidia settings (I lose access to calibrate colors accurately and other features). Also if you use a LLM model locally (example llama3 in ollama) the loading is done correctly on the GPU. (tested even with the recent kernel ‘6.10.3-200.fc40.x86_64’)

I think I read somewhere that because of disk encryption (in my case LUKS) Nvidia does not manage to start on time and correctly. I think that hypothesis makes some sense.

Hello @buhosiliscodirococo ,
The problem is actually with NVidia, not Linux and not Fedora. If they (NVidia) would just respect their users enough to truly open source their code, you likely wouldn’t be having this difficulty.

Try forcing nvidia to load early to prevent the race condition with the amdgpu driver.

sudo dracut -fvv --add-drivers " nvidia nvidia-drm nvidia-modeset nvidia-uvm "

I’m not entirely sure about that.
I installed Debian 12 over the weekend and was able to configure Nvidia without any problems in 10 minutes, it worked perfectly.

But I struggled all weekend trying to get the WIFI working, and it was impossible. My WIFI antenna is like a shark fin that internally works for both Bluetooth and WiFi, and again I saw a lot of people in different topics with problems, there were solutions that were clearly going to break sooner or later, so I gave up.

Finally researching Linux distributions I discovered “Pop OS!” which even has its installer with Nvidia pre-configured and in about 3 hours my computer was 100% operational, without any headaches and the next day I was back to work normally.

Ironically one of the reviews of “Pop OS!” was from a Fedora user who switched to that distribution because he had the same problem.

I love Fedora and it made me productive for years, but recently it became too unstable and I was dealing with too many updates, especially kernel updates, which ended up corrupting my work ecosystem. Just look at all the Topics created in the last few months that are related to problems like the one I experienced.

I really appreciate your reply, but I finally switched to “Pop OS!”, everything worked on the first try and I haven’t had any problems.
I consider the topic closed, thanks guys.