From 58e0ba35eb40723f92dbd718fcb2ea0847659c98 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 18 Apr 2025 15:15:32 +0200 Subject: [PATCH] feat: use tlp instead of power profiles The amdgpu kernel argument is necessary, because otherwise there are frequent freezes! --- config.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config.scm b/config.scm index 4e72061..f841ee2 100644 --- a/config.scm +++ b/config.scm @@ -107,7 +107,14 @@ (service cups-service-type (cups-configuration (web-interface? #t))) - (service power-profiles-daemon-service-type) + ;; (service power-profiles-daemon-service-type) + (service tlp-service-type + (tlp-configuration + (tlp-default-mode "BAT") + (stop-charge-thresh-bat0 80) + (start-charge-thresh-bat0 70) + (cpu-energy-perf-policy-on-ac "balance_power") + (cpu-energy-perf-policy-on-bat "power"))) (service screen-locker-service-type (screen-locker-configuration @@ -124,6 +131,9 @@ (define %ruther/base-laptop-os (operating-system (kernel linux) + (kernel-arguments + (cons* "amdgpu.dcdebugmask=0x10" + %default-kernel-arguments)) (initrd microcode-initrd) (firmware (cons* linux-firmware %base-firmware)) -- 2.49.0