Linux Mint 19.3: lightdm does not appear after installing proprietary drivers

I am using Linux Mint 19.3 Tricia and tried to switch from the nouveau driver to nvidia-435 driver, which caused lightdm to stop appearing on reboot, it only shows a black screen (with an underscore cursor in the top left corner). I am still able to switch to a tty console using e.g. CTRL-ALT-F1.

I have tried the following, to no avail:

The driver seems to be loaded correctly, although the Xorg.0.log file (included in the log attached here) has a couple of warnings:

[    48.698] (WW) NVIDIA(0): Unable to get display device for DPI computation.
...
[    48.749] (WW) NVIDIA(0): Option "PrimaryGPU" is not used

but I can’t tell whether they have any serious consequences.

Any suggestions are appreciated.

nvidia-bug-report.loggz (1.2 MB)

In the end, I found a solution.
For clarity: I’m on a laptop with a GTX 960M graphics card and Intel integrated graphics, and with that setup, I would want to use the Nvidia Optimus technology.

Using the xorg.conf file provided by Gentoo for Optimus setups, and setting it as /etc/X11/xorg.conf turned out to do the trick.
For this to work, Nvidia requires a couple of commands to be executed, see Gentoo’s page on the matter.