After recent update in Ubuntu 18.04 repositories of Nvidia drivers to 390.77 my external monitor stopped working. Previous minor version was ok. xranrd sees nothing too. Any suggestions?
Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post will reveal a paperclip icon.
In your first log, nouveau was loaded, in the second log now no driver is loaded for the nvidia gpu at all. Do you happen to have bumblebee installed?
Please run
sudo update-initramfs -u
reboot, check external output and post the output of
grep nvidia /etc/modprobe.d/*
I’ve taken a look at the Ubuntu packages and I suspect that nvidia-prime got updated and is buggy. It also uses a new location for the blacklist files. Please check if the file
/lib/modprobe.d/blacklist-nvidia.conf
exists and delete it. Afterwards, run
sudo update-initramfs -u
and reboot.
I was looking at this topic yesterday. But my output was okay. Looks like after several reinstalls of drivers it broke even more.
$ sudo modprobe nvidia
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
Then I deleted the file, updated initramfs and rebooted – still doesn’t work. Output is the same
In case the file got renamed on upgrade, please doublecheck by running
grep nvidia /lib/modprobe.d/*
for the line
alias nvidia off
and delete the file that contains it.
$ grep nvidia /lib/modprobe.d/*
/lib/modprobe.d/nvidia-kms.conf:# This file was generated by nvidia-prime
/lib/modprobe.d/nvidia-kms.conf:options nvidia-drm modeset=1
Ok, the driver loads fine now, unfortunately, there’s no current xorg log contained in the nvidia log. Please run
sudo journalctl -b 0 --no-pager _COMM=gdm-x-session >xorg.log
and attach that.
The file /lib/modprobe.d/nvidia-kms.conf is correct, it’s for anti-tearing.
Ok, at least Prime is working now but the external outputs are not detected. I suspect this is due to gdm running in a wayland session. To check, please modify the file
/lib/modprobe.d/nvidia-kms.conf
and set
options nvidia-drm modeset=0
then run
sudo update-initramfs -u and reboot
nvidia-drm modeset=1 is needed for tear-free display but since this is enabling linux kms for the nvidia driver, gdm thinks it can use wayland. Having a parallel wayland session makes it somehow impossible for X to detect any outputs on the nvidia gpu. Can drive people insane.
See if it helps to disable wayland for gdm:
[url]xorg - How to disable wayland in 17.10 in gdm3 login screen - Ask Ubuntu
and then set nvidia-drm modeset=1 again to have a tear-free display.