Fedora 39 and 40: Nvidia drivers stuttering

Hi,

Since a couple weeks ago I have not beeing able to play anything on fedora 39 and now 40.
I am experiencing major stuttering on the latest nvidia nonfree drivers, even on a fedora 40 clean install. As I am typing this every single letter is stuttering before appearing.

I installed the drivers by adding the rpm fusion repos, and I isntalled it per this guide (Method 1):

I waited 10 min after instalation while monitoring top in the terminal to make sure everything was done before rebooting.

This also happened on my F39 install a while back, so I suspect it is caused by a nvidia or kernel update, but Im looking to see if anyone have a solution for this.

Performance in games looks good, its just the constant stuttering whenever something moves on screen. And since I also have this in the desktop, I suspect it is not related to lutris / wine.

lsmod | grep -E ‘nouveau|nvidia’

nvidia_drm            122880  45
nvidia_modeset       1605632  9 nvidia_drm
nvidia_uvm           6656000  0
nvidia              60497920  288 nvidia_uvm,nvidia_modeset
video                  77824  4 asus_wmi,amdgpu,asus_nb_wmi,nvidia_modeset

dnf list installed *nvidia*

akmod-nvidia.x86_64                              3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.8.7-300.fc40.x86_64.x86_64         3:550.76-1.fc40          @@commandline                   
nvidia-gpu-firmware.noarch                       20240410-1.fc40          @updates                        
nvidia-modprobe.x86_64                           3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                       3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                           3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                       3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                  3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686               3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64             3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64               3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                    3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                  3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                 3:550.76-1.fc40          @rpmfusion-nonfree-nvidia-driver

inxi -Fzxx

System:
  Kernel: 6.8.7-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 tk: GTK v: 3.24.41 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: TUF GAMING B650M-PLUS WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 1654
    date: 08/25/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Keys Wireless Keyboard
    serial: <filter> charge: 55% (should be ignored) status: discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) status: discharging
CPU:
  Info: 6-core model: AMD Ryzen 5 7600 bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 384 KiB L2: 6 MiB L3: 32 MiB
  Speed (MHz): avg: 3019 high: 4891 min/max: 400/5126 cores: 1: 400 2: 4890
    3: 400 4: 400 5: 4891 6: 4891 7: 4889 8: 4891 9: 400 10: 4891 11: 400
    12: 4890 bogomips: 91032
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA AD104 [GeForce RTX 4070 Ti] vendor: ZOTAC driver: nvidia
    v: 550.76 arch: Lovelace pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: DP-2 empty: DP-3,DP-4,HDMI-A-2 bus-ID: 01:00.0 chip-ID: 10de:2782
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none
    empty: DP-1,HDMI-A-1,Writeback-1 bus-ID: 0d:00.0 chip-ID: 1002:164e
    temp: 39.0 C
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DP-2 model: 34D901 res: 3440x1440 dpi: 110 diag: 864mm (34")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.76 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 4070 Ti/PCIe/SSE2
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA vendor: ZOTAC driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc
  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: 0d: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: 0d:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.8.7-300.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.5 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: e000 bus-ID: 08:00.0 chip-ID: 10ec:8125
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 09:00.0 chip-ID: 14c3:7961
  IF: wlp9s0 state: up mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 1-11:4 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 1.85 TiB used: 99.6 GiB (5.3%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SKC3000S1024G size: 953.87 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 960 EVO 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 39.9 C
  ID-3: /dev/sda vendor: Kingston model: DataTraveler 3.0 size: 7.33 GiB
    type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 952.28 GiB used: 99.09 GiB (10.4%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 406.4 MiB (41.8%) 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: 952.28 GiB used: 99.09 GiB (10.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 1.8 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.0 C mobo: 36.0 C gpu: amdgpu temp: 39.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.49 GiB used: 4.84 GiB (15.9%)
  Processes: 529 Power: uptime: 1h 12m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 20 Compilers: gcc: 14.0.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.34

Removed amd, amdgpu, audio, bluetooth, flatpak, gnome, pipewire, radeon

It looks like you have the drivers properly installed and they are loading properly.
It also is known that sometimes (rarely) the locally built drivers may be slightly corrupted during compile/install processes.

I would suggest that you rebuild the drivers by using this method and see if that helps.

  1. sudo dnf remove akmod-nvidia-\* to remove the current drivers
    then rebuild them with
  2. sudo akmods --rebuild --force and wait for it to complete.
  3. reboot and let us know if there are any changes.

Just so you are aware, that tecmint post is quite dated.

Though technically mostly correct it does not allow for the fact that ALL needed dependencies are also pulled in when the user installs the akmod-nvidia package from rpmfusion.

It also does not account for the fact that fedora has made it simple for users to enable the 3rd party repos during initial setup and then immediately install the akmod-nvidia package without the necessity to enable the other rpmfusion repos it shows in that guide. (which was done a few years back).

I’m experiencing similar issues with an AMD gpu (rx6600)

Without vsync, all my games stutter terribly since upgrading to Fedora 40.

I got this issue solved on my part, stuttering was caused by wayland, on X11 it was smooth, but no games ran (black screen into crashing). Figured out I had to disable the iGPU in the bios to get things running propperly.

I always wonder why the RPMFusion guide is avoided, and does not come up in searches over some less reputable sites.

How To Install Nvidia Drivers Fedora 40

https://rpmfusion.org/Howto/NVIDIA

2 Likes

You are aware, I hope, that search engines allow sites to influence the priority by which that site is selected and placement in search results.

I don’t want to get into SEO and the like here, but it does get a bit frustrating. . . In particular that the repo they are adding has the guide. I’m not blaming the user, but if sites offer the assistance they should reference the guide and the why they chose to do so in that fashion. At leaset Negativo17 explains the methodology in depth. . .

Maybe I’m being a bit persnickety. I’ll see my way out. :peace_symbol: :sunglasses:

1 Like

Please make a Topic and use a useful Title, link to the tutorials and you will find them better. Fedoraproject.org has a quite good position in SE.

I do see that we do have repetitive Topics about Nvidia. Might be that we just should better tag them. Especially with the Models and drivers. Or add it to the title so SE find them better too.

p.s.
This topic for example has Fedroa and the versions in the Title, while we do have tags for that.

2 Likes