Flickering on Nvidia driver

When i fresh installed fedora everything was fine…with default driver…problem starts with enabling Nvidia driver…dosent matter which version is, flickering occured. Is it because of Xorg11? Cause Xwayland is disabled by default, when Nvidia is installed…or it has nothing to do with it…My brother is using mint on Nvidia 530 driver and it works just fine…then he updated to 535, and then he also get flickering so he rolled back to 530…it seems that is driver issue…but in my case both 530 and 535 dont work without that flicker…is there a way to fix that or i must wait to next version 545? I just want to know what causes that problem on fedora…

We cannot even begin to form an answer without some hardware information.
Please post the output of dnf list installed '*nvidia*' and inxi -Fzxx in the preformatted text tags </> from the toolbar.

I get severe flickering when using the default nouveau driver but things work great with the nvidia 535 driver. I have an RTX 3050 in my desktop machine with an AMD Ryzen 7 5700X processor.

there is a few more lines that i missed to copy but it isnt related to nvidia, but if i must ill will repat again…

ystem:
  Kernel: 6.3.8-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.2 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Desktop Mobo: ASRock model: H97 Pro4 serial: <superuser required>
    BIOS: American Megatrends v: P1.50 date: 12/15/2014
CPU:
  Info: quad core model: Intel Core i7-4790S bits: 64 type: MT MCP
    arch: Haswell rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 2006 high: 3969 min/max: 800/4000 cores: 1: 800 2: 3969
    3: 3949 4: 800 5: 3935 6: 1000 7: 800 8: 800 bogomips: 51083
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: ASUSTeK
    driver: nvidia v: 535.54.03 arch: Turing pcie: speed: 2.5 GT/s lanes: 16
    ports: active: none off: DP-1 empty: DVI-D-1,HDMI-A-1,HDMI-A-2
    bus-ID: 01:00.0 chip-ID: 10de:1f08
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: DP-1 mapped: DP-0 note: disabled model: Dell G2422HS
    res: 1920x1080 dpi: 93 diag: 595mm (23.4")
  API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: NVIDIA GeForce RTX
    2060/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel 9 Series Family HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8ca0
  Device-2: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f9
  Device-3: Creative Labs EMU10k2/CA0100/CA0102/CA10200 [Sound Blaster
    Audigy Series] driver: snd_emu10k1 v: kernel bus-ID: 04:00.0
    chip-ID: 1102:0004
  Device-4: Generalplus Redragon GM99 microphone
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 2-2:2 chip-ID: 1c5f:2014
  API: ALSA v: k6.3.8-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Ethernet I218-V vendor: ASRock driver: e1000e v: kernel
    port: f040 bus-ID: 00:19.0 chip-ID: 8086:15a1
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 931.51 GiB used: 109.61 GiB (11.8%)
  ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 195.31 GiB used: 109.61 GiB (56.1%) fs: btrfs dev: /dev/sda3
  ID-2: /home size: 195.31 GiB used: 109.61 GiB (56.1%) fs: btrfs
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A gpu: nvidia temp: 44 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 309 Uptime: 5h 32m Memory: available: 15.54 GiB
  used: 2.95 GiB (19.0%) Init: systemd v: 253 target: graphical (5)
  default: graphical Compilers: gcc: 13.1.1 Packages: pm: rpm pkgs: N/A
  note: see --rpm pm: flatpak pkgs: 24 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.27
Installed Packages
akmod-nvidia.x86_64                      3:535.54.03-1.fc38 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.3.6-200.fc38.x86_64.x86_64 3:530.41.03-1.fc38 @@commandline       
kmod-nvidia-6.3.7-200.fc38.x86_64.x86_64 3:530.41.03-1.fc38 @@commandline       
kmod-nvidia-6.3.8-200.fc38.x86_64.x86_64 3:535.54.03-1.fc38 @@commandline       
nvidia-settings.x86_64                   3:535.54.03-1.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64               3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64     3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64       3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686            3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64          3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64         3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver

The ASRock web site shows a new bios version 2.0.0 for that board.

What may be installed that might conflict with the graphics. What you have posted seems perfectly normal except for the motherboard bios that has an update available. There is a missing firmware package as well.

One also may wish to install xorg-x11-drv-nvidia-cuda as it has additional support for use of the graphics capability of the nvidia GPU, as well as the nvidia-smi command that gives additional information about the GPU usage.

The one thing that is definitely missing and might cause the problem is the nvidia-gpu-firmware package that is required for proper support of nvidia GPUs. That may be installed by running sudo dnf install nvidia-gpu-firmware to install just that one package or by using sudo dnf reinstall linux-firmware which seems a meta package that brings in all the available firmware packages.

I have the following installed

# dnf list installed '*nvidia*'
Installed Packages
akmod-nvidia.x86_64                                                     3:535.54.03-1.fc38                                 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.3.7-200.fc38.x86_64.x86_64                                3:530.41.03-1.fc38                                 @@commandline                   
kmod-nvidia-6.3.8-200.fc38.x86_64.x86_64                                3:535.54.03-1.fc38                                 @@commandline                   
kmod-nvidia-6.3.9-200.fc38.x86_64.x86_64                                3:535.54.03-1.fc38                                 @@commandline                   
nvidia-gpu-firmware.noarch                                              20230515-150.fc38                                  @updates                        
nvidia-persistenced.x86_64                                              3:535.54.03-1.fc38                                 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                  3:535.54.03-1.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                              3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                         3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                                      3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                    3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                      3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                                           3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                         3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                        3:535.54.03-2.fc38                                 @rpmfusion-nonfree-nvidia-driver

ok tried all options…flickering is still present, but less frequent…the last thing that i didnt do is update bios for my MB. ill try that then i will report again:D but those things were also usefull and i didnt install them

ok now i have this:

Installed Packages
akmod-nvidia.x86_64                      3:535.54.03-1.fc38 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.3.6-200.fc38.x86_64.x86_64 3:530.41.03-1.fc38 @@commandline       
kmod-nvidia-6.3.7-200.fc38.x86_64.x86_64 3:530.41.03-1.fc38 @@commandline       
kmod-nvidia-6.3.8-200.fc38.x86_64.x86_64 3:535.54.03-1.fc38 @@commandline       
nvidia-gpu-firmware.noarch               20230515-150.fc38  @updates            
nvidia-persistenced.x86_64               3:535.54.03-1.fc38 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                   3:535.54.03-1.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64               3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64          3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686       3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64     3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64       3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686            3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64          3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64         3:535.54.03-2.fc38 @rpmfusion-nonfree-nvidia-driver

do i have to reboot in order to apply that or not?

I updated the bios also…

Machine:
  Type: Desktop Mobo: ASRock model: H97 Pro4 serial: <superuser required>
    UEFI-[Legacy]: American Megatrends v: P2.10 date: 03/07/2018

and reboted now i am waintig to flicker or not…anyway if it does it does it less anoying…so thank you for your effort…it seems like that some machines have and others dont have problems:D but that is my noob opinion…

yes it is still there…but less visible and every 4 minutes or so…

I can try installing 525 drivers but i dont know the procedure…i want those from rpm fusion…this is my last option…if they work i can lock them from further updates…so is there a simple way to do this?

Have you checked to make sure the the cable from the monitor to the desktop is tight and not bad or loose.Also is the system fully updated.

yes everything is well connected, and updated to the latest…i am still in belief that it has directly to do with driver itself…my brother has same graphics card and same MB but runs linux mint…and there on driver 530 everything runs ok…I check updates daily, and install them right away. As i see there is no driver manager on fedora to rollback to driver older than 530…

i noticed that i have mesa drivers installed along with nvidia…does that have some connections with that flickering?

When you see that no one has even bothered to check the official NVIDIA Linux forums or their bug tracker it gets depressing really fast.

Here: [REGRESSION] [535.54.03] The entire screen is frequently flickering · Issue #511 · NVIDIA/open-gpu-kernel-modules · GitHub
Here: The Flicker Returns! 535.54.03 driver - Linux - NVIDIA Developer Forums

The bug is known and being tracked. NVIDIA being NVIDIA doesn’t say a word when it’s gonna get fixed.

2 Likes

Ok i was just wandering if mesa could do the conflict…but you are right…all problems are tied with NVIDIA itself…ill check those links…

I am running fedora 38 with the 535.54.03 drivers on an nvidia 3050 with AMD ryzen 7 5600X processor and using the 6.3.9 kernel from the updates-testing repo.
My kernel command line contains
rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
options and I have no flickering.
I did have some flickering when using the 6.3.8 kernel.

1 Like

Nice to hear that, well i guess ill have to wait either for driver update or kernel…or both. As people issued the problem to nvidia i am sure they will fix that.

I just find out that new version of nvidia drivers are out 535.86.05 and they have a list of fixes…one of them is flickering issue with VRR on some monitors…so maybe this fix my problem…but i didnt find them on rpm fusion, and def. i dont want to install it from official nvidia site…is anyone installed it yet via rpm fusion and if yes how? or i just have to wait