Situation
I have installed the nvidia driver in a computer run by Ubuntu 18.04 LTS with the GDM3 display.
I followed the recommendation of the command ubuntu-driver devices
, and the driver in point nvidia-graphics-driver-435
is available from the repository.
The installation sudo apt install nvidia-driver-435
goes well.
If I type sudo lshw -c video
the line about configuration shows that nvidia is the driver on duty.
Forewarned is forearmed
I had at reach the exhaustive contribution of @LuisAlvarado at https://askubuntu.com/a/61433/446253. In case the installation fails, he suggests the following two-stage troubleshooting strategy (boldface is mine).
If your desktop does not load after installing the corresponding driver, then do the following:
sudo nano /etc/gdm3/custom.conf
then remove the comment (# symbol) from the line that says
# WaylandEnable=false
and save. Then reboot. If this still does not work, then please disable Secure Boot since you might actually be using UEFI.
Troubleshooting step 1
If I reboot, I can log in but the desktop does not load up. I then comment in WaylandEnable=false (so the flag is active) as suggested and reboot. However, the bootstrap hangs with a purple screen; if I type F12 to leave the graphics environment, the console informs me "A start job is running for hold until boot process finished" and this proceeds 'endlessly'.
Troubleshooting step 2
Then I reboot and enter the boot loader. Contrary to expectations, SecureBoot is already disabled. It is enabling it that makes loading boot and desktop pass.
Undoing troubleshooting step 1
Once in my desktop environment, however, the system warns me of problems occurring. The logs in /var/crash
regard gnome shell and XWayland. Hence, I comment out WaylandEnable=false again, undoing the first troubleshoot step.
I reboot and all proceeds seamlessly.
The only strange thing is that, unlike earlier, sudo lshw -c video
lacks the driver entry in the configuration line; silence; so no guarantee that nvidia is the driver on duty.
I take reassurance that it is so from the tab Additional Drivers in the Software & Updates, and from
grep -iq nouveau /var/log/Xorg.0.log
which fails
grep -iq nvidia /var/log/Xorg.0.log
which passes.
Question
In my case there was no need to tweak the custom configuration of GDM3. Apparently, enabling Secure Boot took the pain away. I feel there is much folklore about disabling Secure Boot as the great healer for many installation troubles. However, I lack directions to orientate myself in how it should be and how it is. Would anyone please clarify how this works?