Pop!_OS multi GPU laptop nVidia GPU issues

I have done a fresh install of Pop!_OS and need some guidance and help to get my nVidia GPU to work on my laptop. Any information you need I can supply but I do need some guidance since my knowledge is a bit lacking sorry.

OS: Pop!_OS 22.04 LTS
Kernel: Linux 6.4.6-76060406-generic
Laptop: Dell Inspiron 3543
GPUs: nVidia GeForce 840M, Intel Corporation HD Graphics 5500
Driver: 535.104.05

My main concern is nvidia-smi gives me an output of No devices were found and nvidia settings is empty. Another thing I have noticed is nvidia settings isn’t happy with not having Prime for GPU switching since the main reason I installed Pop!_OS is for the built in GPU switching but I don’t care about the Intel GPU since I always have my laptop on charge I just want my nVidia GPU to work.

The result of sudo nvidia-settings is

ERROR: A supplied argument is invalid

(nvidia-settings:6505): GLib-GObject-CRITICAL **: 09:59:13.208: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:6505): CRITICAL **: 09:59:13.210: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

** (nvidia-settings:6505): WARNING

**: 09:59:13.261: PRIME: Failed to execute child process “/usr/bin/prime-supported” (No such file or directory)** Message: 09:59:13.261: PRIME: is it supported? no.

I had an issue where I was also getting an Error for nvidia-settings could not find the registry key file or the X server is not accessible.
Which I resolved with sudo ln -s nvidia-application-profiles-535.104.05-key-documentation nvidia-application-profiles-key-documentation as I read here ERROR: nvidia-settings could not find the registry key file

I have little to no knowledge so please bear with me and if you need any information I can arrange for whatever is needed.

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

I’m no expert regarding Pop OS! but I believe to remember they have a little Optimus Helper application where you can choose between 3 modes:

  • integrated only
  • dedicated GPU only
  • hybrid (PRIME Offloading)

Does this apply to your system and if yes which mode is set?