32

I am running Ubuntu 18.04 on a CLEVO notebook and have the nvida-390 drivers and Cuda installed. It worked fine for a month, but - suddenly today it stopped working. I can still access the login screen, but the screen remains purple.

I've already tried to purge and reinstall the nvidia-390 drivers (I've also tried the 396 drivers version) without success. After the login the computer always stops working. I cannot even access tty. After purging the drivers I can login and all works fine with nouveau, but I really need Cuda for my work.

My specs:

  • i7-6700HQ
  • 8GB RAM
  • Nvidia GeForce GTX 970M
  • Intel Wireless 8260

Can someone please help me? Thanks.

Daniele Gamba
  • 901
  • 1
  • 8
  • 14

2 Answers2

42

You might need to have Direct Rendering Manager Kernel Mode Setting enabled on system boot.
NVIDIA driver's PRIME Synchronization support relies on DRM-KMS, which is disabled by default.
Find more comprehensive information in the discussion on the NVIDIA GPU Unix Graphics forum.

Execute sudo nano /etc/default/grub and add the parameter nvidia-drm.modeset=1 to the line GRUB_CMDLINE_LINUX_DEFAULT. Save the change you've made and run sudo update-grub.
Restart the Ubuntu operating system, and now everything should work properly, right as expected.

cl-netbox
  • 31,163
  • 7
  • 94
  • 131
  • 6
    Congrats on bounty you deserve it :) – WinEunuuchs2Unix Jun 24 '18 at 17:27
  • Once I do this, the monitor running on NVidia will block on "Starting Gnome DISPLAY Manager" however the other monitor is fine. Remove the modeset from GRUB then all is fine, except screen tearing on NVidia. Any ideas how to diagnose or fix ? – abdelrahman-sinno Nov 14 '18 at 14:24
  • @abdelrahman-sinno Without knowing any further details providing you with a correctly working solution is not possible. I suggest that you ask a new question including as much information as possible about your specific hardware and system setup and about what you have already tried so far to solve the problem. :) – cl-netbox Nov 14 '18 at 15:25
  • @cl-netbox I have posted my question here (https://askubuntu.com/questions/1093409/nvidia-gt-710-screen-tearing-on-18-04-horizontal-lines-in-videos), please let me know if you need any further info – abdelrahman-sinno Nov 16 '18 at 09:15
  • 3
    didn't work for me – fccoelho Dec 10 '18 at 14:35
  • 1
    This solution works perfectly for my problem of Ubuntu 18.04 booting to blank screen with Nvidia GPU and drivers installed. My machine is Alienware 15. – Yu Shen Feb 18 '19 at 18:01
  • 1
    Didn't work for me. Ubuntu 18.04 - GM108M [GeForce 940MX] – Danilo Cândido Mar 03 '19 at 00:33
  • 1
    This is the only thing that made horizontal tearing disappear on Plasma 5 on nVidia. – Luca Carlon Apr 30 '19 at 23:33
  • 1
    Worked great for me! (Ubuntu version 20.04 LTS/GTX 1070). Thanks a lot! – AffableAmbler Apr 23 '20 at 14:45
  • this worked for me, what you need to do is "enroll MOK" in the bootscreen and enroll the key and enter the password you set for UEFI Secure Boot (or whatever it's called). After doing this step I was able to see both displays are claimed. –  May 04 '20 at 00:48
  • Another alternative that did not work for me. Now I cannot even purge nvdia and go back to default – B Furtado May 04 '20 at 17:16
  • 1
    works for me. had the same issue with 20.04. (found many threads suggesting to reinstalling drivers, but that didn't work at all). – fetzig May 18 '20 at 10:59
  • This was perfect. I am using Xubuntu 18.04 with a GTX 1050 Mobile. This made the annoying screen tearing disappear in XFCE. I even stopped using Compton and went back to using the default compositor of XFCE. – Roberto S. May 29 '20 at 01:44
3

I was able to get it working with the latest Nvidia-418 drivers on a Lenovo W530 with the Nvidia GK107GLM Quadro K2000M:

  1. Edit the sudo nano /etc/default/grub and remove "quiet splash" from GRUB_CMDLINE_LINUX_DEFAULT and then sudo update-grub (that may be similar then adding nvidia-drm.modeset=1)
  2. Switch to LightDM: sudo dpkg-reconfigure lightdm (necessary so my second monitor was recognized)
  3. Install PPA with latest drivers: sudo add-apt-repository ppa:graphics-drivers/ppa and sudo apt-get update
  4. Install latest recommended driver (in my case Nvidia 418): sudo ubuntu-drivers autoinstall
Sina
  • 1,053