Display over USB-C Cannot Enable on AMD/Nvidia Laptop

Hello, I am trying to add an external monitor to an HP laptop which is run purely over USB-C. The laptop has an AMD CPU with integrated graphics plus a Nvidia dGPU. The monitor is detected in Xrandr:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080    144.00*+  60.00  
   1680x1050    144.00  
   1280x1024    144.00  
   1440x900     144.00  
   1280x800     144.00  
   1280x720     144.00  
   1024x768     144.00  
   800x600      144.00  
   640x480      144.00  
DP-1-0 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)

However, I cannot enable it or get it to turn on. When running the xrandr --auto, it produces the error “xrandr: Configure crtc 4 failed”
Here’s my xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:06:00.0
Provider 1: id: 0x1f7 cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 1 name:NVIDIA-G0

Do you have an HDMI? if so try to connect it using the HDMI.
The display port connection on USB-C is probably connected to the Nvidia dGPU directly.

I had this problem and it took me quite a while to get it working. I had to install the system with libre (open source) drivers. After the installation I then used Hardware configuration to uninstall the libre drivers and then Install video-nvidia, rebooted and then only the monitor connected to USB-C worked. Even laptop’s screen didn’t work. Then I uninstalled video-nvidia and installed video-hybrid-amd-nvidia-prime. Now all the monitors connected to my laptop (USBC, HDMI, and laptop screen) worked.

Unfortunately the laptop does not have HDMI, it does have the hybrid drivers installed already but the non-free ones.

At first, I also selected non-free drivers during installation. The system didn’t recognize my monitor connected to USB-C, even though usb hub was working. I had to install the system with libre drivers and then do all that. I have absolutely no idea of the difference between installing with non-free drivers and installing non-free drivers after installation.

Still no luck, unfortunately. The odd part is the system sees the monitor (see Xrandr above). Also if it helps, results of nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P8     2W /  N/A |      5MiB /  5944MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1029      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

and xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:06:00.0
Provider 1: id: 0x1f7 cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 1 name:NVIDIA-G0