Jump to content

Talk:DaVinci Resolve: Difference between revisions

From Official NixOS Wiki
Latest comment: 21 October by Stencill in topic AMD GPU issue
 
(7 intermediate revisions by 2 users not shown)
Line 16: Line 16:
When using the global menu widget on kde, all hotkeys/inputs will be ignored while davinci resolve is the active window. Using the following home-manager xdg.desktop entry will fix this.
When using the global menu widget on kde, all hotkeys/inputs will be ignored while davinci resolve is the active window. Using the following home-manager xdg.desktop entry will fix this.


```
<syntaxhighlight lang="nix">
xdg.desktopEntries.davinci-resolve = {
    name = "Davinci Resolve";
    genericName = "Video Editor";
    comment = "Professional video editing, color, effects and audio post-processing";
    exec =
      let
        script = pkgs.writeShellScriptBin "resolve-wrapper" ''
          #!/bin/sh
          qdbus org.kde.kded6 /kded org.kde.kded6.unloadModule appmenu
          exec ${pkgs.davinci-resolve}/bin/davinci-resolve "$@"
          qdbus org.kde.kded6 /kded org.kde.kded6.loadModule appmenu
        '';
      in
      "${script}/bin/resolve-wrapper %U";
    icon = "davinci-resolve";
    type = "Application";
    categories = [
      "AudioVideo"
      "AudioVideoEditing"
      "Video"
      "Graphics"
    ];
};
</syntaxhighlight>


   xdg.desktopEntries.davinci-resolve = {
Another solution is setting it with home.file but this felt more nix like using home-manager's available options


     name = "Davinci Resolve";
== AMD GPU issue ==


     genericName = "Video Editor";
the proposed amd gpu configuration resulted in crashing after running davinci-resolve. The previous discussion already mentioned probably the same issue. I could fix it with another approach though:


     comment = "Professional video editing, color, effects and audio post-processing";
```
 
     exec =
 
       let
 
         script = pkgs.writeShellScriptBin "resolve-wrapper" <nowiki>''</nowiki>
 
           #!/bin/sh
 
           qdbus6 org.kde.kded6 /kded org.kde.kded6.unloadModule appmenu
 
           exec ${pkgs.davinci-resolve}/bin/davinci-resolve "$@"
 
           qdbus6 org.kde.kded6 /kded org.kde.kded6.loadModule appmenu
 
         <nowiki>''</nowiki>;
 
       in
 
       "${script}/bin/resolve-wrapper %U";
 
     icon = "davinci-resolve";
 
     type = "Application";
 
     categories = [


       "AudioVideo"
      hardware = {


       "AudioVideoEditing"
        graphics = {


       "Video"
          enable = true;


       "Graphics"
        };


     ];
        amdgpu.opencl.enable = true;


   };
      };


```
``` [[User:Stencill|Stencill]] ([[User talk:Stencill|talk]]) 11:44, 21 October 2025 (UTC)


Another solution is setting it with home.file but this felt more nix like using home-manager's available options [[User:Sophimoo|Sophimoo]] ([[User talk:Sophimoo|talk]]) 20:42, 19 September 2025 (UTC)
EDIT: It does not crash anymore like so but poses other issues such as not showing the clips and thumbnails.

Latest revision as of 12:07, 21 October 2025

AMD GPU not discovered

I had to fix it with the following additions to configuration.nix

hardware.opengl = {
  enable = true;
  extraPackages = with pkgs; [
    amdvlk
    rocmPackages.clr.icd
  ];
};

I'm not sure of the formal way nor the deeper workings of such drivers but the fix should be provided in the Wiki somehow in order to save people from the pain that I just went through :P

Hotkeys not working while using the Global Menu widget on KDE

When using the global menu widget on kde, all hotkeys/inputs will be ignored while davinci resolve is the active window. Using the following home-manager xdg.desktop entry will fix this.

xdg.desktopEntries.davinci-resolve = {
    name = "Davinci Resolve";
    genericName = "Video Editor";
    comment = "Professional video editing, color, effects and audio post-processing";
    exec =
      let
        script = pkgs.writeShellScriptBin "resolve-wrapper" ''
          #!/bin/sh
          qdbus org.kde.kded6 /kded org.kde.kded6.unloadModule appmenu
          exec ${pkgs.davinci-resolve}/bin/davinci-resolve "$@"
          qdbus org.kde.kded6 /kded org.kde.kded6.loadModule appmenu
        '';
      in
      "${script}/bin/resolve-wrapper %U";
    icon = "davinci-resolve";
    type = "Application";
    categories = [
      "AudioVideo"
      "AudioVideoEditing"
      "Video"
      "Graphics"
    ];
};

Another solution is setting it with home.file but this felt more nix like using home-manager's available options

AMD GPU issue

the proposed amd gpu configuration resulted in crashing after running davinci-resolve. The previous discussion already mentioned probably the same issue. I could fix it with another approach though:

```

      hardware = {

        graphics = {

          enable = true;

        };

        amdgpu.opencl.enable = true;

      };

``` Stencill (talk) 11:44, 21 October 2025 (UTC)Reply

EDIT: It does not crash anymore like so but poses other issues such as not showing the clips and thumbnails.