Screen freeze after logging into Ubuntu 24.04 (Both Gnome and i3) on nvidia-drivers-550

The last version of drivers that worked for me was 390, but since I upgraded to ubuntu 24.04 I can’t install it anymore as the kernel is not supported.

I reach the Ubuntu login screen just fine. I then input my username/password and the screen goes blank with a white cursor at the top-left and freezes. I cant switch to another tty using ctrl+alt+F3 (or any other number).

I can ssh into the machine though. Removing nvidia drivers makes everything run fine (at a low resolution, which isn’t an option either).

Running nvidia-bug-report.sh seems to hang. I waited for a long time (about an hour) and killed it. This is the report it produced nvidia-bug-report.log.old.gz (694 Bytes)

I ran the nvidia-bug-report.sh with a --safe-mode flag and here’s the report
nvidia-bug-report.log.gz (184.5 KB)

I have tried many different options that I found on the net from blacklisting nouveau drivers, changing modes in grub, to changing various BIOS/UEFI settings to no avail.

The weird part is that in many many reboots I have successfully logged in and kept using the system for a while twice, but it never stuck after reboot (I never changed anything, I just logged in, saw that it works, opened say a web browser, and rebooted, which resulted in the blank/black screen after login again).

Edit:
Figured I’ll include some details about the system (although they’re in the report).

Motherboard Asus Z170 Pro Gaming
CPU Intel Core i5-6600K
Graphics GeForce® GTX 1080 GAMING X+ 8G
3 monitors: BenQ PD2700U on DisplayPort, BenQ PD2700U on DisplayPort, DELL U2718Q on HDMI

I just figured something out. If I only plug in the HDMI monitor, boot and reach the login screen, then connect the two other monitors on DP, the login doesn’t crash and I’m able to use my system. Now, if only I figured out how to boot the machine without disconnecting and reconnecting the monitors…