ERROR: NVIDIA driver is not loaded. Ubuntu 19.10, nvidia 430.14

Hi. I have Optimus Intel/Nvidia laptop with Ubuntu 19.04 (clean install).
On Ubuntu 18.10 nvidia driver worked fine, but on 19.04:

# nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:3551): GLib-GObject-CRITICAL **: 20:15:51.780: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 20:15:51.786: PRIME: Requires offloading
** Message: 20:15:51.786: PRIME: is it supported? yes
# 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.

Before i installed nvidia-430, “lspci | grep VGA” was with GPU, now only Intel:

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
# dpkg -l | grep nvidia
ii  libnvidia-cfg1-430:amd64                   430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-430                       430.14-0ubuntu0~gpu19.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-430:amd64                430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA libcompute package
ii  libnvidia-compute-430:i386                 430.14-0ubuntu0~gpu19.04.1              i386         NVIDIA libcompute package
ii  libnvidia-decode-430:amd64                 430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-430:i386                  430.14-0ubuntu0~gpu19.04.1              i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-430:amd64                 430.14-0ubuntu0~gpu19.04.1              amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-430:i386                  430.14-0ubuntu0~gpu19.04.1              i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-430:amd64                   430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-430:i386                    430.14-0ubuntu0~gpu19.04.1              i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-430:amd64                     430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-430:i386                      430.14-0ubuntu0~gpu19.04.1              i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-430:amd64                   430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-430:i386                    430.14-0ubuntu0~gpu19.04.1              i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-430                   430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA compute utilities
ii  nvidia-dkms-430                            430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA DKMS package
ii  nvidia-driver-430                          430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-430                   430.14-0ubuntu0~gpu19.04.1              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-430                   430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.10                                  all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            418.56-0ubuntu1                         amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-430                           430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-430              430.14-0ubuntu0~gpu19.04.1              amd64        NVIDIA binary Xorg driver

Secure boot is disabled (legacy mode same). But system is in infinite loop with “pkcs#7 signature not signed with a trusted key” and 80% CPU usage.

nvidia-bug-report.log.gz (101 KB)

You’ve installed the wrong driver, your GT820 is a Fermi device which is only supported up to driver v390. Please run
sudo apt install nvidia-driver-390
and reboot.

I removed 430 and installed 390 (BIOS legacy mode). Same problem:

# 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.
# nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:4671): GLib-GObject-CRITICAL **: 21:30:29.087: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 21:30:29.095: PRIME: Requires offloading
** Message: 21:30:29.095: PRIME: is it supported? yes

nvidia-bug-report.log.gz (108 KB)

Please try this:

  • switch to nvidia (sudo prime-select nvidia)
  • remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
  • update the initrd (sudo update-initramfs -u)
  • reboot

No such file or directory. Only nvidia-graphics-drivers.conf (blacklist nouveau) and nvidia-kms.conf (options nvidia-drm modeset=1) in lib, blacklist-nvidia-nouveau.conf in etc.

Please post the output of
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*

# grep nvidia /etc/modprobe.d/* /lib/modprobe.d/* 
/etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb
/lib/modprobe.d/nvidia-kms.conf:# This file was generated by nvidia-prime
/lib/modprobe.d/nvidia-kms.conf:options nvidia-drm modeset=1

Wow, after rebooting nvidia-smi works:

# nvidia-smi
Tue Jun  4 17:52:40 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 820M        Off  | 00000000:03:00.0 N/A |                  N/A |
| N/A   41C    P0    N/A /  N/A |    125MiB /   964MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

But:

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)

In games FPS lower than on Intel.

The nvidia gpu is a 3D controller, run
sudo lspci |grep “VGA|3D”
to see both.
Since you’re seeing lower FPS than with intel, please create a new nvidia-bug-report.log.

Yeah, it works very slow.
nvidia-bug-report.log.gz (588 KB)

Looks normal. Please post the output of

glxinfo |grep vendor

Also, run

sudo journalctl -b0 _COMM=gdm-x-session --no-pager >journal.txt

and attach.
To workaround a possible Gnome bug, add

__GL_MaxFramesAllowed=1

to /etc/environment and reboot.
Do you have an example of a game with fps drops?

__GL_MaxFramesAllowed=1 didn’t work for me.

# glxinfo |grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

With The Talos Principle i have error:

INF:  SysMessage: Your system doesn't meet the minimum requirements for this game.
INF:   - Graphics card is supported but might have rendering and/or performance issues
INF:  Do you wish to continue anyway?

The message is normal, Talos Priciple just looks it up in a list. The GT820 is low end.
Does it clock up when you run some graphics load? Use nvidia-settings to check.