aboutsummaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2022-02-15 11:44:10 -0700
committerKenny Ballou <kb@devnulllabs.io>2022-03-14 11:14:48 -0600
commitd08003a2cc32627cfba35080ab36e91f408232db (patch)
tree3b139be4c5a2974e4a2d40a6c4c43f1fec125f3b /systems
parent9cc0cf7bde65c15dcb7c90c9bdf7a6c01361fcde (diff)
downloaddotfiles-d08003a2cc32627cfba35080ab36e91f408232db.tar.gz
dotfiles-d08003a2cc32627cfba35080ab36e91f408232db.tar.xz
system: daeva: configure TLP daemon
Set some basic policies for TLP and CPU performance dependent on power source. Critically, set `pcie-aspm-on-bat` to `powersupersave` to enable proper sleep. The resume is still incredibly fast, but the power draw of `powersave` is too much to be useful. Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'systems')
-rw-r--r--systems/daeva.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/systems/daeva.scm b/systems/daeva.scm
index 1f839ff5..522d3df9 100644
--- a/systems/daeva.scm
+++ b/systems/daeva.scm
@@ -140,7 +140,18 @@
(extra-config (list %xorg-libinput-config))))
(service nix-service-type)
(service pcscd-service-type)
- (service tlp-service-type)
+ (service tlp-service-type
+ (tlp-configuration
+ (cpu-scaling-governor-on-ac (list "performance"))
+ (cpu-scaling-governor-on-bat (list "powersave"))
+ (cpu-scaling-min-freq-on-ac 2400000)
+ (cpu-scaling-min-freq-on-bat 1200000)
+ (cpu-boost-on-ac? #t)
+ (cpu-boost-on-bat? #f)
+ (energy-perf-policy-on-ac "performance")
+ (energy-perf-policy-on-bat "powersave")
+ (pcie-aspm-on-ac "performance")
+ (pcie-aspm-on-bat "powersupersave")))
(simple-service 'my-cron-jobs
mcron-service-type
(list garbage-collector-job