I have made fresh install of Ubuntu 17.10 (fresh, except keeping my old /home
partition). Everything seams to work out of the box except after I installed (or actually enable in Additional drivers
) the nVidia 384.90 driver system failed to start. I was just getting following error
[ OK ] Started NVIDIA Persistence Daemon.
Stopping NVIDIA Persistence Daemon...
[ OK ] Stopped NVIDIA Persistence Daemon.
Starting NVIDIA Persistence Daemon...
And this goes all over again and again like hundred times and the just stops. The only way out is uninstalling nvidia-384 using recovery mode.
I have tried other versions of the driver as well but with very same result. On shared Intel graphics (Intel® Haswell Mobile) everything works fine.
My config:
Intel i7-4710MQ
nVidia GT 940M
Switch to Discrete Graphics on BIOS
Lenovo P51, UEFI BIOS Version N1UE40W, NVIDIA Quadro M1200 Mobile, Ubuntu 17.10, nvidia-384 installed from
software-properties-gtk
:I think this makes the battery last less, but I'd rather have a desktop :-)
I also noticed that the problem is not reproducible every time. If I power cycle a few times, I also see the following behaviours:
Then check that the GPU is actually being used: How do I check if Ubuntu is using my NVIDIA graphics card?
Possible launchpad bug for this: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1714881
will work fine. Once the system gets started install the compatible driver.
I do not know the cause for this behaviour but I have the same problem on my ASUS laptop with GM108M [GeForce 840M]. My improvised solution is to disable automatic login. If I do login manually I have the normal startup. I use the proprietary driver.
Consider changing your display manager to lightdm. gdm3 doesn't work very well with nvidia drivers in my experience. I can not get it work at all if I'm using the modeset driver (and I've been trying for months). There are no workarounds that I have found. Nvidia, gdm3 and modern gnome are broken on both of my Optimus Thinkpads, you have to change one of those three, and the easiest is to replace gdm3 (if you change from gnome to another desktop environment, you will probably end up with lightdm anyway).
You are not trying to use modeset so you don't experience the same problem, but I have become biased against the unholy trinity of nvidia graphics, gnome and gdm3.
I have no problems with lightdm
if necessary
and set it to the default (the installation of lightdm will ask you, but not if you already had it installed).
If you can't log in, you may feel a bit stuck. Hopefully you still have that old kernel. Otherwise you will have to try the advanced option and boot into recovery mode. I find that I choose 'enable networking' I usually get to a root shell in read/write which lets me do apt get stuff. If that doesn't work, it gets a bit harder; you can either reinstall or boot from a livecd and learn how to use chroot to do a pretend-login to your main installation. (something very useful to know).
This answer actually did the job for me. None of the above solutions were applicable for me.
It all comes down to disabling the default startup of the nvidia persistence daemon and writing an own systemd service which starts on boot.