Skip to content

Commit 4e921c9

Browse files
[autofix.ci] apply automated fixes
1 parent b3cf063 commit 4e921c9

1 file changed

Lines changed: 30 additions & 18 deletions

File tree

modules/programs/watt/config/config.toml

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ cpu.turbo = { if = "?turbo-available", then = false }
1414
[[rule]]
1515
name = "critical-battery-preservation"
1616
if.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
]
2020
priority = 90
2121

@@ -30,38 +30,50 @@ power.platform-profile = { if.is-platform-profile-available = "low-power", then
3030
[[rule]]
3131
name = "high-load-performance-sustainance"
3232
if.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
]
3737
priority = 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" }
4147
cpu.governor = { if.is-governor-available = "performance", then = "performance" }
4248
cpu.turbo = { if = "?turbo-available", then = true }
4349

4450
# Performance mode when not discharging
4551
[[rule]]
4652
name = "plugged-in-performance"
4753
if.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
]
5258
priority = 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" }
5668
cpu.governor = { if.is-governor-available = "performance", then = "performance" }
5769
cpu.turbo = { if = "?turbo-available", then = true }
5870

5971
# Moderate performance for medium load
6072
[[rule]]
6173
name = "moderate-load-balanced-performance"
6274
if.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
]
6678
priority = 60
6779

@@ -73,8 +85,8 @@ cpu.governor = { if.is-governor-available = "powersave", then = "powersave" }
7385
[[rule]]
7486
name = "low-activity-power-saving"
7587
if.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
]
7991
priority = 50
8092

@@ -99,8 +111,8 @@ cpu.turbo = { if = "?turbo-available", then = false }
99111
[[rule]]
100112
name = "discharging-battery-conservation"
101113
if.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
]
105117
priority = 30
106118

0 commit comments

Comments
 (0)