Niche setup means no display on second gpu

Hi, I’ve got a bit of a complicated situation. A year or two ago I had upgraded from a 3070 to a 6900xt for reasons (it was going to someone else and I used that to upgrade my own). Now I have both gpu’s again, and I want to use the 3070 for additional displays, is this possible? I see that some people have managed this or something similar but whenever I try to install any display drivers for it, it just breaks the drivers for my main display (amd gpu) and the second display (nvidia) stays black too. I was able to uninstall it again afterwards with ctrl+alt+f2 and doing it from there, but is there any way to make this work?

Edit: Ah, It seems I just shouldn’t have installed -470x specifically, installing video-nvidia doesn’t break anything, it just displays nothing off of the second gpu

Updated:

inxi -Fazy                                                       ✔ 
System:
  Kernel: 5.18.12-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
    root=UUID=d89be4e7-7510-4f68-9bd0-432d7b574098 rw quiet
    resume=UUID=eda69e13-c028-46fc-ac4f-837fe5adc3e7 udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.6 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG CROSSHAIR VIII HERO (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 4201
    date: 04/26/2022
CPU:
  Info: model: AMD Ryzen 9 5950X bits: 64 type: MT MCP arch: Zen 3 gen: 4
    built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x21 (33)
    stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 8 MiB desc: 16x512 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 2944 high: 3597 min/max: 2200/5083 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3597 2: 2877
    3: 3542 4: 2879 5: 2859 6: 2863 7: 2874 8: 2878 9: 3596 10: 2876 11: 2791
    12: 2234 13: 2231 14: 2792 15: 2237 16: 2237 17: 3593 18: 2877 19: 3586
    20: 2876 21: 2866 22: 2878 23: 2874 24: 2876 25: 3597 26: 2853 27: 3593
    28: 2879 29: 2878 30: 2875 31: 2873 32: 2875 bogomips: 217668
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Tul /
    PowerColor Red Devil driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 0d:00.0
    chip-ID: 1002:73bf class-ID: 0300
  Device-2: NVIDIA GA104 [GeForce RTX 3070] vendor: PC Partner / Sapphire
    driver: nvidia v: 515.57 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-07) arch: Ampere code: GAxxx process: TSMC n7
    (7nm) built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 4 link-max:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0e:00.0 chip-ID: 10de:2484
    class-ID: 0300
  Device-3: ARC Camera type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 5-3.2:7 chip-ID: 05a3:9331 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: amdgpu,nvidia unloaded: modesetting,nouveau,radeon
    alternate: fbdev,nv,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
    s-diag: 1165mm (45.88")
  Monitor-1: DP-1-2 size-res: N/A modes: N/A
  Monitor-2: HDMI-A-0 pos: primary res: 3840x2160 dpi: 61
    size: 1600x900mm (62.99x35.43") diag: 1836mm (72.27") modes: N/A
  OpenGL: renderer: AMD Radeon RX 6900 XT (sienna_cichlid LLVM 14.0.6 DRM
    3.46 5.18.12-3-MANJARO) v: 4.6 Mesa 22.1.3 direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    bus-ID: 1-2:2 pcie: chip-ID: 262a:9023 gen: 4 speed: 16 GT/s class-ID: 0102
    lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: PC Partner / Sapphire
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 4
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0e:00.1
    chip-ID: 10de:228b class-ID: 0403
  Device-3: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 10:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-4: SAVITECH SA9023 audio controller type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-5: Antlion Audio USB Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-2.4:6 chip-ID: 2f96:0200
    class-ID: 0300
  Device-6: FiiO BTR5 type: USB driver: snd-usb-audio bus-ID: 5-1.4:5
    chip-ID: 2972:0047 class-ID: fe01
  Device-7: ARC Camera type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 5-3.2:7 chip-ID: 05a3:9331 class-ID: 0102 serial: <filter>
  Device-8: SAVITECH SA9023 audio controller type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-4:6 chip-ID: 262a:9023
    class-ID: 0102
  Sound Server-1: ALSA v: k5.18.12-3-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp7s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-6:4
    chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 14.55 TiB used: 2.09 TiB (14.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:6 vendor: Samsung model: SSD 980 PRO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 5B2QGXA7 temp: 48.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Samsung model: SSD 970 EVO Plus
    2TB size: 1.82 TiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 4B2QEXM7
    temp: 47.9 C scheme: GPT
  ID-3: /dev/nvme2n1 maj-min: 259:0 model: PCIe SSD size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4
    type: SSD serial: <filter> rev: EGFM11.0 temp: 44.9 C scheme: GPT
  ID-4: /dev/sda maj-min: 8:0 vendor: Hitachi model: HUS724040ALE641
    size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: A5F0 scheme: GPT
  ID-5: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM001-1ER164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC25 scheme: GPT
  ID-6: /dev/sdc maj-min: 8:32 vendor: MaxDigital model: MD4000GSA6472E
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 1K04 scheme: GPT
  ID-7: /dev/sdd maj-min: 8:48 vendor: Toshiba model: HDWD110
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: A8J0 scheme: GPT
Partition:
  ID-1: / raw-size: 1.75 TiB size: 1.72 TiB (98.37%) used: 53.9 GiB (3.1%)
    fs: ext4 dev: /dev/nvme1n1p2 maj-min: 259:4
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 316 KiB
    (0.1%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:3
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 68.99 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme1n1p3 maj-min: 259:5
Sensors:
  System Temperatures: cpu: 33.0 C mobo: 41.0 C gpu: amdgpu temp: 57.0 C
    mem: 60.0 C
  Fan Speeds (RPM): cpu: 0 gpu: amdgpu fan: 0
Info:
  Processes: 521 Uptime: 3m wakeups: 0 Memory: 62.72 GiB used: 2.82 GiB (4.5%)
  Init: systemd v: 251 default: graphical tool: systemctl Compilers:
  gcc: 12.1.0 clang: 14.0.6 Packages: pacman: 1300 lib: 410 flatpak: 0
  Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.20
mhwd -l & mhwd -li                                               ✔ 
[1] 2984
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
> 0000:0e:00.0 (0300:10de:2484) Display controller nVidia Corporation:          
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.12.18               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:0d:00.0 (0300:1002:73bf) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2021.12.18               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


[1]  + done       mhwd -l
find /etc/X11/ -name "*.conf"                                    ✔ 
/etc/X11/xorg.conf.d/90-mhwd.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf

yes

It is not the problem of the driver, but the xorg configuration… basically you need a custom configuration:

Prime (Nvidia as output source)

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "NVIDIA Screen"
    Inactive "AMD Screen"
EndSection

Section "Device"
    Identifier "NVIDIA GA104"
    Driver "nvidia"
    BusID "14:0:0" # hexadecimal: 0e:00.0  -> decimal: 14:00.0
EndSection

Section "Screen"
    Identifier "NVIDIA Screen"
    Device "NVIDIA GA104"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "AMD Navi 21"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "AMD Screen"
    Device "AMD Navi 21"
EndSection

Prime Reverse (AMD as output source)

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "AMD Screen"
    Inactive "NVIDIA Screen"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "AMD Navi 21"
    Driver "modesetting"
    BusID "13:0:0" # hexadecimal: 0d:00.0 -> decimal: 13:00.0
EndSection

Section "Screen"
    Identifier "AMD Screen"
    Device "AMD Navi 21"
EndSection

Section "Device"
    Identifier "NVIDIA GA104"
    Driver "nvidia"
EndSection

Section "Screen"
    Identifier "NVIDIA Screen"
    Device "NVIDIA GA104"
EndSection

Chapter 34. Offloading Graphics Display with RandR 1.4

Or just use optimus-manager

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