My OS is Ubuntu 22.04.2, kernel version is 6.1.0-1009-oem (I tried the default 5.19.0-40-generic and result is the same). I turned off Secure Boot in UEFI. If I select Nvidia driver using the sudo prime-select nvidia command, then I can only enter the terminal in recovery mode using Ctrl + Alt + F2, otherwise the system boots only to the black screen with the Ubuntu logo and the boot circle does not spin. dkms status and nvidia-smi commands show no problems
I have already tried the following methods:
disabling security boot
reinstalling driver 530 and reboot
installing the driver by different methods (Software & updates, .run file, terminal command)
installing previous version of the driver
installing new version of kernel
commands sudo update-initramfs -u and sudo apt install linux-headers-$(uname -r)
removing blacklist nvidiafb line from /etc/modprobe.d/blacklist-framebuffer.conf
I installed the 530 driver (not open one) and rebooted the system and I still can’t boot. Secure Boot is disabled. I believe the problem is in the graphics mode that I can choose in the BIOS. I have Lenovo Legion 5i Pro laptop and I can choose between Dynamic Graphics and Discrete Graphics, and in the Discrete Graphics mode I can boot the system. Dynamic Graphics allows to switch between GPUs without rebooting, and since I use two systems, I’d like to keep this feature on Windows. is it possible to fix this for Ubuntu? I have attached the log of nvidia-bug-report.sh nvidia-bug-report.log (7.6 MB)
The dmesg looks fine, no errors, drivers functional. Since no X session gets started, maybe a defunct wayland session is running.
Please try disabling wayland in gdm config or check journalctl over ssh what gnome-shell is doing.