nvidia-driver is installed, but the driver is not loaded

After a system upgrade, GPU infomations are not showing on the NVIDIA X Server Settings (GUI). When I run the command $ nvidia-settings, I gets the error ‘NVIDIA driver is not loaded’

My system specs:

Kernel: 5.4.0-53-generic

Ubuntu Version: Ubuntu 20.04.1 LTS

GPU: GeForce GTX 1050 Ti Max-Q

NVIDIA Driver Version: 455.32.00

$ nvidia-settings 

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:7943): GLib-GObject-CRITICAL **: 17:02:04.348: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 17:02:04.350: PRIME: Requires offloading
** Message: 17:02:04.350: PRIME: is it supported? yes
** Message: 17:02:04.374: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 17:02:04.374: PRIME: on-demand mode: "1"
** Message: 17:02:04.374: PRIME: is "on-demand" mode supported? yes

nvidia-smi output

 $ 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.


$ cat /var/log/gpu-manager.log 
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.4.0-53-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.4.0-53-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:3e9b
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1c8f
BusID "PCI:1@0:0:0"
Is boot vga? no
Error: can't access /sys/bus/pci/devices/0000:01:00.0/driver
The device is not bound to any driver.
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card0", driven by "i915"
output 0:
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
Intel IGP detected
Desktop system detected
or laptop with open drivers
Nothing to do 
$ sudo prime-select nvidia
Info: the nvidia profile is already set
$ lsmod | grep nvidia

$ lsmod | grep nouveau

$ dpkg -l | grep -i nvidia
ii  libnvidia-cfg1-455:amd64                                    455.32.00-0ubuntu1                                          amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-455                                        455.32.00-0ubuntu1                                          all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-455:amd64                                 455.32.00-0ubuntu1                                          amd64        NVIDIA libcompute package
ii  libnvidia-decode-455:amd64                                  455.32.00-0ubuntu1                                          amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-455:amd64                                  455.32.00-0ubuntu1                                          amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-455:amd64                                   455.32.00-0ubuntu1                                          amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-455:amd64                                    455.32.00-0ubuntu1                                          amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-455:amd64                                      455.32.00-0ubuntu1                                          amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-455:amd64                                    455.32.00-0ubuntu1                                          amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-455                                    455.32.00-0ubuntu1                                          amd64        NVIDIA compute utilities
ii  nvidia-dkms-455                                             455.32.00-0ubuntu1                                          amd64        NVIDIA DKMS package
ii  nvidia-driver-455                                           455.32.00-0ubuntu1                                          amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-455                                    455.32.00-0ubuntu1                                          amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-455                                    455.32.00-0ubuntu1                                          amd64        NVIDIA kernel source package
ii  nvidia-prime                                                0.8.14                                                      all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                             455.32.00-0ubuntu1                                          amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-455                                            455.32.00-0ubuntu1                                          amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                                     0.18build1                                                  all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-455                               455.32.00-0ubuntu1                                          amd64        NVIDIA binary Xorg driver

$ lspci -nnk |egrep -A3 -i "3D|VGA"
00:02.0 VGA compatible controller (0300): Intel Corporation UHD Graphics 630 (Mobile) (8086:3e9b)
    DeviceName: Onboard - Video
    Subsystem: Micro-Star International Co., Ltd. (MSI) UHD Graphics 630 (Mobile) (1462:127e)
    Kernel driver in use: i915
01:00.0 3D controller (0302): NVIDIA Corporation GP107M (GeForce GTX 1050 Ti Max-Q) (10de:1c8f) (rev a1)
    Subsystem: Micro-Star International Co., Ltd. (MSI) GP107M (GeForce GTX 1050 Ti Max-Q) (1462:127e)
    Kernel modules: nvidiafb, nouveau

Things I’ve tried:

  • Purged and reinstall nvidia-driver-455.
  • Purged nvidia-driver-455 and install nvidia-driver-450
  • Tried switching to the kernel 5.4.0-52-generic