power setting tweaks
This commit is contained in:
parent
4a06cf60dd
commit
5d2657ba3d
2 changed files with 27 additions and 11 deletions
|
|
@ -1,19 +1,35 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = true;
|
thermald.enable = false;
|
||||||
throttled.enable = true;
|
throttled.enable = true;
|
||||||
tlp = {
|
tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
TLP_DEFAULT_MODE = "BAL";
|
||||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
||||||
CPU_BOOST_ON_AC = "1";
|
|
||||||
|
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_PRF = "performance";
|
||||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
CPU_ENERGY_PERF_POLICY_ON_PRF = "performance";
|
||||||
CPU_BOOST_ON_BAT = "0";
|
CPU_BOOST_ON_PRF = "1";
|
||||||
CPU_MAX_FREQ_ON_BAT = "1500000";
|
PLATFORM_PROFILE_ON_PRF = "performance";
|
||||||
CPU_MIN_FREQ_ON_BAT = "400000";
|
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAL = "powersave";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAL = "balance_power";
|
||||||
|
CPU_BOOST_ON_BAL = "0";
|
||||||
|
PLATFORM_PROFILE_ON_BAL = "balanced";
|
||||||
|
|
||||||
|
CPU_SCALING_GOVERNOR_ON_SAV = "powersave";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_SAV = "power";
|
||||||
|
CPU_BOOST_ON_SAV = "0";
|
||||||
|
CPU_MAX_FREQ_ON_SAV = "1200000";
|
||||||
|
CPU_MIN_FREQ_ON_SAV = "400000";
|
||||||
|
CPU_MIN_PERF_ON_SAV = "40";
|
||||||
|
CPU_MAX_PERF_ON_SAV = "80";
|
||||||
|
PLATFORM_PROFILE_ON_SAV = "low-power";
|
||||||
|
MEM_SLEEP_ON_SAV = "deep";
|
||||||
|
|
||||||
|
WOL_DISABLE = "N";
|
||||||
|
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wwan";
|
||||||
|
DEVICES_TO_ENABLE_ON_STARTUP = "wifi";
|
||||||
|
|
||||||
START_CHARGE_THRESH_BAT0 = "80";
|
START_CHARGE_THRESH_BAT0 = "80";
|
||||||
STOP_CHARGE_THRESH_BAT0 = "85";
|
STOP_CHARGE_THRESH_BAT0 = "85";
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@
|
||||||
interval = 1;
|
interval = 1;
|
||||||
format = " {usage:2}% {avg_frequency}GHz";
|
format = " {usage:2}% {avg_frequency}GHz";
|
||||||
on-click = "auto-cpufreq-gtk";
|
on-click = "auto-cpufreq-gtk";
|
||||||
on-click-right = "pkexec systemctl restart thermald throttled && notify-send ${hostname} 'CPU Underclocking Restarted'";
|
on-click-right = "pkexec tlp power-saver && notify-send ${hostname} \"TLP set to: $(tlp-stat -s | grep 'Power profile' | awk -F '=' '{print $2}' | xargs)\"";
|
||||||
on-click-middle = "pkexec systemctl stop thermald throttled && notify-send ${hostname} 'CPU Underclocking Stopped'";
|
on-click-middle = "pkexec tlp start && notify-send ${hostname} \"TLP set to: $(tlp-stat -s | grep 'Power profile' | awk -F '=' '{print $2}' | xargs)\"";
|
||||||
};
|
};
|
||||||
"memory" = {
|
"memory" = {
|
||||||
states = {
|
states = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue