git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/thermald: add adaptive mode

thermald >=2.3 supports the adaptive DPTF mode, in conjunction with kernel 5.8.

commit0aaa5addfb8ad428bc31c23da24fea8996f853ca authorRouven Czerwinski <rouven@czerwinskis.de> dateThu 10 Sep 2020, 06:59 (6 years ago) parent5cae66c
1 file changed+10
nixos/modules/services/hardware/thermald.nix+10
nixos/modules/services/hardware/thermald.nix+10
@@ -23,6 +23,15 @@ in {
2323 default = null;
2424 description = "the thermald manual configuration file.";
2525 };
26+
27+ adaptive = mkOption {
28+ type = types.bool;
29+ default = false;
30+ description = ''
31+ Whether to enable adaptive mode, only working on kernel versions greater than 5.8.
32+ Thermald will detect this itself, safe to enable on kernel versions below 5.8.
33+ '';
34+ };
2635 };
2736 };
2837
@@ -39,6 +48,7 @@ in {
3948 --no-daemon \
4049 ${optionalString cfg.debug "--loglevel=debug"} \
4150 ${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \
51+ ${optionalString cfg.adaptive "--adaptive"} \
4252 --dbus-enable
4353 '';
4454 };