mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 17:24:35 +05:30
Testing if auto-cpufreq is system freeze culprit
This commit is contained in:
parent
2774c0bc08
commit
5af93d2b2d
|
@ -1,18 +1,31 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ auto-cpufreq ];
|
#services.auto-cpufreq.enable = true;
|
||||||
systemd.services.auto-cpufreq.enable = true;
|
#services.auto-cpufreq.settings = {
|
||||||
services.auto-cpufreq.enable = true;
|
# charger = {
|
||||||
services.auto-cpufreq.settings = {
|
# governor = "performance";
|
||||||
charger = {
|
# turbo = "auto";
|
||||||
governor = "performance";
|
# };
|
||||||
turbo = "auto";
|
# battery = {
|
||||||
};
|
# governor = "schedutil";
|
||||||
battery = {
|
# scaling_max_freq = 3800000;
|
||||||
governor = "schedutil";
|
# turbo = "never";
|
||||||
scaling_max_freq = 3800000;
|
# };
|
||||||
turbo = "never";
|
#};
|
||||||
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||||
|
|
||||||
|
CPU_MIN_PERF_ON_AC = 0;
|
||||||
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
|
CPU_MAX_PERF_ON_BAT = 50;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue