How to configure 3 monitor? [SOLVED]

I have an ASUS laptop P2451FA. It has a USB-C port, HDMI port, and VGA port. Most of the time, I use the HDMI port to extend my Laptop monitor.
Recently I bought a portable monitor with a USB-C connector and I want that as my third monitor. This is the result of xrandr when using only HDMI

Screen 0: minimum 320 x 200, current 2732 x 768, maximum 16384 x 16384
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1366x768      60.00*+
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1366x768+1366+0 (normal left inverted right x axis y axis) 411mm x 229mm
   1366x768      59.79*+  75.00  
   1280x1024     60.02  
   1280x768      59.87  
   1280x720      60.00  
   1024x768      75.03    70.07    60.00  
   800x600       72.19    75.00    60.32  
   640x480       75.00    72.81    59.94  
   720x400       70.08 

and when plugging the portable monitor

Screen 0: minimum 320 x 200, current 2646 x 768, maximum 16384 x 16384
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1366x768      60.00*+
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1280x720+1366+24 (normal left inverted right x axis y axis) 344mm x 195mm
   1920x1080     60.00 +  50.00    59.94    30.00    29.97  
   1280x720      60.00*   50.00    30.00    59.94    29.97  
   1024x768      60.00  
   1440x480      60.00    59.94  
   800x600       60.32  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
HDMI-1 connected (normal left inverted right x axis y axis)
   1368x768      59.88  
   1280x800      59.81  
   1280x720      59.86  
   1024x768      60.00  
   1024x576      59.90  
   960x540       59.63  
   800x600       60.32  
   800x450       59.82  
   700x450       59.88  
   640x480       59.94  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32  
   320x240       60.05 

it is detected but shows a blank screen in both (the HDMI and the portable monitor (DP-2)). How can I configure my laptop so the HDMI and the portable monitor can be used simultaneously?


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

All seems to be connected, what do you see in System Settings->Display and Monitor? Take a proper screenshot instead of explaining, of course.

According to this your laptop has only a built-in Intel UHD Graphics that can drive a monitor via hdmi or vga. Most mobile devices that can drive a monitor via usb-c have the DP port hard-wired to the dedicated graphics card, so check your manual if your device actually supports monitors via usb-c.

In order to not have to guess your exact hardware specs better show us the output of:
inxi -Fazy


Here is the System Settings -> Display and Monitor

Here is the result of inxi -Fazy

System:
  Kernel: 6.7.0-0-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.7-x86_64
    root=UUID=3c769c46-ac7b-4d59-80a7-659e7fc57a8f rw quiet
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS EXPERTBOOK P2451FA_P2451FA v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: P2451FA v: 1.0 serial: <superuser required>
    UEFI: ASUSTeK v: P2451FA.312 date: 03/04/2022
Battery:
  ID-1: BAT0 charge: 37.2 Wh (97.4%) condition: 38.2/48.0 Wh (79.5%)
    power: 4.3 W volts: 11.9 min: 11.9 model: ASUSTeK ASUS Battery type: Li-ion
    serial: N/A status: charging cycles: 317
CPU:
  Info: model: Intel Core i3-10110U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF8
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 2700 min/max: 400/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 2700 2: 2700 3: 2700 4: 2700 bogomips: 20810
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow 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: Enhanced / Automatic IBRS, IBPB: conditional,
    RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: DP-2,eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:9b41
    class-ID: 0300
  Device-2: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4 chip-ID: 13d3:56a2
    class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.10 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 3670x768 s-dpi: 96 s-size: 970x203mm (38.19x7.99")
    s-diag: 991mm (39.02")
  Monitor-1: DP-2 pos: primary,bottom-r res: 1280x720 hz: 60 dpi: 95
    size: 344x195mm (13.54x7.68") diag: 395mm (15.57") modes: N/A
  Monitor-2: HDMI-1 pos: top-left res: 1024x768 hz: 60 size: N/A modes: N/A
  Monitor-3: eDP-1 pos: top-center res: 1366x768 hz: 60 dpi: 112
    size: 309x173mm (12.17x6.81") diag: 354mm (13.94") modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast surfaceless: drv: iris x11: drv: iris
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 23.3.3-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
    device-ID: 8086:9b41 memory: 15.1 GiB unified: yes
  API: Vulkan v: 1.3.274 layers: 4 device: 0 type: integrated-gpu name: Intel
    UHD Graphics (CML GT2) driver: mesa intel v: 23.3.3-manjaro1.1
    device-ID: 8086:9b41 surfaces: xcb,xlib
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:02c8 class-ID: 0403
  API: ALSA v: k6.7.0-0-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.0 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:0d4f class-ID: 0200
  IF: eno2 state: down mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:5 chip-ID: 8087:0026
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 350.27 GiB used: 260.47 GiB (74.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
    SDBPNPZ-256G-1002 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 21106000 temp: 39.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: V-Gen model: 10SM19AR120SDK 120GB
    size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B0 scheme: GPT
Partition:
  ID-1: / raw-size: 238.17 GiB size: 233.38 GiB (97.99%)
    used: 169.05 GiB (72.4%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 54.0 C pch: 44.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 280 Uptime: 2h 20m wakeups: 0 Memory: total: 16 GiB
  available: 15.46 GiB used: 11.68 GiB (75.5%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 2293 pm: pacman pkgs: 2249 libs: 513 tools: pamac,yay pm: flatpak
  pkgs: 44 Shell: Bash v: 5.2.21 running-in: konsole inxi: 3.3.31

That is different.

DP-2 is on bottom right, but on the screenshot it is top left.
HDMI-1 is on top left, but on the screenshot it is top right.

Does it even save the configuration?

Also only connections are active. HDMI is inactive.
However, I’m concerned that HDMI and USB-C share a cable connection. Internally there are not two connections, but one. If it was a second DisplayPort that would work, but USB-C? I doubt that. The USB-C and HDMI port are next to each other, which gives the impression that they are connected to each other.

That is different.
DP-2 is on bottom right, but on the screenshot it is top left.
HDMI-1 is on top left, but on the screenshot it is top right.
Does it even save the configuration?

No, it is not save the configuration.

However, I’m concerned that HDMI and USB-C share a cable connection. Internally there are not two connections, but one. If it was a second DisplayPort that would work, but USB-C? I doubt that. The USB-C and HDMI port are next to each other, which gives the impression that they are connected to each other.

I think this is the cause, the USB-C and HDMI are share a cable connection which is not two connection.
Regarding this condition, my laptop also has a VGA port, which rarely used. Haven’t tried yet with this port.

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