open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

[REGRESSION] [535.54.03] The entire screen is frequently flickering

Open birdie-github opened this issue 3 years ago • 252 comments

NVIDIA Open GPU Kernel Modules Version

535.43.02

Does this happen with the proprietary driver (of the same version) as well?

Yes

Operating System and Version

Fedora 38

Kernel Release

6.3.5

Hardware: GPU

NVIDIA GeForce GTX 1660 Ti

Describe the bug

The screen is constantly flickering, no matter what applications are running.

In Firefox it's happening every few seconds. In other "simple" applications it's less frequent.

To Reproduce

Install.

Bug Incidence

All the time

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

This is a regression.

I've reverted to 530.41.03 and it's all good.

Windows users seem to be affected as well. Could be a code change which affects both drivers.

birdie-github avatar May 31 '23 11:05 birdie-github

530.41.03 flickers even with nvidia-drm.modeset=1 in 3d or playing accelerated video. Bug was published at nvidia.com. So 535.54.03 is not the only bugged version.

I intended this bug report to be relevant only for the use case of 535.43.02 and 535.54.03 drivers regressing and 530.41.03 being bug free. And I've been using kms since forever options nvidia-drm modeset=1

You really could file a new bug report if you were affected earlier.

birdie-github avatar Jun 18 '23 05:06 birdie-github

I intended this bug report to be relevant only for the use case of 535.43.02 and 535.54.03 drivers regressing and 530.41.03 being bug free. And I've been using kms since forever options nvidia-drm modeset=1

You really could file a new bug report if you were affected earlier.

530.41.03 is a new feature branch version so I do not think that bugfixing is actual for it. The only thing I want to say — 530.41.03 IS NOT bug free version. It has the same black-flickering bug (or this bug only looks like the same, idk), several users have reported this. So, I think this regression has appeared not in 535.* but in 530.*.

CrossroadInTheVoid avatar Jun 18 '23 08:06 CrossroadInTheVoid

Same here, occasional odd flicker across the top of both monitors, ever since I upgraded to 535.54.03. I always stick to the latest "Production Branch Version", and I never had this problem before.

System: GeForce GTX 1660 Ti displaying on two AOC 24G2SPU connected via HDMI, running Slackware64-15.0 on XOrg-X11 (not Wayland).

[root@disclosure:~]# inxi -G
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] driver: nvidia v: 535.54.03
  Device-2: Sunplus Innovation Full HD webcam driver: snd-usb-audio,uvcvideo
    type: USB
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 21.1.4 driver: X:
    loaded: nvidia unloaded: nouveau gpu: nvidia resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: NVIDIA GeForce GTX 1660
    Ti/PCIe/SSE2

My nvidia-bug-report.log.gz is attached as well.

nvidia-bug-report.log.gz

z1atk0 avatar Jun 18 '23 10:06 z1atk0

Same issue on NixOS with 4090 and 535 54 03 driver. X11 has this flicker, often when I'm using a app/browser, doesn't happen on Wayland but then I must set primary display to 60hz or I can't login. (plasma)

Haven't tested Gnome X11 yet. Kind of warn out with all these nvidia bugs lately...

jarrard avatar Jun 18 '23 11:06 jarrard

First things first: the display flickering bug is not the Linux NVIDIA developers screw up, it's the part that comes from the Windows 535.98 drivers which were reported to break multi-monitor systems left and right. NVIDIA has ostensibly fixed this in the Windows 536.23 drivers:

When using multiple monitors which support adaptive sync, users may see random flicker on certain displays when G-SYNC is enabled after updating to driver 535.98 [4138119]

The bigger issue is that multiple users complained that the Windows 536.23 drivers broke single monitor systems as well but it looks like NVIDIA hasn't paid enough if any attention to the issue.

Now considering all the reports above it looks like the Windows multi-monitor bug fix hasn't been ported to Linux and the single monitor flickering issue continues to plague both branches.

Worst of all, it looks like the NVIDIA Linux engineers have been left in the dark or simply don't care about the fact that the last released Linux driver is simply broken and unusable and I reported the bug three weeks ago when drivers were still in beta, so they had ample time to investigate and fix it or at least ping their Windows colleagues and ask for help.

I'm mad, I'm simply mad. Luckily 530.41.03 drivers still work flawlessly here, and they support Linux 6.3, so NVIDIA has got another chance of fixing everything.

birdie-github avatar Jun 18 '23 12:06 birdie-github

just updated today can confirm new drivers cause flickering in both x11 and wayland.

sachnr avatar Jun 18 '23 13:06 sachnr

For me only the primary monitor flickers. I've got two almost identical displays. Also, the flickering only happens on Wayland. When select GNOME on Xorg as a session to use in GDM the flicker is gone.

I'm on Arch Linux using GDM and GNOME. Potentially relevant packages are in these versions on my system:

linux 6.3.8.arch1-1
linux-firmware 20230404.2e92a49f-1

nvidia 535.54.03-2
nvidia-lts 1:535.54.03-2
nvidia-utils 535.54.03-1

gdm 44.1-1
gnome-shell 1:44.2-1
gnome-session 44.0-1
mutter 44.2-1

My relevant configuration is:

My relevant hardware is:

  • RTX2080Ti
  • LG 27UL850-W 4k@60Hz via DisplayPort with FreeSync - this one flickers
  • LG 27UD88-W 4k@60Hz via DisplayPort - this one DOES NOT flicker

nvidia-bug-report.log.gz

The flickering on Wayland is so intense that it happens every few seconds and renders the system unusable. The experience is similar turning off the monitor and then immediately turning it back on again.

This video should explain what I mean.

Workarounds:

  • Disable FreeSync

    I found that disabling FreeSync seems to remove the nasty flickering so the VRR seems to be a good lead.

    freesync
  • Switch to X11

    When switched to X11 there still is a degree of minor flickering but far less frequent and the black screen periods are less noticeable. And this was happening for me before this driver version so I'm not counting this as something this driver change is a reason for.

GrzegorzKozub avatar Jun 19 '23 06:06 GrzegorzKozub

You might be able to stop the flicker if you open nvidia settings and turn OFF No Flipping in the options there. Worked for me.

However I think there is a performance hit if you do so. Could be related to plasma not having triple buffer set which you can do with the xorg config. No idea about Wayland since I can barely get that working under PLASMA.

jarrard avatar Jun 19 '23 07:06 jarrard

You might be able to stop the flicker if you open nvidia settings and turn OFF No Flipping in the options there. Worked for me.

No Flipping? Is it new option? There is Allow Flipping checkbox in OpenGL Settings only in earlier versions.

CrossroadInTheVoid avatar Jun 19 '23 07:06 CrossroadInTheVoid

You might be able to stop the flicker if you open nvidia settings and turn OFF No Flipping in the options there. Worked for me.

However I think there is a performance hit if you do so. Could be related to plasma not having triple buffer set which you can do with the xorg config. No idea about Wayland since I can barely get that working under PLASMA.

Could you show how it's done?

This is what I have here and I have flickering:

123

birdie-github avatar Jun 19 '23 07:06 birdie-github

Yeah I think it is Allow Flipping. I turned that off and issue went away but perhaps if you try with it on?

It's also possible my issue is different because I managed to install the older 530 drivers and it still did it.

jarrard avatar Jun 19 '23 07:06 jarrard

Yeah I think it is Allow Flipping. I turned that off and issue went away but perhaps if you try with it on?

It's also possible my issue is different because I managed to install the older 530 drivers and it still did it.

This option is applicable only to OpenGL applications or when you're running compositing.

I've got neither. Plain X11 XFCE session.

birdie-github avatar Jun 19 '23 08:06 birdie-github

Ok well it helped under Plasma, that is my test case since I want that to work in X11 and WL.

Also I thought XFCE did have a compositor.

jarrard avatar Jun 19 '23 08:06 jarrard

Also I thought XFCE did have a compositor.

OT: It does, but it can be disabled. Which I also did on my old laptop running Slack64-15.0 & XFCE, because it just cost too much performance there (the laptop has an old Celeron CPU and an Intel Mobile 4 GPU).

z1atk0 avatar Jun 19 '23 08:06 z1atk0

Ok well it helped under Plasma, that is my test case since I want that to work in X11 and WL.

Also I thought XFCE did have a compositor.

I'm not interested in bells and whistles and increased GPU power consumption. Besides this bug is not about OpenGL/Vulkan applications.

birdie-github avatar Jun 19 '23 09:06 birdie-github

For my scenario https://github.com/NVIDIA/open-gpu-kernel-modules/issues/511#issuecomment-1596567416 disabling Allow Flipping under OpenGL Settings did not fix the issue. This is probably because my issue is on Wayland only.

Also note that disabling this toggle did not persist a reboot.

GrzegorzKozub avatar Jun 19 '23 09:06 GrzegorzKozub

I used below setup to reproduce issue locally but no luck so far. Dell Precision T7610 + Genuine Intel(R) CPU @ 2.30GHz + Arch Linux + Kernel 6.3.8-arch1-1 + Driver 535.43.02 + NVIDIA GeForce RTX 2070 + GBT AORUS FI27Q-P with resolution 2560 x 1440 and refresh rate as 165 Hz + DELL G3223D with resolution 2560 x 1440 and refresh rate as 144 Hz + KDE Plasma Version 5.27.5 + X11 Protocol Ran youtube video using firefox browser in both primary and secondary displays but did not observed any flickering. I also checked with single monitor connection as well but no luck in repro. Shall try on few more setups and update.

amrit1711 avatar Jun 19 '23 12:06 amrit1711

@amrit1711

Yeah, we already know you're the only Linux tester at NVIDIA and you have limited hardware. I guess if NVIDIA drivers continue to be broken and the older ones no longer work, I will finally leave NVIDIA after using its products for over 25 years.

This is not just a minor regression, that's a bloody deal breaker which renders your computer completely unusable. Maybe someone at NVIDIA doesn't quite understand the severity of the situation.

Again the last released drivers are outright broken for a large number of people.

birdie-github avatar Jun 19 '23 13:06 birdie-github

@birdie-github i'm about to build my next pc its all AMD, i already decided that, especially when AMD finally move all their drivers and firmware to open-source.

sentakuhm avatar Jun 19 '23 13:06 sentakuhm

Hello,

I am affected by the issue too. The flickering didn't start right away after installation/reboot. First time I tested the new driver, noticeable flickering started only after a short Proton gaming session and persisted after a reboot. So, I went back to 530.41.03. On the next try I was unaffected for the better part of the day and it started quite randomly while watching YouTube on Firefox. Unchecking "Allow Flipping" seems to have fixed it for now. System information and bug report below.

System: Gentoo (17.1 profile with some ~amd64 packages), kernel 6.3.8, OpenRC, X11, KDE Plasma 5.27.5. Monitor: ASUS ROG Swift PG329Q @165Hz connected via DP. Video Card: Gigabyte RTX 3700.

nvidia-bug-report.log.gz

CrouchingTigger9 avatar Jun 19 '23 15:06 CrouchingTigger9