From 7d87afd10b176dee02376c476cb916eb33e23d8b Mon Sep 17 00:00:00 2001 From: Flameopathic Date: Sat, 22 Jun 2024 13:51:28 -0400 Subject: [PATCH 1/2] 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 + + + + + + + From 0cf592f520a4cbb6e8b4e84e38988bee5e939cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 23 Jun 2024 13:59:30 +0200 Subject: [PATCH 2/2] add new tests to mergify configuration --- .github/workflows/test.yml | 1 + .mergify.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c67a21..9d1999e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + # when updating channels, also update .mergify.yml channel: [ nixos-unstable, nixos-24.05 ] steps: - uses: actions/checkout@v4 diff --git a/.mergify.yml b/.mergify.yml index 45ffb1e..dc3bf77 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,7 +1,8 @@ queue_rules: - name: default merge_conditions: - - check-success=tests + - check-success=tests (nixos-24.05) + - check-success=tests (nixos-unstable) defaults: actions: queue: