Cannot switch to nvidia GPU and nvidia-smi shows "No devices were found"

Hello,

I’ve recently installed the new (non-open) 535.113.01 drivers on my laptop running Linux Mint 21.1 Vera (Kernel: 5.15.0-84-generic x86_64). Unfortunately, I’m unable to switch to my dedicated Nvidia GPU card (GeForce GTX 1060 Mobile 6GB). Although sudo prime-select nvidia executes fine, after rebooting the laptop still runs on the Intel graphic card:

🖖:~$ glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 630 (KBL GT2)

I also noticed that running nvidia-settings opens the GUI, though with much less options than usual, and returns a series of errors and critical warnings:

ERROR: A supplied argument is invalid

(nvidia-settings:6080): GLib-GObject-CRITICAL **: 22:16:22.456: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:6080): CRITICAL **: 22:16:22.457: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

** Message: 22:16:22.487: PRIME: Requires offloading
** Message: 22:16:22.487: PRIME: is it supported? yes
** Message: 22:16:22.518: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 22:16:22.518: PRIME: on-demand mode: "1"
** Message: 22:16:22.518: PRIME: is "on-demand" mode supported? yes

Additionally, running nvidia-smi outputs No devices were found.

Any suggestions would be greatly appreciated.

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