Revert NVIDIA driver on low-graphics mode

I wanted to update the graphics driver on a Ubuntu laptop so I went to the Additional Drivers menu and selected the newest driver to install (the GPU is an NVIDIA GTX 1050 TI). Now, when I start the laptop, it tells me that the laptop is running on low-graphics mode and I can’t get to the desktop. How do I reinstall the old driver to get back to where I was before?

18.04 – Screen tearing with NVIDIA GTX 970

I seem to be having problems with screen tearing in Ubuntu 18.04, which got confirmed by running this test:

I searched around in Google for a while, but all I found were recommendations to change the file /etc/modprobe.d/nvidia-drm-nomodeset.conf and add

options nvidia-drm modeset=1 

But that did nothing.

These are the drivers that I am using:

enter image description here

What could I do to fix this?

NVIDIA: GPU exception occured durint X server init

My GPU is the GTX870M. I did a fresh install of Ubuntu 18.04. All I did was:

sudo apt-get update sudo apt-get upgrade sudo ubuntu-drivers autoinstall nvidia-xconfig reboot 

It installed the nvidia-390 driver. Now whenever I try to start the X server with startx it fails. I can still use Wayland. Here is what I tried (in recovery mode):



X.Org X Server 1.20.1 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.4.0-140-generic x86_64 Ubuntu Current Operating System: Linux <censored>-PC 4.18.0-22-generic #23~18.04.1-Ubuntu SMP Thu Jun 6 08:37:25 UTC 2019 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-22-generic root=UUID=0d1d9304-4cd6-41f6-80b2-3562578a252e ro recovery nomodeset Build Date: 27 November 2018  05:27:12PM xorg-server-hwe-18.04 2:1.20.1-3ubuntu2.1~18.04.1 (For technical support please see  Current version of pixman: 0.34.0     Before reporting problems, check     to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting,     (++) from command line, (!!) notice, (II) informational,     (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jun 22 13:47:29 2019 (==) Using config file: "/etc/X11/xorg.conf" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE)  Fatal server error: (EE) NVIDIA: A GPU exception occurred during X server initialization(EE)  (EE)  Please consult the The X.Org Foundation support       at  for help.  (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE)  (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error 


In these logs, 2 things caught my eyes:

[   119.994] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480 [   119.994] (WW) NVIDIA(0): Unable to get display device for DPI computation. 


[   119.994] (--) NVIDIA(0): Memory: 3145728 kBytes [   119.994] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory 

It seems like my display device is not correctly detected and/or that X server is trying to use too much memory?

dmesg output:

Relevant parts:

[  120.275346] NVRM: GPU at PCI:0000:01:00: GPU-c588f20e-6b26-3352-5b81-666db3c970a2 [  120.275348] NVRM: Xid (PCI:0000:01:00): 44, Ch 00000000, engmask 00000101, intr 10000000 [  120.793329] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000008, engmask 00000111, intr 10000000 

I checked what the Xid meant:

31 GPU memory page fault

44 Graphics Engine fault during context switch

nvidia-smi output:

Sat Jun 22 14:23:52 2019        +-----------------------------------------------------------------------------+ | NVIDIA-SMI 390.116                Driver Version: 390.116                   | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. | |===============================+======================+======================| |   0  GeForce GTX 870M    Off  | 00000000:01:00.0 N/A |                  N/A | | N/A   83C    P0    N/A /  N/A |      0MiB /  3018MiB |     N/A      Default | +-------------------------------+----------------------+----------------------+  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0                    Not Supported                                       | +-----------------------------------------------------------------------------+ 

Any help is appreciated, thanks.

Already Disablng Wayland but Ubuntu still using it (NVIDIA error)

i know that wayland and nvidia drivers are not compatible, so i disable wayland by un-comennting it

[daemon] # Uncoment the line below to force the login screen to use Xorg  WaylandEnable=false 

on /etc/gdm3/custom.conf but when i run

echo $  XDG_SESSION_TYPE wayland 

the system still using wayland, i suspect this is the culprit why my Nvidia drivers are not running correctly

when i run nvidia-settings

i got this

ERROR: Unable to find display on any available system   (nvidia-settings:2876): GLib-GObject-CRITICAL **: 04:14:26.090: g_object_unref: assertion 'G_IS_OBJECT (object)' failed ** Message: 04:14:26.095: PRIME: No offloading required. Abort ** Message: 04:14:26.095: PRIME: is it supported? no 

it’s strange but i have no idea what happened

Here is my Xorg.1.log

I can install Nvidia driver v340 but not v430. However, my GPU supports v430. Help please?

Note: 1) I’ve alrdy ran the command “sudo add-apt-repository ppa:graphics-drivers/ppa”. 2) I’ve alrdy selected Nvidia GPU using prime-select (CLI) / prime profile (GUI). 3) I tried with v418 and end up with the same result as v430. 4) Running Ubuntu 18.04 LTS. 5) I’ve tried rebooting almost after every steps too.

I’ve been trying to install Nvidia driver version 430, however, when I run the command “nvidia-smi”, the output will always tell me that the driver NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Running nvidia-smi on v340 will not have the same output above. Instead, the proper gpu related output table will show up.

Additional Notes: My computer is running GPU Nvidia Geforce 820M which supports 430. However, in Software & Updates, only nouveau and Nvidia v340 is listed. I’ve checked in Nvidia’s website and my GPU supports v430. Screenshot: Additional Driver in Software & Updates

19.04 on Surface Studio Nvidia drivers not running

I’ve installed the recommended driver version 418 nvidia-driver-418 using the Ubuntu Software & Updates GUI.

My secure boot is disabled.

$ prime-select query returns only nvidia

$   nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 
$   sudo prime-select nvidia Info: the nvidia profile is already set

I have rebooted several times, just in-case.

Any help with where to look next would be appreciated.

Switch nvidia drivers on and off at boot time

I am booting the same Linux partition both directly (“bare metal”) and as a guest under VirtualBox in Windows.

When I boot this partition directly, it boots up and displays the desktop fine. However, when I boot within a VM, I can boot into a TTY fine by using in the grub boot options.

My pc has an nVidia gpu, so for booting bare metal, it has the nvidia drivers installed. However, when I boot the VM, there is no nVidia gpu present in the VM – VMWare provides its own virtual VGA hardware. As I understand, Linux has mainlined drivers for that, and they get recognized properly:

$   lspci -k ... 00:02.0 VGA compatible controller: VMware SVGA II Adapter         Subsystem: VMware SVGA II Adapter         Kernel driver in use: vmwgfx         Kernel modules: vmwgfx ... 

If I run the VM with the above kernel option so it boots into a TTY, and then log onto the VM via ssh, and run sudo systemctl start, the VM’s graphical output again shows it crashing just before the login prompt. It looks like this: crash. The systemd journal contains the following log: journalctl output.

I would like to be able to boot without the nvidia drivers when in a VM, but with the nvidia drivers when booting bare metal. How can I do this? I am really anxious to get this working. Unfortunately all online discussion about turning off nvidia drivers without uninstalling them is on the topic of optimus / prime / gpu switching, for when you have two gpus concurrently in a laptop, and that is not the case here. Essentially what I’m doing is like I’m pulling out the hard drive from a pc that has an nvidia gpu, and putting it in one that has a generic gpu (branded as “VMware”), and then taking it out of there and putting it back in the nvidia pc. I could see the configuration change being indicated by e.g. having two separate selections in grub, one for “linux with nvidia gpu” and one for “linux with vmware gpu” and I’d have to select the right one.

I am under Ubuntu 18.04 x64 and I’m using nvidia-390, but I could change the version of that to something else.

I would appreciate any and all hints.

Screen Flickering [Nvidia optimus, Ubuntu 19.04]

I’ve a Dell 5480 laptop with Intel HD 520 & GeForce 930MX (optimus).

Whenever I use the Nvidia card, the screen flickers randomly. When I switch to intel:

sudo prime-select intel sudo reboot 

It works fine, no flickering.

Weird behavior: When using the Nvidia card, If I run a youtube video, it stops flickering until the video ends.

Sys specs:
Ubuntu 19.04
Intel HD 520 (integrated)
Nvidia 930MX (dedicated)

Swtiching using prime-select.
/etc/X11/xorg.conf doesn’t exist

Any ideas?

Thanks in advance!

Ubuntu does not use nvidia video card

I have a nvidia video card Geforces GTX 1050 Ti and Ubuntu(19.04) uses an integrated one instead of nvidia card. I can see that in the ‘about’ tab of settings. Moreover there is only ‘Prime profiles’ tab in nvidia card settings. I tried to change nvidia drivers through ‘Software & Updates’ and ubuntu-drivers command but it didn’t change anything. Please help me to make ubuntu use nvidia video card.

Ubuntu 18.04 on vmware ESXi 6.7 and Nvidia – device available, unable to install drivers

I have esxi 6.7 installed and have my Nvidia Quadro p3200 selected as a pass through on the host. On the guest, I have ubuntu desktop 18.04 lspci shows me nvidia device I installed the latest ver 430, and it installed without issues. I also installed cuda toolkit 10.0 without errors. however, nvidia-smi shows me no devices were found nvcc –version tells me to install cuda toolkit

when I do sudo prime-select nvidia, it tells me nvidia is already prime

I’m unable to start nvidia-x-server settings either.

I’ve installed nvidia and cuda on ubuntu without the vm many times, but not sure why this is such a problem. I have tried to do this over a dozen times looking at various help articles. I must be missing some step.

I have installed and reinstalled ubuntu several times on the vm in order to try to get this to work

any help would be appreciated