Reported to Nvidia as well
here. Tried with both dual GPU and Nvidia-only.
What I am up to
Connect a second HDMI display via a type C hub
Problem with Xorg (logs in attachments 1 and 2)
1. Works fine before a suspend. After a suspend I am getting exactly 10 seconds freezes with brief intervals on both screens if the external screen is connected via usb-c.
2. Reboot solves it (but I do want to be able to suspend my laptop)
3. Disconnecting the second display or connecting HDMI to HDMI (not via hub) does not produce those freezes.
4. Doesn't matter if the display was connected before/during suspend or not.
Problem with Wayland (logs in attachment 3)
1. Suspends go smooth, but the second screen is always tearing and its FPS is low.
2. Connecting HDMI to HDMI (not via hub) works fine with Wayland as well.
Hardware:
OS: Ubuntu 22.04 LTS x86_64
Host: ROG Strix G513QC_G513QC 1.0
Kernel: 5.15.0-37-generic
DE: GNOME 42.1
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 4.463GHz
GPU: NVIDIA GeForce RTX 3050 Mobile
GPU: AMD ATI 05:00.0 Cezanne
Memory: 16GB
Nvidia driver: v515