Xrandr shows HDMI ports as disconnected with NVIDIA propietary driver but all monitors work

Hello Garuda users,

I installed the Garuda Gnome version on my laptop recently with the NVIDIA propietary drivers. I have two HDMI monitors connected via a USB-C hub and everything works fine. The problem arises when I try to use xrandr to rearrange the layout of my screens or their resolution, but nevertheless works perfectly if I do it through the Gnome preferences.

The reason I am trying to do this with xrandr is because I want to configure the Awesome tiling window manager and could't find another way to do so.

Here is the output of xrandr -q:

Screen 0: minimum 320 x 200, current 5440 x 1080, maximum 16384 x 16384
eDP-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 355mm x 200mm
   2560x1440    165.00 +  60.00 +  59.99    59.99    59.96    59.95
   1920x1440     85.00    75.00    60.00
   1856x1392     75.00    60.01
   1792x1344     75.00    60.01
   2048x1152     59.99    59.98    59.90    59.91
   1920x1200     59.88    59.95
   1920x1080     60.01    59.97    59.96    59.93
   1600x1200     85.00    75.00    70.00    65.00    60.00
   1680x1050     59.95    59.88
   1400x1050     74.76    59.98
   1600x900      59.99*   59.94    59.95    59.82
   1280x1024     85.02    75.02    60.02
   1400x900      59.96    59.88
   1280x960      85.00    60.00
   1440x810      60.00    59.97
   1368x768      59.88    59.85
   1280x800      59.99    59.97    59.81    59.91
   1152x864      75.00
   1280x720      60.00    59.99    59.86    59.74
   1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00
   1024x768i     86.96
   960x720       85.00    75.00    60.00
   928x696       75.00    60.05
   896x672       75.05    60.01
   1024x576      59.95    59.96    59.90    59.82
   960x600       59.93    60.00
   832x624       74.55
   960x540       59.96    59.99    59.63    59.82
   800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25
   840x525       60.01    59.88
   864x486       59.92    59.57
   700x525       74.76    59.98
   800x450       59.95    59.82
   640x512       85.02    75.02    60.02
   700x450       59.96    59.88
   640x480       85.09    60.00    85.01    72.81    75.00    59.94
   720x405       59.51    58.99
   720x400       85.04
   684x384       59.88    59.85
   640x400       59.88    59.98    85.08
   576x432       75.00
   640x360       59.86    59.83    59.84    59.32
   640x350       85.08
   512x384       85.00    75.03    70.07    60.00
   512x384i      87.06
   512x288       60.00    59.92
   416x312       74.66
   480x270       59.63    59.82
   400x300       85.27    72.19    75.12    60.32    56.34
   432x243       59.92    59.57
   320x240       85.18    72.81    75.00    60.05
   360x202       59.51    59.13
   360x200       85.04
   320x200       85.27
   320x180       59.84    59.32
   320x175       85.27
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected primary (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
  1920x1080 (0xe1) 148.500MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0xe2) 148.500MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
  1920x1080 (0xe3) 148.352MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1600x900 (0xe4) 108.000MHz +HSync +VSync
        h: width  1600 start 1624 end 1704 total 1800 skew    0 clock  60.00KHz
        v: height  900 start  901 end  904 total 1000           clock  60.00Hz
  1280x720 (0xe5) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0xe6) 74.250MHz +HSync +VSync
        h: width  1280 start 1720 end 1760 total 1980 skew    0 clock  37.50KHz
        v: height  720 start  725 end  730 total  750           clock  50.00Hz
  1280x720 (0xe7) 74.176MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  720x576 (0xe8) 27.000MHz -HSync -VSync
        h: width   720 start  732 end  796 total  864 skew    0 clock  31.25KHz
        v: height  576 start  581 end  586 total  625           clock  50.00Hz
  720x480 (0xe9) 27.027MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.50KHz
        v: height  480 start  489 end  495 total  525           clock  60.00Hz
  720x480 (0xea) 27.000MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.47KHz
        v: height  480 start  489 end  495 total  525           clock  59.94Hz
  640x480 (0xeb) 25.200MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.50KHz
        v: height  480 start  490 end  492 total  525           clock  60.00Hz
  720x400 (0xec) 28.320MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock  31.47KHz
        v: height  400 start  412 end  414 total  449           clock  70.08Hz

And this is the output of garuda-inxi:

System:
  Kernel: 6.1.6-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=1af044b3-b14e-429e-a42c-5a534ca82995
    rw [email protected] quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0 Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 16-b1xxx v: N/A serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8A14 v: 32.19 serial: <superuser required> UEFI: AMI v: F.05 date: 03/10/2022
Battery:
  ID-1: BAT0 charge: 75.2 Wh (100.0%) condition: 75.2/83.0 Wh (90.5%) volts: 13.1 min: 11.6
    model: HP Primary type: Li-ion serial: <filter> status: full cycles: 59
CPU:
  Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP arch: Alder Lake gen: core 12
    level: v3 note: check built: 2021+ process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154)
    stepping: 3 microcode: 0x424
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled cache: L1: 1.2 MiB
    desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
    desc: 1x24 MiB
  Speed (MHz): avg: 2171 high: 2700 min/max: 400/4600:4700:3500 scaling: driver: intel_pstate
    governor: powersave cores: 1: 2700 2: 2700 3: 455 4: 2700 5: 2700 6: 2700 7: 700 8: 2700 9: 2700
    10: 2700 11: 2700 12: 2700 13: 2700 14: 413 15: 671 16: 2700 17: 2700 18: 2700 19: 2700 20: 693
    bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: DP-3,DP-4,eDP-1
    empty: DP-1,DP-2 bus-ID: 00:02.0 chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104M [Geforce RTX 3070 Ti Laptop GPU] vendor: Hewlett-Packard driver: nvidia
    v: 525.78.01 alternate: nouveau,nvidia_drm non-free: 525.xx+ status: current (as of 2022-12)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 8 link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:24e0 class-ID: 0300
  Device-3: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo bus-ID: 3-6:3
    chip-ID: 04f2:b760 class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7 compositor: gnome-shell driver:
    X: loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,intel,nv,vesa dri: iris
    gpu: i915 display-ID: :1 screens: 1
  Screen-1: 0 s-res: 5440x1080 s-dpi: 96 s-size: 1439x286mm (56.65x11.26")
    s-diag: 1467mm (57.76")
  Monitor-1: eDP-1 res: 1600x900 hz: 60 dpi: 114 size: 355x200mm (13.98x7.87")
    diag: 407mm (16.04") modes: N/A
  API: OpenGL v: 4.6 Mesa 22.3.3 renderer: Mesa Intel Graphics (ADL GT2) direct render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  Device-2: NVIDIA GA104 High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8 link-max: lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:228b class-ID: 0403
  Sound API: ALSA v: k6.1.6-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter vendor: AzureWave
    driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 2e:00.0 chip-ID: 14c3:7961
    class-ID: 0280
  IF: wlp46s0 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 2f:00.0
    chip-ID: 10ec:8168 class
-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-3: ASIX AX88179 Gigabit Ethernet type: USB driver: cdc_ncm bus-ID: 2-1.1:3
    chip-ID: 0b95:1790 class-ID: 0a00 serial: <filter>
  IF: enp0s13f0u1u1c2 state: up speed: 1000 Mbps duplex: half mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 3-7:4
    chip-ID: 13d3:3567 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 253.92 GiB (26.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Micron model: MTFDKBA1T0TFH-1BC1AABHA
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: HPS0043 temp: 18.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 199.5 GiB size: 199.5 GiB (100.00%) used: 20.05 GiB (10.1%) fs: btrfs
    dev: /dev/nvme0n1p6 maj-min: 259:6
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 608 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p8 maj-min: 259:8
  ID-3: /home raw-size: 465 GiB size: 456.63 GiB (98.20%) used: 145.11 GiB (31.8%) fs: ext4
    dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 199.5 GiB size: 199.5 GiB (100.00%) used: 20.05 GiB (10.1%) fs: btrfs
    dev: /dev/nvme0n1p6 maj-min: 259:6
  ID-5: /var/tmp raw-size: 199.5 GiB size: 199.5 GiB (100.00%) used: 20.05 GiB (10.1%) fs: btrfs
    dev: /dev/nvme0n1p6 maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.02 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 38 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p7
    maj-min: 259:7
Sensors:
  System Temperatures: cpu: N/A mobo: N/A
  Fan Speeds (RPM): cpu: 2081 fan-2: 0
Info:
  Processes: 389 Uptime: 56m wakeups: 3 Memory: 31.02 GiB used: 6.2 GiB (20.0%) Init: systemd
  v: 252 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 11 Packages: pm: pacman
  pkgs: 1352 libs: 406 tools: pamac,paru Client: shell wrapper v: 5.1.16-release inxi: 3.3.24
Garuda (2.6.14-1):
  System install date:     2023-01-13
  Last full system update: 2023-01-15 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

As you can see, DP-1-1 and DP-1-2 are disconnected, but they are the ports that my two external monitors are actually using. In fact, I have this issue only with the propietary driver. If I uninstall it this two ports show as connected and I can change their configuration using xrandr.

I have read Gnome takes the .config/monitors.xml file and uses xrandr to do the changes. I don't know how is doing it but autorandr also fails because of this two disconnected outputs that are actually in use.

The other thing I've noticed is that the iGPU shows the ports DP-3, DP-4 and eDP-1 as active, but nevertheless 'DP-3' and 'DP-4' are not present in the output of the xrandr command.