Games flicker when playing

Hello every one.

I downloaded fedora today after dual booting win 11 and Linux mint.

now i installed fedora 40 to use as daily driver as main machine.

i installed the NVIDIA drivers with dnf.

when i am trying to play games ( like ready or not, and Minecraft the games very flicker and the texture is glichy).

what did i do wrong?

dnf list installed '*nvidia*'

nstalled Packages
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: PRIME B760M-A D4 v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 1002
    date: 04/07/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 50% (should be ignored) status: discharging
CPU:
  Info: 10-core (6-mt/4-st) model: 13th Gen Intel Core i5-13400F bits: 64
    type: MST AMCP arch: Raptor Lake rev: 2 cache: L1: 864 KiB L2: 9.5 MiB
    L3: 20 MiB
  Speed (MHz): avg: 3114 high: 4607 min/max: 800/4600:3300 cores: 1: 4551
    2: 4493 3: 4607 4: 800 5: 4476 6: 4452 7: 4500 8: 800 9: 4349 10: 4516
    11: 800 12: 800 13: 3283 14: 3300 15: 3301 16: 800 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060] vendor: ASUSTeK driver: nvidia
    v: 550.76 arch: Ampere pcie: speed: 2.5 GT/s lanes: 16 ports: active: none
    off: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:2544
  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: HDMI-A-1 model: Dell S2522HG res: 1920x1080 dpi: 90
    diag: 623mm (24.5")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.76 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  Device-2: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-3: Intel USB PnP Sound Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-8.3:4 chip-ID: 8086:0808
  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: 4000 bus-ID: 05:00.0 chip-ID: 10ec:8125
  IF: enp5s0 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: 06:00.0 chip-ID: 14c3:7961
  IF: wlp6s0 state: down 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-9.4:8 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 00:0e.0 chip-ID: 8086:467f
Drives:
  Local Storage: total: 4.66 TiB used: 2.56 TiB (54.9%)
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P3PSSD8 size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 38.9 C
  ID-2: /dev/sda vendor: Kingston model: SA400S37120G size: 111.79 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Western Digital model: WD20EZBX-00AYRA0
    size: 1.82 TiB speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdc vendor: SanDisk model: Extreme Portable SSD
    size: 931.51 GiB type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 serial: <filter>
  ID-5: /dev/sdd vendor: Western Digital model: WD10SPZX-22Z10T0
    size: 931.51 GiB type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 930.41 GiB used: 374.45 GiB (40.2%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 367 MiB (37.7%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 96 MiB used: 50.4 MiB (52.5%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 930.41 GiB used: 374.45 GiB (40.2%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 2.32 GiB (29.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 39.1 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB available: 15.43 GiB used: 6.42 GiB (41.6%)
  Processes: 618 Power: uptime: 1h 35m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 18 Compilers: gcc: 14.0.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.34

tnx a lot =)

If you are experiencing flickering while playing games under Wayland, it is likely an NVIDIA + Wayland issue. Explicit synchronization for the NVIDIA driver should hopefully fix this. However, it has just been merged and has not arrived in Fedora yet.
Currently, a workaround is to run games under X11. Linux Mint only offers X11 session, so you won’t experience flickering there.

2 Likes

If you have Secure Boot enabled, the kernel modules of the NVIDIA driver will need to be signed by the kernel to be usable. Do you get a version number or an error message if you run modinfo -F version nvidia in a terminal, in your Fedora session? If you are getting an error message, that means the NVIDIA kernel modules have not been signed and the NVIDIA drivers are not presently usable due to this.

For me, IIRC the fix was reinstalling kernel-devel via sudo dnf reinstall kernel-devel and not turning off the computer until the above modinfo (…) command returns a version number. (Unfortunately, building and signing the NVIDIA kernel modules can take several minutes after DNF declares the update/reinstall to be complete.)

Wow lol,

i was on mint all of my life =)

there is no wayland for me there and i forgot that Wayland is preinstalled on almost any disro now.

Tnx =)