Lenovo P15 Gen1 with RTX A4000 + Ubuntu 20.04 + Discrete Graphics > BLANK SCREEN

I could get it to work with the NVIDIA 470 graphics driver by connecting a HDMI monitor and setting the BOOT DISPLAY DEVICE in the BIOS to HDMI . So I guess it is not the NVIDIA graphics driver. But it still does not work using just the laptop by itself.

Killing the desktop, removing the HDMI monitor and then starting the desktop again - works with just the laptop.

$: sudo init 3
$: sudo systemctl start graphical.target

Not loading the NVIDIA graphics driver until X is loaded didn’t help.

$: sudo cp /etc/default/grub /etc/default/grub.old
$: sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash” to “nomodeset”
$: sudo update-grub

Blacklisting the Nouveau graphics driver didn’t help.

$: sudo apt-get update
$: sudo apt-get upgrade
$: sudo apt-get install dkms build-essential linux-headers-$(uname -r)
$: sudo nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
$: sudo nano /etc/modprobe.d/nouveau-kms.conf
options nouveau modeset=0
$: sudo update-initramfs -u

Looks like there should be a configuration that allows to start the desktop properly.