AMD GPU: Difference between revisions

Rrdpad (talk | contribs)
added hardware.graphics option
Wimpy (talk | contribs)
Correct Linux AMDGPU Controller section about the systemd unit for lact daemon
Tags: Mobile edit Mobile web edit
Line 135: Line 135:
This application allows you to control your AMD GPU on a Linux system.
This application allows you to control your AMD GPU on a Linux system.


In order to enable the daemon you need to add the package to systemd.packages and enable its service:<syntaxhighlight lang="nix">
In order to enable the daemon you need to add the package to `environment.systemPackages` and enable the `lact` daemon:
<syntaxhighlight lang="nix">
   environment.systemPackages = with pkgs; [                                                                                                                                                                               
   environment.systemPackages = with pkgs; [                                                                                                                                                                               
     lact                                                                                                                                                                                                                                                                                           
     lact                                                                                                                                                                                                                                                                                           
   ];                                                                                                                                                                                                                                                                                                                                                 
   ];                                                                                                                                                                                                                                                                                                                                                 
  systemd.packages = with pkgs; [ lact ];                                                                                                                                                   
 
   systemd.services.lactd = {
   systemd.services.lactd = {
     enable = true; # this is true by default
    description = "AMDGPU Control Daemon";
     wantedBy = [ "multi-user.target" ]; # add this if you want the unit to auto start at boot time
     enable = true;
    serviceConfig = {
      ExecStart = "${pkgs.lact}/bin/lact daemon";
    };
     wantedBy = ["multi-user.target"];
   };
   };
</syntaxhighlight>
</syntaxhighlight>
[[Category:Video]]
[[Category:Video]]