From b044c92cec18ddc53ba0f5d9dbdeef109efb83db Mon Sep 17 00:00:00 2001 From: anemofilia Date: Sun, 27 Aug 2023 14:20:46 -0300 Subject: [PATCH] feat: add tlp-service and thermald-service in system declaration to improve battery life --- buer.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/buer.scm b/buer.scm index 513eb12..464bb11 100644 --- a/buer.scm +++ b/buer.scm @@ -22,6 +22,7 @@ #|D|# desktop #|M|# mcron #|N|# networking + #|P|# pm #|S|# sound sysctl) (use-package-modules @@ -214,6 +215,26 @@ (dhcp-client-configuration (interfaces 'all))) + #|Power management services|# + (service tlp-service-type + (tlp-configuration + (cpu-scaling-governor-on-ac '("performance")) + (cpu-scaling-governor-on-bat '("powersave")) + (cpu-scaling-min-freq-on-ac 1500000) + (cpu-scaling-max-freq-on-ac 3500000) + (cpu-scaling-min-freq-on-bat 1000000) + (cpu-scaling-max-freq-on-bat 3000000) + (cpu-min-perf-on-ac 0) + (cpu-max-perf-on-ac 100) + (cpu-min-perf-on-bat 0) + (cpu-max-perf-on-bat 40) + (cpu-boost-on-ac? #t) + (cpu-boost-on-bat? #f) + (nmi-watchdog? #t) + (start-charge-thresh-bat0 70) + (stop-charge-thresh-bat0 90))) + (service thermald-service-type) + #|Thinkfan services|# (simple-service 'thinkfan-config etc-service-type `(("modprobe.d/thinkfan.conf" ,file:thinkfan-modprobe-config)