Problem with nvidia-drm.modeset=1 and external monitors when booting

I have the current setup:

  • Laptop Lenovo Legion 5 with Nvidia RTX 2060
  • 1 external monitor hooked to hdmi
  • 2 external monitors hooked to usb-c (via a usbc hub that has 2 hdmi slots)
  • Arch Linux and latest nvidia drivers (nvidia-dkms 510.54-1)

Now here’s what happens, when I set nvidia-drm.modeset=1 in GRUB, right after “quiet” (where I also have iommu set):

  • If the 2 external monitors (usb-c) are not connected during boot , the system boots normally (and I can connect them afterwards and they’ll work just fine)
  • If the 2 monitors are connected during boot , the DM would just freeze (tried lightdm and sddm), and I cannot even hit ctrl+alt+fX

I tried disabling /etc/X11/xorg.conf and all files under /etc/X11/xorg.conf.d, without success.

here’s my journalctl -p 3 -b output

journalctl -p 3 -b
Mär 27 14:27:57 archlegion kernel:
Mär 27 14:27:57 archlegion kernel: ACPI BIOS Error (bug): Could not resolve symbol [_SB.PCI0.GP17.VGA.LCD._BCM.AFN7], AE_NOT_FOU>
Mär 27 14:27:57 archlegion kernel: ACPI Error: Aborting method _SB.PCI0.GP17.VGA.LCD._BCM due to previous error (AE_NOT_FOUND) (>
Mär 27 14:27:59 archlegion kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
Mär 27 14:27:59 archlegion kernel: ucsi_ccg 1-0008: i2c_transfer failed -110
Mär 27 14:27:59 archlegion kernel: ucsi_ccg 1-0008: ucsi_ccg_init failed - -110
Mär 27 14:27:59 archlegion kernel: usb 5-1.2.3: 1:1: cannot get freq at ep 0x81
Mär 27 14:27:59 archlegion kernel: usb 5-1.2.3: 1:2: cannot get freq at ep 0x81
Mär 27 14:27:59 archlegion kernel: usb 5-1.2.3: 2:1: cannot get freq at ep 0x2

Any hints?

@adis.durakovic
I will try to prepare similar setup locally and attempt to reproduce issue.

By the way, can you please confirm which dock station model are you using.
Also please share once bug report from repro state.

This is the dock I’m using. https://www.amazon.de/-/en/gp/product/B08X14KRMB/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

Unfortunatelly, I cannot post any bug reports from repro state, since my mouse and keyboard don’t work when the problem occurs.

With 515, this is the latest journalctl output I get when the error occurs: Mai 17 18:47:12 archlegion kernel: Linux version 5.17.7-arch1-1 (linux@archlinux - Pastebin.com