diff --git a/microsoft/surface/surface-pro-intel/default.nix b/microsoft/surface/surface-pro-intel/default.nix index 026843a..2cfa95d 100644 --- a/microsoft/surface/surface-pro-intel/default.nix +++ b/microsoft/surface/surface-pro-intel/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: # This module is intended to support the Surface Pro range, specifically those with Intel CPUs. # It's expected it will work equally well on many other Surface models, but they may need further @@ -15,4 +15,9 @@ microsoft-surface.ipts.enable = true; microsoft-surface.surface-control.enable = true; + + services.thermald = lib.mkDefault { + enable = true; + configFile = ./thermal-conf.xml; + }; } diff --git a/microsoft/surface/surface-pro-intel/thermal-conf.xml b/microsoft/surface/surface-pro-intel/thermal-conf.xml new file mode 100644 index 0000000..459ef81 --- /dev/null +++ b/microsoft/surface/surface-pro-intel/thermal-conf.xml @@ -0,0 +1,27 @@ + + + + Surface Pro Intel Thermal Workaround + * + QUIET + + + cpu + + + x86_pkg_temp + 65000 + passive + SEQUENTIAL + + 1 + rapl_controller + 100 + 10 + + + + + + +