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

@taleteller , @z1atk0 ,

If you are seeing flickering with 2x 1920x1080@60Hz displays without VRR, you may be encountering a different issue than what has previously been addressed. The change that triggered flickering on VRR displays should be present in 525.116.04. Just to be 100% sure, can you confirm if you see the issue on 535.98 if you load nvidia-modeset with ~disable_vrr_mclk_switch=1~ disable_vrr_memclk_switch=1 ?

@AlexGoinsNV done that, but the flicker is still there, just as you suspected:

[root@disclosure:~]# grep . /sys/module/nvidia_modeset/parameters/*
/sys/module/nvidia_modeset/parameters/config_file:(null)
/sys/module/nvidia_modeset/parameters/disable_vrr_memclk_switch:Y
/sys/module/nvidia_modeset/parameters/fail_malloc:-1
/sys/module/nvidia_modeset/parameters/malloc_verbose:N
/sys/module/nvidia_modeset/parameters/output_rounding_fix:Y

z1atk0 avatar Aug 11 '23 09:08 z1atk0

I'm also still running into this with a single monitor and RTX 2080, I'm going to try some of the suggestions here.

robvdl avatar Aug 11 '23 11:08 robvdl

I also have this issue:

Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] driver: nvidia v: 535.86.05
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 3440x1440
  API: OpenGL v: 4.6.0 NVIDIA 535.86.05 renderer: NVIDIA GeForce RTX 2060
    SUPER/PCIe/SSE2

I'm running openSUSE Tumbleweed (20230815) with the software mentioned above. One single screen attached via HDMI, 100 Hz.

Surprisingly, the issue disappeared entirely after putting the system in sleep state and awake it again. Maybe something related to power state? Please reach out if you need further information.

Can others confirm this behavior?

spboehm avatar Aug 16 '23 22:08 spboehm

Can others confirm this behavior?

I tried suspending and resuming and so far it seems to avoid the flicker. It does appear to be adjusting the power state based on activity both before and after the suspend, but for whatever reason it seems to avoid flickering when it transitions power state after it's resumed. I'll report back if I notice any flickering later after a suspend/resume.

akb825 avatar Aug 17 '23 09:08 akb825

Screen flicker completely fixed when using "Prefer Maximum Performance" mode instead of "Adaptive" mode. This method worked with the latest 535.98-2 driver(If I remember correctly, it also works with nvidia-open driver). Note: Idle power consumption increased by 20W (50W -> 71W) in my environment. image

Environment:

  • GPU: NVIDIA RTX2080 Super
  • OS: ArchLinux
    • Kernel: 6.4.10-arch1-1
    • Xorg, Xfce4
    • Driver: nvidia(535.98-2)
  • Display:
    • FHD@60Hz (With DP to HDMI conversion)
    • FHD@60Hz (With DP to HDMI conversion)
    • FHD@60Hz HDMI
yay -Qs nvidia local/egl-wayland 2:1.1.12-1
local/lib32-libvdpau 1.5-1
local/lib32-nvidia-utils 535.98-1
local/lib32-opencl-nvidia 535.98-1
local/libvdpau 1.5-1
local/libxnvctrl 535.98-1
local/nvidia 535.98-2
local/nvidia-settings 535.98-1
local/nvidia-utils 535.98-1
local/opencl-nvidia 535.98-1

Display Device Infomation was exactly the same on all monitors image (I use translation and do not have much knowledge about Linux.)

r-ca avatar Aug 17 '23 19:08 r-ca

I also have this issue:

Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] driver: nvidia v: 535.86.05
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 3440x1440
  API: OpenGL v: 4.6.0 NVIDIA 535.86.05 renderer: NVIDIA GeForce RTX 2060
    SUPER/PCIe/SSE2

I'm running openSUSE Tumbleweed (20230815) with the software mentioned above. One single screen attached via HDMI, 100 Hz.

Surprisingly, the issue disappeared entirely after putting the system in sleep state and awake it again. Maybe something related to power state? Please reach out if you need further information.

Can others confirm this behavior?

The sleep fix works good for me so far, on Wayland too even! Two monitors, one 144hz and the other 60hz.

Operating System: Nobara Linux 38
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.8-202.fsync.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2060/PCIe/SSE2

finnlock avatar Aug 17 '23 20:08 finnlock

Screen flicker completely fixed when using prefer "Maximum Performance Mode" instead of "Adaptive Mode"

This seems to help indeed, at least in my case.

nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=1"
nvidia 535.98-2
linux 6.4.10.arch1-1
exwm 0.27
xorg-server 21.1.8-2

nbarrientos avatar Aug 18 '23 08:08 nbarrientos

Just for reference, setting the preferred mode to "Maximum Performance Mode" instead of "Adaptive Mode" did not eliminate the flicker on my system.

z1atk0 avatar Aug 18 '23 11:08 z1atk0

Absolutely no change after updating to 535.98. Maximum performance power mode makes the ficker less frequent but it's still there. Single, 60Hz screen.

kurld avatar Aug 19 '23 17:08 kurld

Just for reference, setting the preferred mode to "Maximum Performance Mode" instead of "Adaptive Mode" did not eliminate the flicker on my system.

Absolutely no change after updating to 535.98. Maximum performance power mode makes the ficker less frequent but it's still there. Single, 60Hz screen.

Can completely confirm this behavior. Flickering is less frequent, but it is still there.

spboehm avatar Aug 21 '23 15:08 spboehm

I can confirm that flickering still happens for maximum performance mode for me as well. I also noticed that it was changing power states, where I expected it would have stayed in the maximum power state at all times.

akb825 avatar Aug 22 '23 08:08 akb825

Just released driver 535.104.05 claims to have fixed flickering once again.

https://www.nvidia.com/download/driverResults.aspx/210649/en-us/

birdie-github avatar Aug 22 '23 14:08 birdie-github

I can confirm that flickering still happens for maximum performance mode for me as well. I also noticed that it was changing power states, where I expected it would have stayed in the maximum power state at all times.

In my environment, this issue was resolved by restarting the OS.

r-ca avatar Aug 22 '23 20:08 r-ca

Just released driver 535.104.05 claims to have fixed flickering once again.

https://www.nvidia.com/download/driverResults.aspx/210649/en-us/

The flicker is appears less than 535.43.01 but it has not resolved. I ended up using Vulkan Beta 525.47.35, since it was the most recent of the v525 series.

RTX 2070 Single Monitor 165Hz / adaptive mode Display Port @ 2560x1440

qurious-pixel avatar Aug 23 '23 02:08 qurious-pixel

I can confirm the black flicker on FreeBSD 13.2 with traditional (non-DRM) Nvidia drivers of the 535 series (although we don't have 535.104.05 yet).

RTX 2060 Super Single Monitor, 4k, 60hz, DisplayPort

How can this be broken for so many people and platforms and not get fixed?

h-2 avatar Aug 23 '23 11:08 h-2

Updated to 535.104.05 today, the flicker is still there ... oh well. :unamused:

z1atk0 avatar Aug 23 '23 11:08 z1atk0

Updated to 535.104.05 today, the flicker is still there ... oh well. 😒

same thing here on arch linux with RTX 2060 and single monitor 144Hz gsync is on, not fixed yet but less flicker.

sentakuhm avatar Aug 23 '23 11:08 sentakuhm

I finally reverted the driver version and installed G05 (470.199.02) again. It works perfectly (in general and in regards to the flickering issue), but this is actually no solution for this problem.

spboehm avatar Aug 23 '23 19:08 spboehm

Rolling back the driver isn't the solution, but I remember the 525 driver also not having the flicker issue, you don't need to go back as far as 470.

robvdl avatar Aug 23 '23 22:08 robvdl

The bug was first reported to NVIDIA in the middle of May, it's now the end of August, 3.5 months later. I have a bad feeling about all of this.

I understand this a bug tracker and not a discussion forum but this is just unacceptable. We are not talking about a minor bug affecting a couple of people, we're talking about a major issue which turns an NVIDIA GPU under Linux into a piece of junk. And the Windows driver was also affected by the issue but it was resolved in under a month.

Has NVIDIA abandoned the consumer market and become a pure AI company? Nah, can't be so, they've just announced DLSS 3.5 for Windows, so they at least care about their Windows users. I simply don't understand.

birdie-github avatar Aug 24 '23 00:08 birdie-github