mmio added to tdp controller

This commit is contained in:
2026-03-29 02:00:04 +01:00
parent 600ef66012
commit a5820a0b31
3 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
modules.quickshell
modules.lavd
modules.podman
modules.openvivo
# modules.openvivo
];
nixos =
{ config, pkgs, ... }:
@@ -19,12 +19,20 @@
long-term = 13;
short-term = 7;
};
mmio = {
long-term = 10;
short-term = 7;
};
};
ac = {
cpu = {
long-term = 120;
short-term = 120;
};
mmio = {
long-term = 40;
short-term = 20;
};
};
})
];
+16 -2
View File
@@ -8,16 +8,30 @@
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 0 -l ${
toString (settings.batt.cpu.long-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 0 -l ${
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 1 -l ${
toString (settings.batt.cpu.short-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl-mmio -z 0 -c 0 -l ${
toString (settings.batt.mmio.long-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl-mmio -z 0 -c 1 -l ${
toString (settings.batt.mmio.short-term * 1000000)
}
'';
ac-tdp = pkgs.writeShellScript "ac-cpu-tdp" ''
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 0 -l ${
toString (settings.ac.cpu.long-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 0 -l ${
${pkgs.powercap}/bin/powercap-set intel-rapl -z 0 -c 1 -l ${
toString (settings.ac.cpu.short-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl-mmio -z 0 -c 0 -l ${
toString (settings.batt.mmio.long-term * 1000000)
}
${pkgs.powercap}/bin/powercap-set intel-rapl-mmio -z 0 -c 1 -l ${
toString (settings.batt.mmio.short-term * 1000000)
}
'';
in