Davinci-resolve (18.6.4-1) only runs from command line with sudo / prime-run needed to avoid GPU problem

Hi,

I have a strange issue in which I only can run davinci-resolve from command line if I do it with sudo. Also, I only can get rid of “GPU memory is full” if I do it with prime-run (and, in this case, I need to run it as sudo prime-run /opt/resolve/bin/resolve), which seems not to be a good solution to the problem, if it is already something.

Here is my inxi -Gx:

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Acer Incorporated ALI
    driver: i915 v: kernel arch: Gen-12.1 bus-ID: 0000:00:02.0
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Acer Incorporated ALI driver: nvidia v: 545.29.06 arch: Ampere
    bus-ID: 0000:01:00.0
  Device-3: Quanta HD User Facing driver: uvcvideo type: USB bus-ID: 3-9:2
  Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3 driver: X:
    loaded: modesetting,nvidia dri: iris gpu: i915 resolution: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: iris,nvidia,swrast platforms:
    active: gbm,x11,surfaceless,device inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
  API: Vulkan v: 1.3.269 drivers: nvidia surfaces: xcb,xlib devices: 1

and here is the log of trying to run the app withou sudo:

[Info] [GInstance.Create] success
Platform            	Linux
Mac OS Version      	unset
AMD Driver Version  	unset
Intel Driver Version	unset
NVIDIA Driver Version	545.29
CPU Core Count      	16
Physical Memory (MiB)	15772
[Info] [GInstance.Create] success, backend=OpenGL
[Info] [GLContext.Create] success:  Name="DeviceManager", Handle=0x7f78c7825600, ShareContext="GlobalShare", ThreadID=7F7A29805000
	Requested: 4.5 Core, R(-1)G(-1)B(-1)A(-1), D(-1)S(-1), SwapBehaviour=platformDefault SwapMethod=default 
	Chosen:    4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Surface:   4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Screen:    eDP-1, 1920x1080, DPR=1.0, Refresh~144.15, Geom=(0,0,1920,1080), Primary=yes
[Info] SetupShaderEnvironment shader version set to 4.6
[Info] [GLibrary.Create] success
GPUID               	gpu:31c5a9bf.f91e8f0c
Name                	GeForce RTX 3060 Laptop GPU
Vendor              	NVIDIA
Type                	Discrete
Physical Memory (MiB)	5937
IsMainDisplayGPU    	yes
Backend             	OpenGL
Backend Version     	4.6
GLSL Version        	4.6
[Info] Looking for shaders ...
[Info]  Shaders found.
[Info] [GLContext.Create] success:  Name="ResourceManager3D", Handle=0x7f78b53e3e80, ShareContext="GlobalShare", ThreadID=7F7A29805000
	Requested: 4.5 Core, R(-1)G(-1)B(-1)A(-1), D(-1)S(-1), SwapBehaviour=platformDefault SwapMethod=default 
	Chosen:    4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Surface:   4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Screen:    eDP-1, 1920x1080, DPR=1.0, Refresh~144.15, Geom=(0,0,1920,1080), Primary=yes
[Info] [GLContext.Create] success:  Name="GraphicsThread0", Handle=0x7f78b53e3b80, ShareContext="GlobalShare", ThreadID=7F7A29805000
	Requested: 4.5 Core, R(-1)G(-1)B(-1)A(-1), D(-1)S(-1), SwapBehaviour=platformDefault SwapMethod=default 
	Chosen:    4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Surface:   4.6 Core, RGB8_UNorm, D(0)S(0), SwapBehaviour=platformDefault SwapMethod=default 
	Screen:    eDP-1, 1920x1080, DPR=1.0, Refresh~144.15, Geom=(0,0,1920,1080), Primary=yes
[Info] [GLContext.Destroy] Name="GraphicsThread0", ThreadID=7F78B37C9680
[Info] [GLContext.Destroy] Name="ResourceManager3D", ThreadID=7F7A29805000
[Info] [GLContext.Destroy] Name="DeviceManager", ThreadID=7F7A29805000

Message Summary:
Trace = 0   Debug = 0   Info = 12   Warning = 0   Error = 0   Fatal = 0   

Any ideas on how could I run resolve with prime-run without needing to use sudo? (it is worth to mention that I can run the app from the launcher, but then it is not using prime-run so it is not good for me)

Thanks!

Oh, I have partly solved my problem by creating a new .desktop file in ~/.local/share/applications that adds prime-run to the exec command… Still, weird not being able to run resolve from the command line.

Here is my file if anyone else has the same “GPU memory full” issue (not running with prime-run):

file: DaVinciResolve.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=DaVinci-Resolve-prime
GenericName=DaVinci Resolve (prime)
Comment=Revolutionary new tools for editing, visual effects, color correction and professional audio post production, all in a single application!
Path=/opt/resolve/
Exec=prime-run /opt/resolve/bin/resolve %u
Terminal=false
MimeType=application/x-resolveproj;
Icon=/opt/resolve/graphics/DV_Resolve.png
StartupNotify=true
Name[en_US]=DaVinci Resolve (prime)
StartupWMClass=resolve

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.