Nvidia module failed to load, mint 20.1, kernel 5.4.0-65

Hey Nvidia team,

Nvidia kernel module is not loaded, which makes driver working in unknown mode and over-consumption of a battery. It was working few weeks ago, several required updates were installed during that time from official mint ppa.

my system:
Dell xps 15
Linux Mint 20.1, kernel 5.4.0-65

:~$ inxi -Gx
Graphics:
Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel
bus ID: 00:02.0
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: N/A
bus ID: 01:00.0
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.2.6
direct render: Yes

:~$ lspci -nnk | grep -EA3 “3D|VGA”
01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1)
Kernel modules: nvidiafb, nouveau, nvidia_drm, 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 nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:10532): GLib-GObject-CRITICAL **: 21:44:59.586: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 21:44:59.588: PRIME: No offloading required. Abort
** Message: 21:44:59.588: PRIME: is it supported? no

:~$ grep ‘EE’ /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 5.732] (EE) Failed to load module “nvidia” (module does not exist, 0)
[ 5.976] (II) Initializing extension MIT-SCREEN-SAVER

Result of nvidia-bug-report.sh attached

Steps taken so far:

  • rollback to few previous kernels
  • reinstall nvidia drivers:
    sudo apt-get purge nvidia
    sudo apt autoremove
    apt install nvidia-driver-460

Thx in advance,nvidia-bug-report.log.gz (114.0 KB)

Looks like the driver is blacklisted, please

  • run
sudo prime-select nvidia
  • run
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*

to find a file containing

blacklist nvidia

and remove it,
then run

sudo update-initramfs -u

and reboot