Dual Monitor Setup Not Working

I am trying to setup a dual monitor configuration on my Manjaro Gnome install; I have 2 monitors as follows:

Display port → Dell 25" 1440P monitor
HDMI → 768P monitor

Each monitor works no problem when connected individually, however when both are connected the Display Port monitor turns off, and I cant get both monitors to display at the same time in an extended desktop setup.

I have tried using the Gnome settings and Nvidia settings panel (writing a new Xorg using this) but the DP monitor always shows as ‘off’ and through up a modesetting error when i try to turn it on in Nvidia settings panel.

I note that the dual monitor setup works under windows, so it should be possible under Linux.

System:
  Kernel: 5.10.60-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=92d1abff-4fec-4c02-ad93-48c8ee1c8e66 rw usbcore.autosuspend=-1 
  quiet 
  cryptdevice=UUID=159002a6-1845-486d-add1-94821e5dfe56:luks-159002a6-1845-486d-add1-94821e5dfe56 
  root=/dev/mapper/luks-159002a6-1845-486d-add1-94821e5dfe56 
  resume=/dev/mapper/luks-159002a6-1845-486d-add1-94821e5dfe56 apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 40.4 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0 
  serial: <filter> UEFI: American Megatrends LLC. v: 3.A0 date: 02/03/2021 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.62 GiB used: 2.45 GiB (15.7%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache: 
  L2: 3 MiB bogomips: 86437 
  Speed: 3599 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 3599 2: 2057 3: 2194 4: 2192 5: 3599 6: 2199 7: 2199 8: 2201 9: 3600 
  10: 2057 11: 3600 12: 2194 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sev_es sha_ni 
  skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp 
  succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload 
  vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr 
  xsaveopt xsaves 
  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 1070] vendor: eVga.com. driver: nvidia 
  v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 26:00.0 
  chip-ID: 10de:1b81 class-ID: 0300 
  Display: x11 server: X.Org 1.20.13 compositor: gnome-shell driver: 
  loaded: nvidia display-ID: :1 screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
  s-diag: 777mm (30.6") 
  Monitor-1: DP-0.8 res: 2560x1440 hz: 60 dpi: 118 
  size: 553x311mm (21.8x12.2") diag: 634mm (25") 
  OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA GP104 High Definition Audio vendor: eVga.com. 
  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 
  Sound Server-1: ALSA v: k5.10.60-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 1.9.19 running: no 
  Sound Server-4: PulseAudio v: 15.0 running: yes 
  Sound Server-5: PipeWire v: 0.3.33 running: no 
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus-ID: 21:00.0 
  chip-ID: 8086:2526 class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: 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: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb 
  v: 0.8 bus-ID: 1-10:3 chip-ID: 8087:0025 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
  Device-1: luks-159002a6-1845-486d-add1-94821e5dfe56 maj-min: 254:0 
  type: LUKS dm: dm-0 size: 944.77 GiB 
  Components: 
  p-1: nvme0n1p2 maj-min: 259:2 size: 944.77 GiB 
  Device-2: luks-b3c6855a-a2ae-4b29-ab13-cdc0031f897b maj-min: 254:1 
  type: LUKS dm: dm-1 size: 8.8 GiB 
  Components: 
  p-1: nvme0n1p3 maj-min: 259:3 size: 8.8 GiB 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.59 TiB used: 869.61 GiB (53.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A 
  size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 type: SSD serial: <filter> rev: RKT303.1 temp: 26.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDHII240G 
  size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 00RL scheme: GPT 
  ID-3: /dev/sdb maj-min: 8:16 vendor: TCSunBow model: X3 480GB 
  size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 1A0 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 944.77 GiB size: 928.94 GiB (98.32%) 
  used: 692.46 GiB (74.5%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-159002a6-1845-486d-add1-94821e5dfe56 label: N/A 
  uuid: 92d1abff-4fec-4c02-ad93-48c8ee1c8e66 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 25.7 MiB (8.6%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 23AC-0B6A 
  ID-3: /mnt/Archive raw-size: 447.13 GiB size: 439.11 GiB (98.21%) 
  used: 177.12 GiB (40.3%) fs: ext4 dev: /dev/sdb maj-min: 8:16 label: Archive 
  uuid: 37f8cb63-fd28-43b4-93b0-e9a1218f02b4 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/dm-1 maj-min: 254:1 
  mapped: luks-b3c6855a-a2ae-4b29-ab13-cdc0031f897b label: N/A 
  uuid: 83bb42cd-9e33-46bf-9679-54122c15a88e 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/sda2 maj-min: 8:2 size: 223.04 GiB fs: ntfs label: N/A 
  uuid: 722A53A32A536361 
  ID-3: /dev/sda3 maj-min: 8:3 size: 523 MiB fs: ntfs label: N/A 
  uuid: 88C865DDC865C9D0 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-7:2 info: Valve Wireless Steam Controller type: Keyboard,HID 
  driver: hid-steam,usbhid interfaces: 5 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 28de:1142 class-ID: 0300 
  Device-2: 1-10:3 info: Intel Wireless-AC 9260 Bluetooth Adapter 
  type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 8087:0025 class-ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 3-1:2 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 2109:2811 class-ID: 0900 
  Hub-5: 3-1.3:4 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 2109:2811 class-ID: 0900 
  Device-1: 3-1.3.4:6 info: Holtek Keyboard LKS02 type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 04d9:1702 class-ID: 0300 
  Device-2: 3-1.4:5 info: Logitech G203 Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c084 class-ID: 0300 serial: <filter> 
  Device-3: 3-2:3 info: Microsoft Xbox360 Controller type: <vendor specific> 
  driver: xpad interfaces: 4 rev: 2.0 speed: 12 Mb/s power: 500mA 
  chip-ID: 045e:028e class-ID: ff00 serial: <filter> 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-7: 4-1:2 info: VIA Labs Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 2109:8110 class-ID: 0900 
  Hub-8: 4-1.3:3 info: VIA Labs Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 2109:8110 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 31.0 C mobo: 31.0 C gpu: nvidia temp: 30 C 
  Fan Speeds (RPM): fan-1: 0 fan-2: 499 fan-3: 695 fan-4: 642 fan-5: 693 
  fan-6: 655 gpu: nvidia fan: 26% 
Info:
  Processes: 324 Uptime: 11m wakeups: 0 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 alt: 8 Packages: 1556 pacman: 1546 lib: 479 
  flatpak: 0 snap: 10 Shell: Bash v: 5.1.8 running-in: gnome-terminal 
  inxi: 3.3.06 

It needs to be saved as /etc/X11/mhwd.d/nvidia.conf. See Configure NVIDIA (non-free) settings and load them on Startup - Manjaro

What’s your xrandr output?

1 Like

My xrandr output is as below; it did start working after I wrote the post though god knows why or how as I did nothing new. However it is finicky and temperamental, with the display port monitor sometimes working sometimes not. Additionally the login screen can either be totally blank, or rendered at the 1440p resolution but displayed on the HDMI 768 monitor, or sometimes displayed on the Displayport monitor. Its not consistent at all.

Screen 0: minimum 8 x 8, current 3926 x 1440, maximum 32767 x 32767
DP-0.8 connected primary 2560x1440+1366+0 (normal left inverted right x axis y axis) 553mm x 311mm
   2560x1440     59.95*+
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1200x960      59.90  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1366x768+0+0 (normal left inverted right x axis y axis) 41mm x 23mm
   1366x768      59.79*+
   1920x1080     59.94    50.00    60.05    60.00    50.04  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    72.00    70.07    60.00  
   960x720       60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

EDIT:
Just to re-iterate, while I have both monitors working; it can take multiple reboots for them to take; when I switch on I have no way of knowing if the Displayport monitor (Which is my main 1440p monitor) will display anything or not; the 2nd monitor on HDMI (which I only want as a 2nd screen) reliably displays. However as mentioned I want the Displayport one more than anything and the inconsistent behaviour is frustrating to put it mildly.

If I have a working config; it should be repeatable and not at the whim of butterflies flapping their wings on the other side of the globe as it feels like at the moment.

Y’know what’s weird… I have identical dual 24" monitors connected to my laptop, one via DisplayPort and one via HDMI. DP is primary. Sometimes when I wake the screens via mouse or keyboard press, the DP monitor stays in standby. If I turn if off and on again, it comes back on. :man_shrugging:

Finally found someone with the same issue. Have you found any solution? It’s driving me crazy because even the the unreliability is not reliable xD

I’ve neither found the cause nor a solution, unfortunately. It happens randomly and can go for days without doing it.

I’ve made a post about my problem before I found this thread. There is some info about my system, maybe you can find some similarities to yours that may be the cause for the issue.

Found a solution and posted it on my post.