Black flickering for a split second

Hello,

im a new linux user, having a little experience with ubuntu but very new to manjaro.

I just installed manjaro with XFCE and noticed that im having a black flickering from time to time. Usually after booting it occurs some times. When using the system it occurs unregularly. It sometimes happens 3 times in a row, and sometimes doesn’t occur for 10 minutes.
I dont really know how to describe the problem… it looks like the screen is turning black for a split second.

My primary screen is a 144hz screen (2560x1440, DisplayPort) and it feels like the problem doesnt occur when i set it to 60hz.
I have a secondary screen connected (1920x1080, HDMI).

On installation i selected to use NVIDIA drivers.

In NVIDIA X Server Settings i tried selecting “Force Composition Pipeline” or “Force Full Composition Pipeline”, but after that it doesn’t look and feel like it is 144hz.

When I select “Save to X Configuration File” and then select “Show Preview…” it shows this:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 460.39

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG ULTRAGEAR"
    HorizSync       230.0 - 230.0
    VertRefresh     48.0 - 144.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1080"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-6"
    Option         "metamodes" "DP-4: nvidia-auto-select +0+0, DP-3: nvidia-auto-select +2560+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Here is the output of inxi -Fazy:

System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=4334f469-c036-44c9-860a-4690adf9d0d8 ro quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 3.40 date: 10/25/2019 
CPU:
  Info: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: N/A microcode: 8701013 
  L2 cache: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 115232 
  Speed: 3596 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 3596 2: 2057 3: 2125 4: 2131 5: 2123 6: 2127 7: 2121 8: 3992 9: 2055 
  10: 2054 11: 2057 12: 2055 13: 2054 14: 3743 15: 4095 16: 2112 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: Micro-Star MSI 
  driver: nvidia v: 460.39 alternate: nouveau,nvidia_drm bus ID: 26:00.0 
  chip ID: 10de:1b80 class ID: 0300 
  Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia display ID: :0.0 
  screens: 1 
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.7x15.0") 
  s-diag: 1245mm (49") 
  Monitor-1: DP-3 res: 1920x1080 hz: 60 dpi: 92 size: 531x299mm (20.9x11.8") 
  diag: 609mm (24") 
  Monitor-2: DP-4 res: 2560x1440 hz: 144 dpi: 109 size: 597x336mm (23.5x13.2") 
  diag: 685mm (27") 
  OpenGL: renderer: GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 460.39 
  direct render: Yes 
Audio:
  Device-1: NVIDIA GP104 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 26:00.1 chip ID: 10de:10f0 
  class ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 28:00.4 chip ID: 1022:1487 
  class ID: 0403 
  Device-3: Logitech G930 type: USB driver: hid-generic,snd-usb-audio,usbhid 
  bus ID: 1-8:2 chip ID: 046d:0a1f class ID: 0300 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 22:00.0 
  chip ID: 10ec:8168 class ID: 0200 
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 1.59 TiB used: 21.87 GiB (1.3%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung 
  model: SSD 970 EVO Plus 1TB size: 931.51 GiB block size: physical: 512 B 
  logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
  rev: 2B2QEXM7 temp: 31.9 C scheme: MBR 
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 500GB 
  size: 465.76 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 2B6Q scheme: GPT 
  ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 840 EVO 250GB 
  size: 232.89 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: BB0Q scheme: MBR 
Partition:
  ID-1: / raw size: 465.46 GiB size: 457.16 GiB (98.22%) 
  used: 21.87 GiB (4.8%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 316 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2 
  file: /swapfile 
Sensors:
  System Temperatures: cpu: 43.9 C mobo: N/A gpu: nvidia temp: 45 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 314 Uptime: 7m wakeups: 0 Memory: 31.37 GiB used: 1.82 GiB (5.8%) 
  Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 1197 pacman: 1184 
  lib: 399 flatpak: 7 snap: 6 Shell: Bash v: 5.1.0 running in: xfce4-terminal 
  inxi: 3.3.01 

Also I just found out that im seeing this in very often when im reading this logfile:
cat /var/log/Xorg.0.log

[   168.259] (--) NVIDIA(GPU-0): 
[   168.261] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   168.261] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   168.261] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   168.261] (--) NVIDIA(GPU-0): 
[   458.682] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   458.682] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[   458.682] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[   458.682] (--) NVIDIA(GPU-0): 
[   458.682] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   458.682] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   458.682] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   458.682] (--) NVIDIA(GPU-0): 
[   458.682] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   458.682] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   458.682] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[   458.682] (--) NVIDIA(GPU-0): 
[   458.682] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   458.682] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   458.682] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   458.682] (--) NVIDIA(GPU-0): 
[   458.682] (--) NVIDIA(GPU-0): DFP-4: disconnected
[   458.682] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[   458.682] (--) NVIDIA(GPU-0): DFP-4: 1440.0 MHz maximum pixel clock
[   458.682] (--) NVIDIA(GPU-0): 
[   458.746] (--) NVIDIA(GPU-0): Acer S242HL (DFP-5): connected
[   458.746] (--) NVIDIA(GPU-0): Acer S242HL (DFP-5): Internal TMDS
[   458.746] (--) NVIDIA(GPU-0): Acer S242HL (DFP-5): 300.0 MHz maximum pixel clock
[   458.746] (--) NVIDIA(GPU-0): 
[   458.746] (--) NVIDIA(GPU-0): LG Electronics LG ULTRAGEAR (DFP-6): connected
[   458.746] (--) NVIDIA(GPU-0): LG Electronics LG ULTRAGEAR (DFP-6): Internal DisplayPort
[   458.746] (--) NVIDIA(GPU-0): LG Electronics LG ULTRAGEAR (DFP-6): 1440.0 MHz maximum pixel clock
[   458.746] (--) NVIDIA(GPU-0): 
[   458.747] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   458.747] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   458.747] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   458.747] (--) NVIDIA(GPU-0): 
[   993.822] (EE) event20 - HID 046a:0023: client bug: event processing lagging behind by 12ms, your system is too slow

But this doesn’t seem to be the problem. I tried to convert the timestamp with date -d “-458.747 seconds” and this is no time when there was a flickering.

Id be very thankful if someone could help me here.

Has no one an idea? Anyone? :pensive:

You haven’t had any response because it’s an intermittent problem and they’re hard to debug.

I would:

  • Upgrade to Kernel 5.4 LTS (Long Time Support) or 5.10 (LTS candidate) because 5.9 is EOL
  • change the display cables (disconnections are generally cable-related)
  • Put the screen frequency on both monitors to the same

If that works stably for 24 hours:

  • move the monitors further apart from one another (1m distance)
    OR
  • put a metal sheet in-between one another

and set again to different display frequencies to ensure one of the monitors isn’t badly shielded and interfering with the display frequency of the other one.

:man_shrugging: