Skip to content

Commit

Permalink
nixos/thermald: add adaptive mode
Browse files Browse the repository at this point in the history
thermald >=2.3 supports the adaptive DPTF mode, in conjunction with
kernel 5.8.
  • Loading branch information
Emantor committed Sep 16, 2020
1 parent 5cae66c commit 0aaa5ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/modules/services/hardware/thermald.nix
Expand Up @@ -23,6 +23,15 @@ in {
default = null;
description = "the thermald manual configuration file.";
};

adaptive = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable adaptive mode, only working on kernel versions greater than 5.8.
Thermald will detect this itself, safe to enable on kernel versions below 5.8.
'';
};
};
};

Expand All @@ -39,6 +48,7 @@ in {
--no-daemon \
${optionalString cfg.debug "--loglevel=debug"} \
${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \
${optionalString cfg.adaptive "--adaptive"} \
--dbus-enable
'';
};
Expand Down

0 comments on commit 0aaa5ad

Please sign in to comment.