X11: Switch from Nvidia to AMD: 2 out of 3 monitors black

Hello community,

I think i have some issue with my X11 and i can not fix it. With my 1080TI all 3 monitors were working fine, i have now switched to a 6900 xt and somehow all 3 monitors are detected but except the frist one the other ones are black.

Some information:

System:
  Kernel: 5.10.114-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=10d2323a-a479-493f-a1c8-b109cebc8839 ro quiet
    cryptdevice=UUID=11536395-f335-4661-b994-84b7c1aa5503:luks-11536395-f335-4661-b994-84b7c1aa5503
    root=/dev/mapper/luks-11536395-f335-4661-b994-84b7c1aa5503 apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.3 wm: kwin_x11 vt: 1
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX Z370-E GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3003
    date: 04/15/2021
CPU:
  Info: model: Intel Core i9-9900KF bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xD (13) microcode: 0xEC
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1313 high: 4144 min/max: 800/5000 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 2333
    4: 1237 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
    13: 800 14: 1183 15: 4144 16: 3312 bogomips: 115232
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  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 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds mitigation: TSX disabled
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6900 XT] vendor: XFX driver: amdgpu
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-2,HDMI-A-1 empty: DP-3 bus-ID: 03:00.0 chip-ID: 1002:73af
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: amdgpu unloaded: modesetting,radeon,vesa alternate: fbdev
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5760x3240 s-dpi: 96 s-size: 1522x856mm (59.92x33.70")
    s-diag: 1746mm (68.75")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,top-center
    model: BenQ GL2760 serial: <filter> built: 2016 res: 1920x1080 hz: 60
    dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: DP-2 mapped: DisplayPort-1 pos: bottom-r model: Asus MX279
    serial: <filter> built: 2014 res: 1920x1080 dpi: 82 gamma: 1.2
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-3: HDMI-A-1 mapped: HDMI-A-0 pos: middle-l model: Samsung LU28R55
    serial: <filter> built: 2038 res: 3840x2160 dpi: 154 gamma: 1.2
    size: 632x360mm (24.88x14.17") diag: 727mm (28.6") ratio: 16:9 modes:
    max: 3840x2160 min: 720x400
  OpenGL: renderer: AMD Radeon RX 6900 XT (sienna_cichlid LLVM 13.0.1 DRM
    3.40 5.10.114-1-MANJARO)
    v: 4.6 Mesa 22.0.3 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-3: Logitech PRO X Wireless Gaming Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-9:11 chip-ID: 046d:0aba
    class-ID: 0300
  Sound Server-1: ALSA v: k5.10.114-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter vendor: ASUSTeK
    driver: rtw_8822be v: N/A modules: rtw88_8822be pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 06:00.0 chip-ID: 10ec:b822
    class-ID: 0280
  IF: wlp6s0 state: down mac: <filter>
  IF-ID-1: anbox0 state: down mac: <filter>
  IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-4: wg0 state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: ASUSTek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-7:7 chip-ID: 0b05:185c class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 4.55 TiB used: 395.77 GiB (8.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS100T3X0C-00SJG0 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 111110WD temp: 47.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Samsung
    model: SSD 970 EVO 500GB size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXE7 temp: 44.9 C scheme: GPT
  ID-3: /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
    type: SSD serial: <filter> rev: 3B6Q scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 QVO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-5: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: MBR
Partition:
  ID-1: / raw-size: 465.46 GiB size: 457.09 GiB (98.20%)
    used: 395.74 GiB (86.6%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-11536395-f335-4661-b994-84b7c1aa5503
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 25.8 MiB (8.6%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:3
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: amdgpu temp: 32.0 C
    mem: 32.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
  Processes: 407 Uptime: 10m wakeups: 0 Memory: 31.28 GiB
  used: 2.97 GiB (9.5%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 Packages: 1712 pacman: 1702 lib: 466 flatpak: 0 snap: 10
  Shell: Zsh v: 5.8.1 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.16

/etc/X11  xrandr --listmonitors                                                                


Monitors: 3
 0: +*DisplayPort-0 1920/598x1080/336+1194+0  DisplayPort-0
 1: +DisplayPort-1 1920/598x1080/336+3840+1372  DisplayPort-1
 2: +HDMI-A-0 3840/632x2160/360+0+1080  HDMI-A-0

mhwd -li -d --pci                                                                             ✔ 
   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

mhwd-gpu --status                                                                             ✔ 


:: status
warning: could not find '/etc/X11/xorg.conf.d/90-mhwd.conf'!

    /etc/X11  ls -alR /etc/X11                                                                              ✔ 
/etc/X11:
insgesamt 44
drwxr-xr-x   6 root root  4096 23. Mai 10:14 .
drwxr-xr-x 135 root root 12288 23. Mai 11:20 ..
drwxr-xr-x   2 root root  4096 23. Mai 10:14 mhwd.d
drwxr-xr-x   2 root root  4096  1. Mai 20:50 tigervnc
drwxr-xr-x   3 root root  4096  3. Jan 2021  xinit
drwxr-xr-x   2 root root  4096 23. Mai 11:11 xorg.conf.d

/etc/X11/mhwd.d:
insgesamt 12
drwxr-xr-x 2 root root 4096 23. Mai 10:14 .
drwxr-xr-x 6 root root 4096 23. Mai 10:14 ..

/etc/X11/tigervnc:
insgesamt 16
drwxr-xr-x 2 root root 4096  1. Mai 20:50 .
drwxr-xr-x 6 root root 4096 23. Mai 10:14 ..
-rwxr-xr-x 1 root root 1452 14. Mär 13:48 Xsession

/etc/X11/xinit:
insgesamt 28
drwxr-xr-x 3 root root 4096  3. Jan 2021  .
drwxr-xr-x 6 root root 4096 23. Mai 10:14 ..
-rw-r--r-- 1 root root  739 10. Okt 2020  xinitrc
drwxr-xr-x 2 root root 4096 13. Mai 16:26 xinitrc.d
-rw-r--r-- 1 root root   45 10. Okt 2020  xserverrc

/etc/X11/xinit/xinitrc.d:
insgesamt 24
drwxr-xr-x 2 root root 4096 13. Mai 16:26 .
drwxr-xr-x 3 root root 4096  3. Jan 2021  ..
-rwxr-xr-x 1 root root  318  1. Apr 21:02 40-libcanberra-gtk-module.sh
-rwxr-xr-x 1 root root  538 28. Apr 23:47 50-systemd-user.sh
-rwxr-xr-x 1 root root  243 15. Jan 22:01 80xapp-gtk3-module.sh

/etc/X11/xorg.conf.d:
insgesamt 20
drwxr-xr-x 2 root root 4096 23. Mai 11:11 .
drwxr-xr-x 6 root root 4096 23. Mai 10:14 ..
-rw-r--r-- 1 root root  232 21. Jan 2021  00-keyboard.conf
-rw-r--r-- 1 root root  131  3. Jan 2021  30-touchpad.conf


I tried so many things but nothing helped so far, have you any suggestions for me?

Thanks in advance!

post output from:
mhwd -l && mhwd -li
find /etc/X11/ -name "*.conf"

go to system settings/compositor, uncheck enable on startup, click apply
then reboot and check if the monitors are detected

Issues are still the same.

In the compositor window, there is an information box that tells that OpenGL-Compositing has crashed in the past. Cause was probably are faulty driver. If you have are sure you have a stable version, you can turn it on.

mhwd -l && mhwd -li                                                                              INT ✘ 
> 0000:03:00.0 (0300:1002:73af) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!            
find /etc/X11/ -name "*.conf"                                                                        ✔ 
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/00-keyboard.conf

I cannot say specifically only describe a similar issue and the solution.

$ inxi -SG
System:
  Host: tiger Kernel: 5.17.9-1-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.24.5 Distro: Manjaro Linux
Graphics:
  Device-1: AMD Ellesmere [Radeon Pro WX 7100] driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: amdgpu
    unloaded: modesetting gpu: amdgpu resolution: 1: 1920x1080~60Hz
    2: 5120x1440
  OpenGL: renderer: AMD Radeon Pro WX 7100 Graphics (polaris10 LLVM 13.0.1
    DRM 3.44 5.17.9-1-MANJARO)
    v: 4.6 Mesa 22.0.4

I have two monitors - #2 in above inxi @120Hz - when I connect the #1 I can enable it in system settings but the system goes haywire.

If I lower #2 monitor to @60Hz then I can enable #1 without problems.

EDIT/followup:

I was speculating to what end the monitor connecting cables was playing a role in this - after all you can buy them in a variety of qualities.

My secondary monitor was connected using HDMI and DP to HDMI adapter.

I bought an 8k 144hz displayport cable and reconnected the secondary monitor using the new cable.

$ inxi -G
Graphics:
  Device-1: AMD Ellesmere [Radeon Pro WX 7100] driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: amdgpu
    unloaded: modesetting gpu: amdgpu resolution: 1: 5120x1440 2: 1920x1080
  OpenGL: renderer: AMD Radeon Pro WX 7100 Graphics (polaris10 LLVM 13.0.1
    DRM 3.44 5.17.9-1-MANJARO)
    v: 4.6 Mesa 22.0.4

$ xrandr --listmonitors        
Monitors: 2
0: +*DisplayPort-0 5120/1190x1440/340+1920+0  DisplayPort-0
1: +DisplayPort-3 1920/598x1080/336+0+81  DisplayPort-3

This resulted in my system being able to sync my primate monitor @120Hz and the seondary @144Hz.

So my personal experience for this little test is that connection matters - I have no experience with Windows - but surely this system works far better this way.

Tried all combinations of frequencies. Still the same problems. It seems that everything is fine but both screens keep being black. Checked in windows and everthing works like charm (GPU, cable, monitors).

This inxi output is a good demonstration of what the latest graphics output enhancements were designed to show, one of the better ones I’ve seen. You can see for example that the ports are not disabled, are on, and connected, which is the first thing you’d look for in a failure case like this, so you can exclude that.

I’d take a look at /var/log/Xorg.0.log and look for any errors there.

Because you see the position pos: items, that means that there’s no issue with xrandr having a configuration to disable or turn them off, you would not see pos: if each monitor was not enabled. So you can probably exclude xrandr configuration somewhere or other.

I’d look for /etc/X11 xorg configuration files that you may have forgotten about, maybe connected to nvidia settings. If you used a gui thing to set the monitors before, it may have created a settings file or configuration that is stuck, that would be my guess, but I don’t know anything about gui stuff. If you used KDE then kde might be storing the nvidia stuff somewhere and is trying to run it, thus disabling two of the monitors.

inxi has no way to check things that gnome or kde do in terms of monitor placement, that’s a known issue which I have found no solution for, and since I don’t use kde or gnome, I’m not likely to find one, I’m hoping someone can dig some stuff up for those two, particularly for wayland.

Note that 3.3.17 inxi is actively being developed to finish the new gpu extra data features, so you’ll see if it all works, amd gpu arch: (intel too, but that’s harder), and cpu and gpu process size, like 14nm or whatever. Most of these features are now working in beta testing in pinxi, and should be out in a few weeks.