Question regarding connecting multiple displays using integrated graphics

Hello everyone,
I am kind of a novice and would really appreciate if someone would answer my question. I am running Manjaro, kernel version 5.19.17-2 and would like to connect multiple monitors to my laptop only using my integrated graphics. My laptop is running an rtx 3070ti along with ryzen 9 6900HS with radeon graphics. My laptop also has a MUX switch. One of my monitors is connected via the type c port and the other one is connected via the HDMI port.

I have installed optimus-manager and can connect multiple monitors when the system is running on the hybrid or discrete mode, but only my type-c display works when running on integrated graphics. I would like to pass through my 3070ti GPU to a windows VM while having multiple displays running on Manjaro simultaneously. Is there a way to do this?

Thank you

Please read and post an inxi output. Also kernel 5.19 is EOL. It would be a good idea to use either a LTS kernel (5.15 or 5.10) or kernel 6.0x. Which VM software are you using?

Hello,

I am using QEMU/KVM to virtualise windows. Additionally, I was using kernel version 5.15.78-1 before but I ran into wifi issues that were fixed when I switched to 5.19.17-2.

inxi output:

System:
  Kernel: 5.19.17-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
    root=UUID=c0acb76a-b021-48c9-9096-af28186e7f1a rw quiet
    resume=UUID=24c36ec6-0cbf-4a2c-bd66-5dcddc4355dd udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
CPU:
  Info: model: AMD Ryzen 9 6900HS with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3+ gen: 4 level: v3
Graphics:
  Device-1: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] vendor: ASUSTeK
    driver: nvidia v: 470.141.03 alternate: nouveau,nvidia_drm non-free: 520.xx+
    status: current (as of 2022-10) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none off: DP-9
    empty: HDMI-A-1,eDP-2 bus-ID: 01:00.0 chip-ID: 10de:24a0 class-ID: 0300
  Device-2: AMD Rembrandt [Radeon 680M] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-2 code: Navi-2x 
Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia dri: radeonsi gpu: amdgpu,nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1184x380mm (46.61x14.96")
    s-diag: 1243mm (48.96")
  Monitor-1: not-matched mapped: DP-1-0 pos: bottom-r res: 1920x1080 hz: 60
    dpi: 92 size: 531x298mm (20.91x11.73") diag: 609mm (23.97") modes: N/A
  Monitor-2: not-matched mapped: DP-2 pos: primary,top-left res: 2560x1440
    hz: 144 dpi: 109 size: 597x336mm (23.5x13.23") diag: 685mm (26.97")
    modes: N/A
  Monitor-3: eDP-1 note: disabled model: BOE Display 0x0a55 built: 2021
    res: 2560x1440 dpi: 189 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: AMD Radeon Graphics (rembrandt
    LLVM 14.0.6 DRM 3.47 5.19.17-2-MANJARO) direct render: Yes

Thank you

I know from setting up an Intel nuc 11 that even though displays can be connected via usb-c (thunderbolt), mini display port or hdmi this wasn’t possible in any configuration because the various connections were hardwired in a specific way to the different cards.

I suggest you have a look at the asus website to check if there’s a similar block diagram as the one on the Intel site.

Hello,

I checked Asus’s website but could find no such diagram, however a few forum posts mention that this laptop wires its type-c connectors directly to the discrete GPU and connects the HDMI port directly to the CPU. I guess this means that if I pass my discrete GPU to the Windows VM, I won’t be able to use multiple monitors when the VM is running. As an alternative, can I buy a USB to HDMI adapter and connect the second monitor to this adapter so that both the monitors utilize the integrated graphics?

Thank you