Using the NVIDIA graphics driver locks the computer

A while ago, I added the Graphic drivers PPA and installed driver 415. I decided to go back to my original controller, the 390, but apparently I made a mistake in doing so: I removed the PPA before changing. When I tried to change from 415 to 390, I received an error message (I do not remember the exact message, but I mentioned the cache).

When using the 390 controller, I can not have NVIDIA prime-selected. If I do, I find that:

  • My system can not boot properly on the desktop, instead of getting stuck in a short cycle between the Ubuntu load logo and a terminal flooded with the following, repeated again and again:

Starting the NVIDIA persistence daemon

Stopping the NVIDIA persistence daemon

  • The use of certain NVIDIA tools causes the screen to crash. For example, if I use nvidia configuration, The screen freezes. If I use, the system freezes generating only the following nvidia-bug-report.log.gz:



Start of the NVIDIA error report log file. Please include this file, together
with a detailed description of your problem, when reporting graphics
driver error through the NVIDIA Linux forum (see
or by sending an email to & # 39; & # 39 ;. Version: 23805530

Date: Wed Feb 27 02:08:52 GMT 2019
uname: Linux u-rdm 4.18.0-15-generic # 16 ~ 18.04.1-Ubuntu SMP Thu Feb 7 14:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU / Linux
Command line flags: 

When I run lspci -v, the entries related to graphics appear to be the following:

00: 02.0 VGA-compliant driver: Intel Corporation UHD Graphics 620 (rev 07) (prog-if 00 [VGA controller])
Subsystem: Dell UHD Graphics 620
Flags: bus master, fast devsel, latency 0, IRQ 130
Memory in d4000000 (64 bits, not prefilable) [size=16M]
    Memory in b0000000 (64 bits, pre-chargeable) [size=256M]
    I / O ports in f000 [size=64]
    [virtual]    Expansion ROM in 000c0000 [disabled] [size=128K]
    Kernel driver in use: i915
Core modules: i915

01: 00.0 3D driver: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
Subsystem: Dell GM108M [GeForce 940MX]
    Flags: bus master, fast devsel, latency 0, IRQ 142
Memory at d2000000 (32 bits, not selectable) [size=16M]
    Memory in c0000000 (64 bits, pre-chargeable) [size=256M]
    Memory to d0000000 (64-bit, prefilable) [size=32M]
    I / O ports in e000 [size=128]
    Expansion ROM in the d3000000 [disabled] [size=512K]
    Kernel driver in use: Nouveau
Core modules: nvidiafb, nouveau

If I run glxinfo, there is no reference to NVIDIA. It seems that it goes with the integrated graphics:

OpenGL Provider Chain: Intel Open Source Technology Center
OpenGL processor chain: DRI Table Intel (R) UHD Graphics 620 (Kabylake GT2) 

When the problem occurred for the first time, I remember trying to purge and reinstall the NVIDIA packages, without success.

I realize that, running lsmod, there is no appearance of nvidiafb module mentioned by lspci. Also, running modprobe nvidia It produces the following:

modprobe: FATAL: nvidia module not found in the /lib/modules/4.18.0-15-generic directory

At present, dpkg -l | grep nvidia It gives me the following output:

ii libnvidia-cfg1-390: amd64 390.77-0ubuntu0.18.04.2 amd64 nvidia OpenGL / GLX binary configuration library
ii libnvidia-common-390 390.87-0ubuntu0 ~ gpu18.04.2 all shared files used by NVIDIA libraries
ii libnvidia-compute-390: amd64 390.77-0ubuntu0.18.04.2 amd64 NVIDIA libcompute package
rc libnvidia-compute-390: i386 390.87-0ubuntu0 ~ gpu18.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-390: amd64 390.77-0ubuntu0.18.04.2 amd64 NVIDIA video decode runtime libraries
ii libnvidia-encode-390: amd64 390.77-0ubuntu0.18.04.2 amd64 NVENC Runtime video encoding of the library
ii libnvidia-fbc1-390: amd64 390.77-0ubuntu0.18.04.2 amd64 Framebuffer capture runtime library based on NVIDIA OpenGL
ii libnvidia-gl-390: amd64 390.77-0ubuntu0.18.04.2 amd64 NVIDIA OpenGL / GLX / EGL / GLS GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-390: amd64 390.77-0ubuntu0.18.04.2 amd64 inband caddy reading runtime library in NVIDIA OpenGL
ii nvidia-compute-utils-390 390.77-0ubuntu0.18.04.2 amd64 NVIDIA compute utilities
ii nvidia-dkms-390 390.77-0ubuntu0.18.04.2 amd64 NVIDIA DKMS package
ii nvidia-driver-390 390.77-0ubuntu0.18.04.2 amd64 metapackage of the NVIDIA driver
ii nvidia-kernel-common-390 390.87-0ubuntu0 ~ gpu18.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-390 390.77-0ubuntu0.18.04.2 amd64 NVIDIA kernel source package
ii nvidia-prime all the tools to enable NVIDIA & # 39; s Prime
ii nvidia-settings 415.27-0ubuntu0 ~ gpu18.04.1 amd64 Tool to configure the NVIDIA graphics driver
ii nvidia-utils-390 390.77-0ubuntu0.18.04.2 amd64 NVIDIA driver compatibility binaries
ii xserver-xorg-video-nvidia-390 390.77-0ubuntu0.18.04.2 amd64 binary driver NVIDIA Xorg