Screen flickers going back and forward to the last state/image

I just did a brand new install of manjaro i3 in a dell precision 5540 and I’m getting kind of a flicker on the screen.
By flicker I mean that when I do an action the screen switches between the last and actual states a couple of times for a bit more than a second after finally “stabilizing” on the final state.
It’s also curious that it’s not on every action, but more like a intermittent thing that happens a couple of time per minute (so enough to be very annoying).

Some examples where it is more visible:

  • When I switch a tab in the chrome browser, it keeps going back and forward between the last tab and the one that I switched to.
  • When typing (in any app) some letters/words that I just types disappear and appear again a couple of times. Sometimes it even stays “stuck” in the last state (so the word is there, but doesn’t appear on the screen) and I need to do some other action to see the word on the screen.

Here is the inxi -Fxz output:

System:    Kernel: 5.10.60-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: i3 4.19.1 Distro: Manjaro Linux 
           base: Arch Linux 
Machine:   Type: Laptop System: Dell product: Precision 5540 v: N/A serial: <filter> 
           Mobo: Dell model: 0WWHJ2 v: A00 serial: <filter> UEFI: Dell v: 1.11.0 date: 05/31/2021 
Battery:   ID-1: BAT0 charge: 72.0 Wh (94.7%) condition: 76.0/97.0 Wh (78.4%) volts: 12.8 min: 11.4 model: SMP DELL GPM0365 
           status: Charging 
CPU:       Info: 6-Core model: Intel Core i7-9850H bits: 64 type: MT MCP arch: Kaby Lake note: check rev: D cache: L2: 12 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62431 
           Speed: 2325 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 2325 2: 2694 3: 2098 4: 2006 5: 2090 6: 2322 7: 2267 
           8: 3117 9: 2316 10: 2146 11: 2132 12: 1947 
Graphics:  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0 
           Device-2: NVIDIA TU117GLM [Quadro T2000 Mobile / Max-Q] driver: nvidia v: 470.63.01 bus-ID: 01:00.0 
           Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-12:3 
           Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting,nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.1 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 
           Sound Server-1: ALSA v: k5.10.60-1-MANJARO running: yes 
           Sound Server-2: JACK v: 1.9.19 running: no 
           Sound Server-3: PulseAudio v: 15.0 running: yes 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel port: 3000 bus-ID: 3b:00.0 
           IF: wlp59s0 state: up mac: <filter> 
           IF-ID-1: docker0 state: down mac: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 
           Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends 
Drives:    Local Storage: total: 238.47 GiB used: 51.56 GiB (21.6%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEMKF256G8 NVMe 256GB size: 238.47 GiB temp: 28.9 C 
Partition: ID-1: / size: 233.37 GiB used: 51.56 GiB (22.1%) fs: ext4 dev: /dev/dm-0 
           mapped: luks-6109f937-c0a8-4092-8a5b-7a1742f51faa 
           ID-2: /boot/efi size: 299.4 MiB used: 440 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      Alert: No swap data was found. 
Sensors:   System Temperatures: cpu: 62.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2400 fan-2: 2377 
Info:      Processes: 335 Uptime: 2h 56m Memory: 30.97 GiB used: 13.58 GiB (43.9%) Init: systemd Compilers: gcc: 11.1.0 
           Packages: 1159 Shell: Zsh v: 5.8 inxi: 3.3.06 
1 Like

What’s the output of:

mhwd --listinstalled
nvidia-smi
prime-run nvidia-smi

Unrelated to your current problem but please read this.

:thinking:

Here are the outputs:

$ mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.07.28               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!


$ nvidia-smi
Tue Sep  7 09:05:19 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro T2000        Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   38C    P0     8W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1350      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+


$ prime-run nvidia-smi
Tue Sep  7 09:05:23 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro T2000        Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   38C    P0     8W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1350      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

About the swap, didn’t knew that there were advantages on having it when there is a lot of RAM available and no intention to user hibernation, thanks for that!

1 Like

All that looks good, so could you try the following kernels in this order:

  • 5.10 - RealTime
  • 5.14 Stable Development
  • 5.4

and stop when the issue is gone and report back, please?

:face_with_monocle:

1 Like

I tested in that order and it just got stable at 5.4. Thanks!
BTW, now there is some “tearing” when I’m using some specific apps (I noticed it in “manjaro settings manager” and “simple screen recorder”) that wasn’t happening before.
Curiously, I tried to record it with simple screen recorder but it doesn’t appear on the video.

1 Like

Therefore, I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

Have you used the :mag: already to look for existing solutions in “tearing” here on the forum? :smiling_imp:

:crossed_fingers:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.