Post-install nvidia prime (and davinci resolve error 999)

Hi everyone,

I have come to have some issue with the installation of nvidia prime on my MSI Vector GP66.

$ prime-run nvidia-settings doesn’t show the prime option.

Then

$prime-run /opt/resolve/bin/resolve.desktop or exec= DRI_PRIME=1.... inside it still show me error 999 (which is a prime error it seams)

I’m humbly asking for some guidance . :sweat_smile:

 $ inxi 
CPU: 14-core (6-mt/8-st) 12th Gen Intel Core i7-12700H (-MST AMCP-)
speed/min/max: 2589/400/4600:4700:3500 MHz Kernel: 6.1.21-1-MANJARO x86_64
Up: 18m Mem: 3338.3/15697.7 MiB (21.3%) Storage: 2.75 TiB (1.0% used)
Procs: 381 Shell: Zsh inxi: 3.3.26
$ sudo mhwd -li                                                                                                                                                                                                                                                             
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!
 $ inxi -G
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
  Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] driver: nvidia
    v: 530.41.03
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.0 driver: X:
    loaded: modesetting,nvidia dri: iris gpu: i915 resolution: 2560x1440~165Hz
  API: OpenGL v: 4.6 Mesa 23.0.1 renderer: Mesa Intel Graphics (ADL GT2)
$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.0.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.0.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
$ sudo prime-run nvidia-settings

(nvidia-settings:4537): GLib-GObject-CRITICAL **: 09:24:56.532: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Or could you point me where I need to seek help?

can you post the output of this 3 commands

echo $XDG_SESSION_TYPE
glxinfo | grep server
prime-run glxinfo | grep server
1 Like

x11

server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:

server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:

And thanks :slightly_smiling_face:

well, your driver is running as it should. prime is installed and working. your primary driver is the intel driver (glxinfo is SGI) and running glxinfo with “prime-run” forces to run it with the nvidia card. from this point everything is okay. the malfunction of davinci seems to be a mismatch of davinci with prime. in this case i would suggest to install optimus and drive your nvidia-card as he only primary card.