Help with Multi Monitor AMD APU and NVIDIA GPU

Hello,
I am a novice linux user and just started using Manjaro with Gnome DE on my dekstop PC for coding purposes, now I am trying to do a multimonitor setup. I have an AMD APU Ryzen 5 5600G and DGPU Nvidia 1660 Super. My current gpu driver is video-hybrid-amd-nvidia-prime. My primary monitor is connected to my APU which works but since I am out of HDMI ports I am unable to use the Secondary monitor on my APU and tried to connect it on the HDMI port of my Nvidia DGPU but it doesn’t work. I have read somewhere that it is because of nvidia proprietary drivers unable to be used as output sink. I have also read that I might be able to do a reverse-prime setup making my nvidia gpu as main output but I don’t know how to do that as I am really not familiar with xorg configuration stuff.

I tried using the open source drivers video-linux since I am not going to play games on linux which works for multi-monitor setup but when I plugged the monitor to my DGPU the screen is glitching so I decided to go back to using hybrid drivers.

I hope someone can help me, I will be willing to learn how to do configuration.

Below is my inxi -Gazy                                    
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] driver: nvidia v: 530.41.03
    alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-03) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:21c4
    class-ID: 0300
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Gigabyte driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1
    empty: DP-1,HDMI-A-2 bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300
    temp: 41.0 C
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell v: 43.4 driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,nouveau,radeon alternate: fbdev,nv,vesa dri: radeonsi
    gpu: amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37")
    s-diag: 449mm (17.69")
  Monitor-1: HDMI-1-0 size-res: N/A modes: N/A
  Monitor-2: HDMI-A-0 pos: primary res: 1440x900 hz: 75 dpi: 90
    size: 408x255mm (16.06x10.04") diag: 481mm (18.94") modes: N/A
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.1.25-1-MANJARO) direct-render: Yes

My xrandr output:
                                 
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 16384 x 16384
HDMI-A-0 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
   1440x900      59.89 +
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1366x768      59.79  
   1280x800      59.91  
   1152x864      75.00  
   1280x768      59.87  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32    56.25  
   720x480       60.00    59.94  
   640x480       75.00    72.81    60.00    59.94  
   720x400       70.08  
   1440x900_75.00  74.98* 
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DVI-D-1-0 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected (normal left inverted right x axis y axis)
   1280x720      60.00 +  59.94    50.00  
   1920x1080     59.94    50.00  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1366x768      59.79  
   1360x768      60.02  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x768      59.87  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94  

lspci | grep -E "VGA|3D":
                    
01:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER] (rev a1)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c9)
1 Like