Hello,
I’m using Ubuntu 20.04 LTS on my Thinkbook14+ with GeForce RTX 2050. Everything worked fine until the system performed an unattended-upgrade that upgraded the kernel from 5.14.0-1042-oem to 5.14.0-1044-oem:
After the upgrade, the system gives black screens when I reboot with Nvidia selected as prime (But that doesn’t happen when I switch the prime to Intel or on-demand).
I had been using the Nvidia driver 515.48.07 from Nvidia.com before I encountered the problem. I’ve tried:
Reinstall the driver
Upgrade the driver to 515.57
Using nvidia-driver-515 from PPA instead
Delete /etc/X11/xorg.conf
Roll back the kernel to 5.14.0-1042-oem
But none of them works.
Log file from recovery mode is attached. I would be really grateful if anyone can help.
(I’m not a native English speaker, so if there is anything unclear in my description, please don’t hesitate to ask.)
Thanks for your reply! I tried embeding the nvidia driver into initrd and blacklisting the intel_ish_ipc. The system boots much faster, but unfortunately, it still gives black screen.
New report: nvidia-bug-report-2.log (962.2 KB)
Looks like you installed the nvidia driver from runfile. Rather uninstall it, install the driver fro m ubuntu repo and make sure the package nvidia-prime is installed.
Again, thanks for your reply.
The driver I am using now is installed from ubuntu PPA repo. (I used to use the driver from runfile before the issue, but I had already replaced it with the one from PPA after that.)
I just have spent about a week tracking the same or similar problem down on 18.04.
The solution was so simple it almost made me cry over all the wasted time.
sudo vi /lib/modprobe.d/nvidia-kms.conf
This file was generated by nvidia-prime
Set value to 1 to enable modesetting
#options nvidia-drm modeset=0 was 1 I changed it to 0
options nvidia-drm modeset=0
If you allow nvidia_drm to change the mode on your display and it does not really know what type of display it is, it will use some generic values, resulting in a black screen. In my case, I did not want the nvidia driver to do anything to any display, as I was using it only for “compute.”
The actual display is being handled by “intel”.
Maybe it is no longer useful to you but after scouring the net for days and finding little of value, just crazy random solutions that made things worse, it may help save some pain for others.