Ubuntu 23.04 System crashes when Display Port is connected

Hi all,

I have a RTX2060 connected through an eGPU via TB3 to my C940 Laptop. When I attach an external Monitor through Display Port the System instantly crashes (no response anymore) and I get a white screen with the following error: “Oh no! Something has gone wrong. A problem has occurred and the system can’t recover. Please contact a system administrator”. I can only force-shutdown the system via the power-button.
When the Monitor is connected during boot, everything works fine until the login-screen would display. At that point it crashes and displays the same error message

When I attach the Monitor through HDMI, everything works fine. It also works fine with Windows and it did work with Ubuntu 22.10. So I can rule out HW problems.

OS: Ubuntu 23.04, Kernel 6.2, Xorg, Standard Ubuntu-Gnome desktop
Nvidia Driver: 525.105.17 (remark: Issue also present with version 470 and 515)
GPU: RTX2060
eGPU: Lenovo Booststation.
Laptop: Lenovo C940
Monitor: Acer Predator XB273K GP

As the system crashes, I cannot run the nvidia-bugreport.
Would be great, if anyone can help here! Let me know, if I there is other data needed.

Thanks!

/etc/X11/xorg.conf:

Section “Module”
Load “modesetting”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
Option “AllowEmptyInitialConfiguration”
Option “AllowExternalGpus” “True”
EndSection

prime profile set to performance mode

Anyone from Nvidia could have a look at this? I upgraded to Driver Version 530, but Problem still persists. Thanks!

I meanwhile figured out a (bit painful) workaround, that avoids the crash:

  1. unplug the DP cable from the GPU
  2. Boot and login
  3. Plugin the DP cable