Hello,
I got a new laptop (SCHENKER VISION 14 with Intel i7-13700H) and installed NixOS. Following the Wiki, I enabled auto-cpufreq
over the flake install on GitHub.
Linux distro: NixOS 24.05 Uakari
Linux kernel: 6.8.4
auto-cpufreq version: 2.2.0 (git: )
Processor: 13th Gen Intel(R) Core(TM) i7-13700H
Cores: 20
Architecture: x86_64
Driver: intel_pstate
NixOS laptop configuration:
powerManagement.enable = false;
services.thermald.enable = false;
services.tlp.enable = false;
programs.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
energy_performance_preference = "power";
turbo = "never";
};
charger = {
governor = "performance";
energy_performance_preference = "performance";
turbo = "auto";
};
};
};
auto-cpufreq
seems to work, as when idle the state is
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 2400 MHz
CPU min frequency: 400 MHz
---------------------------- CPU frequency scaling ----------------------------
Battery is: charging
Setting to use: "performance" governor
Setting to use: "performance" EPP
Total CPU usage: 1.9 %
Total system load: 1.62
Average temp. of all cores: 40.10 °C
Load optimal (load average: 1.62, 6.64, 4.82)
setting turbo boost: off
Now when putting the system on a little load for i in {1..2}; do yes > /dev/null &; done
I see that turbo boost kicks in and the CPU frequencies go higher. Not to the 4800Mhz exactly, but it seems okay.
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 4800 MHz
CPU min frequency: 400 MHz
Core Usage Temperature Frequency
CPU0 54.0% 52 °C 4226 MHz
CPU1 6.0% 52 °C 4306 MHz
CPU2 0.0% 43 °C 400 MHz
CPU3 0.0% 43 °C 400 MHz
CPU4 0.0% 46 °C 1385 MHz
CPU5 0.0% 46 °C 400 MHz
CPU6 1.0% 39 °C 400 MHz
CPU7 0.0% 39 °C 400 MHz
CPU8 1.0% 42 °C 400 MHz
CPU9 0.0% 42 °C 400 MHz
CPU10 0.0% 41 °C 400 MHz
CPU11 0.0% 41 °C 400 MHz
CPU12 2.0% 45 °C 3110 MHz
CPU13 4.0% 45 °C 400 MHz
CPU14 3.0% 45 °C 3351 MHz
CPU15 0.0% 45 °C 400 MHz
CPU16 41.4% 50 °C 400 MHz
CPU17 0.0% 50 °C 3400 MHz
CPU18 100.0% 50 °C 3351 MHz
CPU19 1.0% 50 °C 400 MHz
---------------------------- CPU frequency scaling ----------------------------
Battery is: charging
Setting to use: "performance" governor
Setting to use: "performance" EPP
Total CPU usage: 23.5 %
Total system load: 1.69
Average temp. of all cores: 45.30 °C
High CPU load (load average: 1.69, 1.07, 1.23)
setting turbo boost: on
My problem starts when putting a lot of load for i in {1..20}; do yes > /dev/null &; done
The CPUs apparently are very low on frequency and also the Temperature of the notebook is quite low. I would imagine the CPU going at least to 80°C before throttling the frequencies.
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 4800 MHz
CPU min frequency: 400 MHz
Core Usage Temperature Frequency
CPU0 100.0% 50 °C 2319 MHz
CPU1 100.0% 50 °C 2319 MHz
CPU2 100.0% 54 °C 2400 MHz
CPU3 100.0% 54 °C 2400 MHz
CPU4 100.0% 51 °C 2400 MHz
CPU5 100.0% 51 °C 2400 MHz
CPU6 100.0% 49 °C 2400 MHz
CPU7 100.0% 49 °C 2400 MHz
CPU8 100.0% 49 °C 2400 MHz
CPU9 100.0% 49 °C 2400 MHz
CPU10 100.0% 50 °C 2400 MHz
CPU11 100.0% 50 °C 2400 MHz
CPU12 100.0% 51 °C 1600 MHz
CPU13 100.0% 51 °C 1600 MHz
CPU14 100.0% 51 °C 1600 MHz
CPU15 100.0% 51 °C 1600 MHz
CPU16 100.0% 54 °C 1600 MHz
CPU17 100.0% 53 °C 1600 MHz
CPU18 100.0% 53 °C 1600 MHz
CPU19 100.0% 53 °C 1600 MHz
---------------------------- CPU frequency scaling ----------------------------
Battery is: charging
Setting to use: "performance" governor
Setting to use: "performance" EPP
Total CPU usage: 100.0 %
Total system load: 8.06
Average temp. of all cores: 51.15 °C
High CPU load (load average: 8.06, 2.70, 1.74)
setting turbo boost: on
Is this a kernel problem of the intel_pstate
driver or am I configuring something wrong in NixOS?
Thanks for your help in advance.