From 7d87afd10b176dee02376c476cb916eb33e23d8b Mon Sep 17 00:00:00 2001 From: Flameopathic Date: Sat, 22 Jun 2024 13:51:28 -0400 Subject: [PATCH] feat: spi thermal conf --- .../surface/surface-pro-intel/default.nix | 7 ++++- .../surface-pro-intel/thermal-conf.xml | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 microsoft/surface/surface-pro-intel/thermal-conf.xml 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 + + + + + + +