I almost finished ironing out all the issues with the NVidia driver, but one remains. The screen on the laptop flickers all 10-20 seconds. On the external monitor everything works fine. I can see that this has been reported a few times in the past already. In the end, it gets solved by a driver update to then reappear again a few months later.
I have driver version 470.63.
Please let me know if you need any logs!
My xorg.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
Option "metamodes" "DP-0.1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNC=Off}, DP-0.2: nvidia-auto-select +2560+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNC=Off}"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
PRIME sync is enabled.