Davinci Resolve was working about 6 months ago. It is no longer working with the same config. It only opens as root.
Launching resolve with the following did not work
ROC_ENABLE_PRE_VEGA=1 RUSTICL_ENABLE=amdgpu,amdgpu-pro,radv,radeon DRI_PRIME=1 QT_QPA_PLATFORM=xcb davinci-resolve
[nix-shell:~]$ clinfo
Number of devices 1
Device Name gfx1033
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 2.0
Driver Version 3602.0 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.2
ICD loader Profile OpenCL 3.0
[nix-shell:~]$ cat ~/.local/share/DaVinciResolve/logs/ResolveDebug.txt
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:20,841 | Running DaVinci Resolve v19.1.3.0007 (Linux/Clang x86_64)
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:20,841 | BMD_BUILD_UUID 7cf96e07-d99e-4076-be20-2f473293c6b8
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:20,841 | BMD_GIT_COMMIT 21640d34108b08ab4ea108917e09dce73d79d908
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,841 | Starting GPUDetect 1.2_6-a2
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Done in 57 ms.
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Detected System:
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - OS: Linux NixOS 25.05 (Warbler)
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - Model: Valve Jupiter
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - System ID: 08bf7dfbec994389969d428b011c7e1e
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - CPU: AMD Custom APU 0405, 8 threads, x86-64
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - RAM: 5.4 GiB used of 13.5 GiB
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Detected 1 GPUs:
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | - "AMD Custom GPU 0405" (gpu:181b4f18.7869974b) <- Main Display GPU
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Discrete, 235 MiB used of 6.7 GiB VRAM, PCI:4:0.0
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Matches: OpenCL, XOrg
0x7f4f91462000 | GPUDetect | INFO | 2025-02-18 15:08:20,899 | Detected 1 monitors:
0x7f4f91462000 | Main.GPUConfig | INFO | 2025-02-18 15:08:20,900 | Compute API set to automatic, defaulting to OpenCL.
0x7f4f91462000 | Main.GPUConfig | INFO | 2025-02-18 15:08:20,900 | Selected compute API: OpenCL
0x7f4f91462000 | Main.GPUConfig | INFO | 2025-02-18 15:08:20,900 | Automatic GPU Selection:
0x7f4f91462000 | Main.GPUConfig | INFO | 2025-02-18 15:08:20,900 | - "AMD Custom GPU 0405" (gpu:181b4f18.7869974b)
0x7f4f91462000 | IO | INFO | 2025-02-18 15:08:20,900 | RED InitializeSdk with library path at /nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/libs
0x7f4f91462000 | IO | INFO | 2025-02-18 15:08:20,954 | R3DAPI 8.5.1-53601 (20240308 Lx64S) R3DSDK 8.5.1-53601 (20240308 Lx64D C3B1) RED OPENCL 8.5.1-53598 (20240308) [/nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/libs/] init is successful
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:20,954 | 0 RED rocket cards available
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:20,954 | Decklink model name: '', version: ''
0x7f4f91462000 | DVIP | INFO | 2025-02-18 15:08:20,954 | DVIP release/19.1.3 build 2 (8d0288bb60752cd68847f3956de0cc1a4487f3f7). Release, version 19.1.3.
0x7f4e4d7ee000 | IO | INFO | 2025-02-18 15:08:20,954 | Using DNxHR library v2.7.5.873r
0x7f4e477ff000 | SyManager | ERROR | 2025-02-18 15:08:21,111 | GetProjectLibraries() - Access token is empty
0x7f4e4dfef000 | Fusion | INFO | 2025-02-18 15:08:21,273 | Fusion Build: f51f3683_0005 (Jan 14 2025 16:47:20)
0x7f4e3e3fb000 | Fusion | INFO | 2025-02-18 15:08:21,276 | fusionsystem: = "/nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/libs/Fusion/libfusionsystem.so"
0x7f4e4d7ee000 | IO | INFO | 2025-02-18 15:08:21,278 | IO codec library load completed in 324 ms.
0x7f4e3e3fb000 | Fusion | INFO | 2025-02-18 15:08:21,281 | FusionLibs: = "/nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/libs/Fusion/"
0x7f4e3e3fb000 | Fusion | INFO | 2025-02-18 15:08:21,281 | UserData: = "/home/deck/.local/share/DaVinciResolve/Fusion"
0x7f4e3e3fb000 | Fusion | INFO | 2025-02-18 15:08:21,281 | Profiles: = "UserData:Profiles/"
0x7f4f91462000 | UI | INFO | 2025-02-18 15:08:21,305 | UI language is set to "en".
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
0x7f4e367ff000 | DbCommon2 | INFO | 2025-02-18 15:08:21,306 | Loading dblist file: /home/deck/.local/share/DaVinciResolve/configs/.dblist
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,383 | Finished loading Application style sheet
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,405 | Show splash screen
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,405 | Show splash screen message: Starting Up
0x7f4f91462000 | UI.GLContext | INFO | 2025-02-18 15:08:21,519 | Creating shared OpenGL context for this thread (1 total).
0x7f4f91462000 | UI.GLContext | INFO | 2025-02-18 15:08:21,523 | Initialized OpenGL 4.6 (requested 4.5) on device 'AMD AMD Custom GPU 0405 (radeonsi, vangogh, LLVM 19.1.7, DRM 3.59, 6.11.11-valve4)'
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,523 | Local SysId:E8FB1C43658F Hostname:steamdeck-nixos Timezone: UTC+0000
0x7f4f91462000 | BtCommon | INFO | 2025-02-18 15:08:21,530 | Memory config: reserved=2589M pinned=1941M log=0
0x7f4f91462000 | BtCommon | INFO | 2025-02-18 15:08:21,530 | Using default pooled memory manager
0x7f4e1e3f3000 | LeManager | INFO | 2025-02-18 15:08:21,530 | 521, 29
0x7f4e1dbf2000 | BtCommon | INFO | 2025-02-18 15:08:21,531 | BtResourceManager Process Thread Started
0x7f4f91462000 | IO | INFO | 2025-02-18 15:08:21,535 | Setting codec capacity (0)
0x7f4f91462000 | SyManager | INFO | 2025-02-18 15:08:21,536 | Total: 20, NumDtThreads: 8, NumComms: 0, NumSites: 1
0x7f4f91462000 | SyManager | INFO | 2025-02-18 15:08:21,536 | Lookaheads -> playback = 20, record = 20, stop = 2
Sy High Command Handler Thread ----- (139973425668096)
SY high priority cmd handler thread starts: 1A50A000
Sy Low Command Handler Thread ----- (139973417275392)
SY low priority cmd handler thread starts: 19D09000
Sy Data Handler Thread ----- (139973408882688)
SY data handler thread starts: 19508000
Gs High Command Handler Thread ----- (139973392097280)
GS high priority cmd handler thread starts: 18506000
Gs Low Command Handler Thread ----- (139973383704576)
GS low priority cmd handler thread starts: 17D05000
0x7f4e17504000 | GsManager | INFO | 2025-02-18 15:08:21,537 | Gs Processor Thread ----- (139973375311872)
GS processor thread starts: 17504000
Dp High Command Handler Thread ----- (139973366919168)
DP high priority cmd handler thread starts: 16D03000
Dp Low Command Handler Thread ----- (139973358526464)
DP low priority cmd handler thread starts: 16502000
Dt High Command Handler Thread ----- (139973350133760)
DT high priority cmd handler thhread starts: 15D01000
Dt Low Command Handler Thread ----- (139973341741056)
DT low priority cmd handler thread starts: 15500000
0x7f4f91462000 | DtManager | INFO | 2025-02-18 15:08:21,538 | Using 8 generic IO threads
0x7f4e14cff000 | DtManager | INFO | 2025-02-18 15:08:21,538 | Dt Data Handler Thread Started
DT data handler thread starts: 14CFF000
0x7f4f91462000 | DtManager | INFO | 2025-02-18 15:08:21,538 | Total of 16 IO threads (including 8 generic and 8 Red decode threads)
0x7f4e144fe000 | DtManager | INFO | 2025-02-18 15:08:21,538 | Dt Worker Thread Started
0x7f4e13cfd000 | DtManager | INFO | 2025-02-18 15:08:21,538 | Dt Worker Thread Started
0x7f4e134fc000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e12cfb000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e124fa000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e11cf9000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e114f8000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e10cf7000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e104f6000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0fcf5000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0f4f4000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0ecf3000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0e4f2000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0dcf1000 | DtManager | INFO | 2025-02-18 15:08:21,539 | Dt Worker Thread Started
0x7f4e0d4f0000 | DtManager | INFO | 2025-02-18 15:08:21,540 | Dt Worker Thread Started
0x7f4e0ccef000 | DtManager | INFO | 2025-02-18 15:08:21,540 | Dt Worker Thread Started
0x7f4e0c4ee000 | DtManager | INFO | 2025-02-18 15:08:21,540 | Dt Worker Thread Started
0x7f4e0bced000 | DtManager | INFO | 2025-02-18 15:08:21,540 | Dt Worker Thread Started
Ls High Command Handler Thread ----- (139973173886976)
Ls Low Command Handler Thread ----- (139973165494272)
LS low priority cmd handler thread starts: 0ACEB000
Ls Data Handler Thread ----- (139973157101568)
LS data handler thread starts: 0A4EA000
Ls High Command Handler Thread ----- (139973148708864)
Ls Low Command Handler Thread ----- (139973140316160)
LS low priority cmd handler thread starts: 094E8000
Ls Data Handler Thread ----- (139973131923456)
LS data handler thread starts: 08CE7000
Ls High Command Handler Thread ----- (139973123530752)
Ls Low Command Handler Thread ----- (139973115138048)
LS low priority cmd handler thread starts: 07CE5000
Ls Data Handler Thread ----- (139973106745344)
Mem Data Transmitter Thread ----- (139973098352640)
Mem data transmitter thread starts: 06CE3000
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,541 | Show splash screen message: Loading Project Libraries
0x7f4e074e4000 | GPU.MultiBoardMgr | INFO | 2025-02-18 15:08:21,544 | Let There Be OpenCL Light!
0x7f4e074e4000 | GPU.MultiBoardMgr | INFO | 2025-02-18 15:08:21,544 | Initializing OpenCL board manager for Main Display GPU gpu:181b4f18.7869974b.
0x7f4e05ce1000 | UI.GLContext | INFO | 2025-02-18 15:08:21,544 | Creating shared OpenGL context for this thread (2 total).
0x7f4e05ce1000 | DVIP | INFO | 2025-02-18 15:08:21,592 | Created OpenCL context for devices gpu:181b4f18.7869974b
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,624 | Show splash screen message: Initializing system components
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,626 | Show splash screen message: Loading video codecs
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,631 | Show splash screen message: Loading video plugins
0x7f4f91462000 | Main | INFO | 2025-02-18 15:08:21,632 | Show splash screen message: Loading Fairlight Engine
/nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/bin/BlackmagicRawAPI/libBlackmagicRawAPI.so: cannot open shared object file: No such file or directory
/nix/store/wkp67cw4zpn6hj3jrz5rhsr5n2wkf854-davinci-resolve-19.1.3/bin/libBlackmagicRawAPI.so: cannot open shared object file: No such file or directory
0x7f4e4d7ee000 | IO | INFO | 2025-02-18 15:08:22,639 | IO codec initialization completed in 1008 ms.
0x7f4e05ce1000 | DVIP | INFO | 2025-02-18 15:08:22,641 | Opened cache "/home/deck/.local/share/DaVinciResolve/DVIP/Cache/OpenCL.cache", version 2 is current. Total size 0.0 MiB.
0x7f4e05ce1000 | GPU.SingleBoardMgr | INFO | 2025-02-18 15:08:22,652 | Board manager thread for "AMD Custom GPU 0405" (gpu:181b4f18.7869974b) is ready.
0x7f4e074e4000 | UI.GLInterop | INFO | 2025-02-18 15:08:22,652 | OpenGL interop was initialized.
0x7f4e074e4000 | UI.GLInterop | INFO | 2025-02-18 15:08:22,652 | OpenGL interop was initialized.
0x7f4dcabfe000 | DVIP | INFO | 2025-02-18 15:08:22,652 | Re-using OpenCL context for devices gpu:181b4f18.7869974b
LS data handler thread starts: 074E4000
Unable to read VR Path Registry from /home/deck/.config/openvr/openvrpaths.vrpath
0x7f4e4e7f0000 | Fusion | INFO | 2025-02-18 15:08:23,056 | 347 templates scanned in 0.26 secs
nixpkgs.overlays = [
(final: prev: {
davinci-resolve = prev.davinci-resolve.override (old: {
buildFHSEnv = a: (prev.buildFHSEnv (a // {
extraBwrapArgs = a.extraBwrapArgs ++ [
''--bind /run/opengl-driver/etc/OpenCL /etc/OpenCL''
];
}));
});
})
];
hardware.amdgpu.opencl.enable = true;
boot.kernelModules = [ "kvm-amd" ];
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
amdvlk
libvdpau-va-gl
vaapiVdpau
rocmPackages.clr.icd
];
};