optimizations
This commit is contained in:
parent
9340a365a7
commit
7b899e71f6
2 changed files with 12 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = false;
|
thermald.enable = false;
|
||||||
throttled.enable = true;
|
throttled.enable = true;
|
||||||
power-profiles-daemon.enable = true; # replacement for tlp and auto-cpufreq due to bugs
|
power-profiles-daemon.enable = false; # replacement for tlp and auto-cpufreq due to bugs
|
||||||
tlp = {
|
tlp = {
|
||||||
enable = false; # buggy and inconsistent with frequency scaling
|
enable = false; # buggy and inconsistent with frequency scaling
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -50,17 +50,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
auto-cpufreq = {
|
auto-cpufreq = {
|
||||||
enable = false; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
|
enable = true; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
|
||||||
settings = {
|
settings = {
|
||||||
charger = {
|
charger = {
|
||||||
governor = "performance";
|
governor = "performance";
|
||||||
energy_performance_preference = "performance";
|
energy_performance_preference = "performance";
|
||||||
turbo = "auto";
|
turbo = "auto";
|
||||||
|
platform_profile = "performance";
|
||||||
|
scaling_min_freq = 800000;
|
||||||
|
scaling_max_freq = 3600000;
|
||||||
};
|
};
|
||||||
battery = {
|
battery = {
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
energy_performance_preference = "power";
|
energy_performance_preference = "power";
|
||||||
|
platform_profile = "low-power";
|
||||||
turbo = "never";
|
turbo = "never";
|
||||||
|
scaling_min_freq = 400000;
|
||||||
|
scaling_max_freq = 1000000;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@
|
||||||
kernel.sysctl."vm.laptop_mode" = 5;
|
kernel.sysctl."vm.laptop_mode" = 5;
|
||||||
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
||||||
};
|
};
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue