@@ -14,8 +14,8 @@ cpu.turbo = { if = "?turbo-available", then = false }
1414[[rule ]]
1515name = " critical-battery-preservation"
1616if.all = [
17- " ?discharging" ,
18- { is-less-than = 0.3 , value = " %power-supply-charge" },
17+ " ?discharging" ,
18+ { is-less-than = 0.3 , value = " %power-supply-charge" },
1919]
2020priority = 90
2121
@@ -30,38 +30,50 @@ power.platform-profile = { if.is-platform-profile-available = "low-power", then
3030[[rule ]]
3131name = " high-load-performance-sustainance"
3232if.all = [
33- { is-more-than = 0.8 , value = " %cpu-usage" },
34- { is-less-than = 30.0 , value = " $cpu-idle-seconds" },
35- { is-less-than = 75.0 , value = " $cpu-temperature" },
33+ { is-more-than = 0.8 , value = " %cpu-usage" },
34+ { is-less-than = 30.0 , value = " $cpu-idle-seconds" },
35+ { is-less-than = 75.0 , value = " $cpu-temperature" },
3636]
3737priority = 80
3838
39- cpu.energy-perf-bias = { if.all = [{ not.is-driver-loaded = " intel_pstate" }, { is-energy-perf-bias-available = " performance" }], then = " performance" }
40- cpu.energy-performance-preference = { if.all = [{ not.is-driver-loaded = " intel_pstate" }, { is-energy-performance-preference-available = " performance" }], then = " performance" }
39+ cpu.energy-perf-bias = { if.all = [
40+ { not.is-driver-loaded = " intel_pstate" },
41+ { is-energy-perf-bias-available = " performance" },
42+ ], then = " performance" }
43+ cpu.energy-performance-preference = { if.all = [
44+ { not.is-driver-loaded = " intel_pstate" },
45+ { is-energy-performance-preference-available = " performance" },
46+ ], then = " performance" }
4147cpu.governor = { if.is-governor-available = " performance" , then = " performance" }
4248cpu.turbo = { if = " ?turbo-available" , then = true }
4349
4450# Performance mode when not discharging
4551[[rule ]]
4652name = " plugged-in-performance"
4753if.all = [
48- { not = " ?discharging" },
49- { is-more-than = 0.1 , value = " %cpu-usage" },
50- { is-less-than = 80.0 , value = " $cpu-temperature" },
54+ { not = " ?discharging" },
55+ { is-more-than = 0.1 , value = " %cpu-usage" },
56+ { is-less-than = 80.0 , value = " $cpu-temperature" },
5157]
5258priority = 70
5359
54- cpu.energy-perf-bias = { if.all = [{ not.is-driver-loaded = " intel_pstate" }, { is-energy-perf-bias-available = " balance-performance" }], then = " balance-performance" }
55- cpu.energy-performance-preference = { if.all = [{ not.is-driver-loaded = " intel_pstate" }, { is-energy-performance-preference-available = " performance" }], then = " performance" }
60+ cpu.energy-perf-bias = { if.all = [
61+ { not.is-driver-loaded = " intel_pstate" },
62+ { is-energy-perf-bias-available = " balance-performance" },
63+ ], then = " balance-performance" }
64+ cpu.energy-performance-preference = { if.all = [
65+ { not.is-driver-loaded = " intel_pstate" },
66+ { is-energy-performance-preference-available = " performance" },
67+ ], then = " performance" }
5668cpu.governor = { if.is-governor-available = " performance" , then = " performance" }
5769cpu.turbo = { if = " ?turbo-available" , then = true }
5870
5971# Moderate performance for medium load
6072[[rule ]]
6173name = " moderate-load-balanced-performance"
6274if.all = [
63- { is-more-than = 0.4 , value = " %cpu-usage" },
64- { is-less-than = 0.8 , value = " %cpu-usage" },
75+ { is-more-than = 0.4 , value = " %cpu-usage" },
76+ { is-less-than = 0.8 , value = " %cpu-usage" },
6577]
6678priority = 60
6779
@@ -73,8 +85,8 @@ cpu.governor = { if.is-governor-available = "powersave", then = "powersave" }
7385[[rule ]]
7486name = " low-activity-power-saving"
7587if.all = [
76- { is-less-than = 0.2 , value = " %cpu-usage" },
77- { is-more-than = 60.0 , value = " $cpu-idle-seconds" },
88+ { is-less-than = 0.2 , value = " %cpu-usage" },
89+ { is-more-than = 60.0 , value = " $cpu-idle-seconds" },
7890]
7991priority = 50
8092
@@ -99,8 +111,8 @@ cpu.turbo = { if = "?turbo-available", then = false }
99111[[rule ]]
100112name = " discharging-battery-conservation"
101113if.all = [
102- " ?discharging" ,
103- { is-less-than = 0.5 , value = " %power-supply-charge" },
114+ " ?discharging" ,
115+ { is-less-than = 0.5 , value = " %power-supply-charge" },
104116]
105117priority = 30
106118
0 commit comments