Second Monitor Turns Off/On Periodically

Hello,

I’m new to Manjaro but not so new to Linux. I’m having an issue where my second monitor periodically (anywhere from 30 seconds to 10 minutes) turns off for about 2 seconds and turns back on.

The only log output that I can find that could be related to this is the output from /var/log/Xorg.1.log:

My primary monitor does not do this and I’m not sure what the issue could be given that I haven’t noticed this behavior on any other Linux distro I’ve tried on this PC (PopOS, Elementary OS, Debian).

Here are some common log outputs from random posts on this forum but involved Nvidia and monitors. Please let me know if you’d like to see anything else.

Conf / Log Output

/var/log/Xorg.1.log

This doesn’t tell me much because the frequency of the monitor turning off/on is much faster than 2500 seconds.

[  2024.358] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): connected
[  2024.358] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): Internal TMDS
[  2024.358] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): 600.0 MHz maximum pixel clock
[  2024.358] (--) NVIDIA(GPU-0): 
[  2024.404] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): connected
[  2024.404] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): Internal TMDS
[  2024.404] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): 600.0 MHz maximum pixel clock
[  2024.404] (--) NVIDIA(GPU-0): 
[  4522.444] (--) NVIDIA(GPU-0): DFP-0: disconnected
[  4522.444] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[  4522.444] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[  4522.444] (--) NVIDIA(GPU-0): 
[  4522.444] (--) NVIDIA(GPU-0): DFP-1: disconnected
[  4522.445] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[  4522.445] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[  4522.445] (--) NVIDIA(GPU-0): 
[  4522.491] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): connected
[  4522.491] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): Internal TMDS
[  4522.491] (--) NVIDIA(GPU-0): Acer XF270HU (DFP-2): 600.0 MHz maximum pixel clock
[  4522.491] (--) NVIDIA(GPU-0): 
[  4522.491] (--) NVIDIA(GPU-0): HKC 27E1QA (DFP-3): connected
[  4522.491] (--) NVIDIA(GPU-0): HKC 27E1QA (DFP-3): Internal DisplayPort
[  4522.491] (--) NVIDIA(GPU-0): HKC 27E1QA (DFP-3): 2660.0 MHz maximum pixel clock
[  4522.491] (--) NVIDIA(GPU-0): 
[  4522.493] (--) NVIDIA(GPU-0): DFP-4: disconnected
[  4522.493] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[  4522.493] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[  4522.493] (--) NVIDIA(GPU-0): 
[  4522.493] (--) NVIDIA(GPU-0): DFP-5: disconnected
[  4522.493] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[  4522.493] (--) NVIDIA(GPU-0): DFP-5: 2660.0 MHz maximum pixel clock
[  4522.493] (--) NVIDIA(GPU-0): 
[  4522.493] (--) NVIDIA(GPU-0): DFP-6: disconnected
[  4522.493] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[  4522.493] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[  4522.493] (--) NVIDIA(GPU-0): 
[  4522.493] (--) NVIDIA(GPU-0): DFP-7: disconnected
[  4522.493] (--) NVIDIA(GPU-0): DFP-7: Internal DisplayPort
[  4522.493] (--) NVIDIA(GPU-0): DFP-7: 2660.0 MHz maximum pixel clock
[  4522.493] (--) NVIDIA(GPU-0): 

nvidia-smi

Fri Mar 10 08:40:23 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| 25%   44C    P0    56W / 215W |    554MiB /  8192MiB |     23%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1038      G   /usr/lib/Xorg                      34MiB |
|    0   N/A  N/A      1119      G   /usr/lib/Xorg                     252MiB |
|    0   N/A  N/A      1320      G   budgie-wm                          70MiB |
|    0   N/A  N/A      1866      G   /usr/lib/firefox/firefox          176MiB |
|    0   N/A  N/A      3814      G   ...RendererForSitePerProcess       16MiB |
+-----------------------------------------------------------------------------+


inxi --admin --verbosity=7 --filter --width

System:
  Kernel: 6.1.12-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=002bf6d6-6ead-4965-80bc-3f10162fbaa2 rw quiet apparmor=1
    security=apparmor resume=UUID=03f27fee-f86b-4885-8dab-3aa0e856b7a7
    udev.log_priority=3
  Desktop: Budgie v: 10.7 info: budgie-panel wm: budgie-wm vt: 2 dm: LightDM
    v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z370P D3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: Z370P D3-CF serial: <superuser required>
    UEFI: American Megatrends v: F15 date: 11/13/2021
Battery:
  Device-1: hidpp_battery_0 model: Logitech G604 Wireless Gaming Mouse
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 31.28 GiB used: 3.76 GiB (12.0%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-8700K bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 1525 high: 3700 min/max: 800/4700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 3700 4: 800
    5: 800 6: 800 7: 800 8: 3700 9: 800 10: 3700 11: 800 12: 801
    bogomips: 88824
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep smap smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: Micro-Star MSI
    driver: nvidia v: 525.89.02 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2023-02) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1e82 class-ID: 0300
  Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8
    compositor: budgie-wm driver: X: loaded: nvidia gpu: nvidia display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 5120x1440 s-size: <missing: xdpyinfo>
  Monitor-1: DP-2 pos: primary,left res: 2560x1440 dpi: 93
    size: 698x393mm (27.48x15.47") diag: 801mm (31.54") modes: N/A
  Monitor-2: HDMI-0 pos: right res: 2560x1440 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA TU104 HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f8 class-ID: 0403
  Sound API: ALSA v: k6.1.12-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8812AE 802.11ac PCIe Wireless Network Adapter
    driver: rtl8821ae v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: c000
    bus-ID: 08:00.0 chip-ID: 10ec:8812 class-ID: 0280
  IF: wlp8s0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-2:3 chip-ID: 0a12:0001 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 4.47 TiB used: 15.17 GiB (0.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Smart Modular Tech.
    model: SHGP31-1000GM-2 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 41060C20 temp: 44.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT250MX500SSD1
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 023 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM006-2DM164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC26 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Vaseky model: V800 500GB
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: KR scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: SanDisk model: SDSSDH3 1T02
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1000 scheme: GPT
  ID-6: /dev/sde maj-min: 8:64 type: USB vendor: SanDisk model: USB 3.2Gen1
    size: 114.61 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 765.5 GiB size: 752.41 GiB (98.29%) used: 14.86 GiB (2.0%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 002bf6d6-6ead-4965-80bc-3f10162fbaa2
  ID-2: /boot/efi raw-size: 1.95 GiB size: 1.95 GiB (99.80%)
    used: 312.7 MiB (15.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: BOOTEFI uuid: 48C3-EC11
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.41 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 03f27fee-f86b-4885-8dab-3aa0e856b7a7
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 232.88 GiB fs: ext4 label: LinuxExtra
    uuid: 9c31c548-308d-47bb-9362-09f9b56fa32a
  ID-2: /dev/sdb1 maj-min: 8:17 size: 1.82 TiB fs: ntfs label: Barracuda1
    uuid: D8E4CB99E4CB77F0
  ID-3: /dev/sdc1 maj-min: 8:33 size: 100 GiB fs: ntfs label: N/A
    uuid: 4CB14CDD7171AF68
  ID-4: /dev/sdc2 maj-min: 8:34 size: 376.94 GiB fs: ntfs label: N/A
    uuid: 5F289D5E2E021386
  ID-5: /dev/sdd1 maj-min: 8:49 size: 953.27 GiB fs: ntfs label: N/A
    uuid: C6A8F2C8A8F2B651
  ID-6: /dev/sdd2 maj-min: 8:50 size: 600 MiB fs: ntfs label: N/A
    uuid: 62A6094EA609245F
  ID-7: /dev/sde1 maj-min: 8:65 size: 256 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-8: /dev/sde10 maj-min: 8:74 size: 3.5 GiB fs: iso9660
  ID-9: /dev/sde11 maj-min: 8:75 size: 4.2 GiB fs: iso9660
  ID-10: /dev/sde2 maj-min: 8:66 size: 1024 MiB fs: iso9660
  ID-11: /dev/sde3 maj-min: 8:67 size: 3 GiB fs: ext4 label: Kali-Install
    uuid: 04e1bddd-a9e9-421b-9bb5-84f7e556e767
  ID-12: /dev/sde4 maj-min: 8:68 size: 1024 MiB fs: iso9660
  ID-13: /dev/sde5 maj-min: 8:69 size: 3 GiB fs: iso9660
  ID-14: /dev/sde7 maj-min: 8:71 size: 23.84 GiB fs: ext4
    label: USB-Shared-Files uuid: dbad7b79-8e86-4871-8864-7e892c061818
  ID-15: /dev/sde8 maj-min: 8:72 size: 2 GiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-16: /dev/sde9 maj-min: 8:73 size: 3 GiB fs: iso9660
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Hub-3: 1-1.2:4 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-1.2.3:6 info: SanDisk Ultra Flair type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 2.1 speed: 480 Mb/s power: 224mA
    chip-ID: 0781:5591 class-ID: 0806 serial: <filter>
  Device-2: 1-1.2.4:7 info: Logitech Cordless Mouse Receiver
    type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3
    rev: 2.0 speed: 12 Mb/s power: 98mA chip-ID: 046d:c539 class-ID: 0300
  Device-3: 1-2:3 info: Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
    type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
    chip-ID: 0a12:0001 class-ID: e001
  Device-4: 1-10:5 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Hub-4: 2-0:1 info: Super-speed hub ports: 10 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-5: 2-1:2 info: Genesys Logic Hub ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 05e3:0612 class-ID: 0900
  Hub-6: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-7: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 33.0 C mobo: N/A gpu: nvidia temp: 44 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 25%
Info:
  Processes: 331 Uptime: 1h 15m wakeups: 11 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1039 libs: 299 tools: pamac Shell: Bash v: 5.1.16
  running-in: tilix inxi: 3.3.25

Display Settings Update

So while trying different display configurations, to see if anything was causing this issue, I changed the refresh rate from 144.01MHz to 120MHz and my display hasn’t been disconnecting for over an hour now.

144.01Mhz is an odd refresh rate to have for this monitor. My primary monitor’s refresh rate equivalent option is only 144Mhz.

Could that extra 0.01 be causing this issue?
How can I modify that value to be a flat 144Mhz or even 140Mhz to test this out?

Hi, I’m having the same problem. However, both my monitors are 60Hz, so I wouldn’t want to decrease the refresh rate even further.

Have you managed to find why this happens?

Thanks in advance.

After booting Windows a couple of times, the issue appears to be gone.

Recently, I received multiple updates on Manjaro about Linux 6.2 and its NVIDIA drivers. Maybe it was an attempt to fix a bug introduced in previous versions?

Well, normally the kernel reads the EDID from the monitor. If there is a difference of 0.01, then this must be true, although Windows for example will not show it and round it to full numbers.

No idea about your budgie-wm, but usually xorg has a “Display Power Management Signaling” short: DPMS. It could perfectly happen that after some time of idle, so no “mouse move” on the second display it sends a blanktime signal or there is some odd issue combined with the monitors “eco-mode”.

Have look to force disable DPMS: Display Power Management Signaling - ArchWiki