Monitor to usb-c hub not detected until reconnected

Hello,

recently I’ve started to use 2nd external monitor. The connection is HDMI → USB-C hub → notebook. When connecting the hub to the notebook LAN and other USBs work just fine but the HDMI monitor is never recognized until I unplug it from the hub and plug it in again. I’ve tried with several other hubs and the behavior is the same hence I’d rule out the possibility it’s caused by the hub.

When the monitor is connected to the ntb directly (to hdmi port) it works just fine.
It’s getting pretty annoying to reconnect the monitor every time. Any ideas what might be the issue?

❯ inxi -Gazy
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: DP-1 off: eDP-1 empty: DP-2,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Dell
    driver: nvidia v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-07) arch: Turing code: TUxxx
    process: TSMC 12nm built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1f11 class-ID: 0300
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-5:3 chip-ID: 0bda:5521 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell v: 42.4 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,nv,vesa gpu: i915 display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 96 s-size: 1016x318mm (40.00x12.52")
    s-diag: 1065mm (41.91")
  Monitor-1: DP-1 pos: primary,left res: 1920x1200 hz: 60 dpi: 94
    size: 518x324mm (20.39x12.76") diag: 611mm (24.05") modes: N/A
  Monitor-2: HDMI-1-0 pos: primary,right res: 1920x1200 hz: 60 dpi: 94
    size: 518x324mm (20.39x12.76") diag: 611mm (24.05") modes: N/A
  Monitor-3: eDP-1 size-res: N/A modes: N/A
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.1.6
    direct render: Yes

Hello,

Do you have settings in the BIOS to change from
DDI to mDP
to
DDI to TBT ?
So, you have a Dell, but no idea of the model, so i can only presume is something similar to this External monitor connected via USB-C cable / Kernel & Hardware / Arch Linux Forums

@bogdancovaciu
I don’t see any DDI settings in my BIOS.
Also, the current monitor is connected via DVI->HDMI but I’ve also tried hdmi->hdmi with different monitor and the behavior is the same.

Here’s my laptop’s info

❯ inxi -b
System:
  Host: Haven Kernel: 5.15.60-1-MANJARO arch: x86_64 bits: 64 Desktop: GNOME
    v: 42.4 Distro: Manjaro Linux
Machine:
  Type: Laptop System: Dell product: G5 5590 v: N/A
    serial: <superuser required>
  Mobo: Dell model: 0CNDTP v: A04 serial: <superuser required> UEFI: Dell
    v: 1.19.0 date: 03/15/2022
Battery:
  ID-1: BAT0 charge: 64.1 Wh (100.0%) condition: 64.1/90.0 Wh (71.2%)
CPU:
  Info: 6-core Intel Core i7-9750H [MT MCP] speed (MHz): avg: 1326
    min/max: 800/4500
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] driver: nvidia
    v: 515.65.01
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau gpu: i915 resolution:
    1: 1920x1200~60Hz 2: 1920x1200~60Hz 3: N/A
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa
    22.1.6
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi
  Device-2: Realtek driver: r8168
Drives:
  Local Storage: total: 476.94 GiB used: 253.99 GiB (53.3%)
Info:
  Processes: 404 Uptime: 1m Memory: 15.44 GiB used: 5.05 GiB (32.7%)
  Shell: Zsh inxi: 3.3.20