summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2024-07-06 21:44:18 -0600
committerbd <bdunahu@operationnull.com>2024-07-06 21:46:30 -0600
commitd1b3440d38a3bea44b8f0e8c63cd3cf2ec0a22d8 (patch)
tree127ffb07da9d3eb27d1d30e5927ccf443592a719
parent96ff90e316961089749f4a25f15e25c18c396fe4 (diff)
Turn on all powersaving options
-rw-r--r--.config/guix/garm.scm15
-rw-r--r--.config/guix/modules/base.scm4
-rw-r--r--.config/guix/modules/dwm/config.def.h2
-rw-r--r--.config/guix/modules/ymir.scm2
4 files changed, 16 insertions, 7 deletions
diff --git a/.config/guix/garm.scm b/.config/guix/garm.scm
index 3c9cd82..7ffdb3b 100644
--- a/.config/guix/garm.scm
+++ b/.config/guix/garm.scm
@@ -57,8 +57,19 @@
`((,username ,home)))
,(service tlp-service-type
(tlp-configuration
- (start-charge-thresh-bat0 75)
- (stop-charge-thresh-bat0 80)))))
+ (cpu-scaling-governor-on-ac (list "powersave"))
+ (cpu-scaling-governor-on-bat (list "powersave"))
+ (energy-perf-policy-on-ac "powersave")
+ (energy-perf-policy-on-bat "powersave")
+ (pcie-aspm-on-ac "powersave")
+ (pcie-aspm-on-bat "powersave")
+ (sched-powersave-on-bat? #t)
+ (sched-powersave-on-ac? #t)
+ (sata-linkpwr-on-ac "min_power")
+ (sata-linkpwr-on-bat "min_power")
+ (start-charge-thresh-bat0 60)
+ (stop-charge-thresh-bat0 80)))
+ ,(service thermald-service-type)))
(mapped-devices (list (mapped-device
(source (uuid "1c6a4f4d-2494-4b83-965c-1bcfdbf8a0b8"))
diff --git a/.config/guix/modules/base.scm b/.config/guix/modules/base.scm
index 704f0ec..5bc7d0f 100644
--- a/.config/guix/modules/base.scm
+++ b/.config/guix/modules/base.scm
@@ -125,8 +125,6 @@
,(service elogind-service-type
(elogind-configuration
(handle-power-key 'hibernate)
- ;; (idle-action-seconds (* 5 60))
- ;; (idle-action 'suspend)
))
,(service dbus-root-service-type)
@@ -138,7 +136,7 @@
(permit-root-login 'prohibit-password)
(password-authentication? #f)))
,(service tor-service-type)
- ,(service transmission-daemon-service-type)
+ ;; ,(service transmission-daemon-service-type)
,@%base-services))
diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h
index a96eb91..dc62826 100644
--- a/.config/guix/modules/dwm/config.def.h
+++ b/.config/guix/modules/dwm/config.def.h
@@ -39,7 +39,7 @@ static const Rule rules[] = {
{ "Zathura", NULL, NULL, 1 << 2, 0, -1 },
{ "libreoffice",NULL, NULL, 1 << 3, 0, -1 },
{ "Gimp", NULL, NULL, 1 << 4, 1, -1 },
- { "nsxiv", NULL, NULL, 1 << 6, 0, -1 },
+ { "Nsxiv", NULL, NULL, 1 << 6, 0, -1 },
{ "mpv", NULL, NULL, 1 << 7, 0, -1 },
};
diff --git a/.config/guix/modules/ymir.scm b/.config/guix/modules/ymir.scm
index ecc3c7e..cc1c856 100644
--- a/.config/guix/modules/ymir.scm
+++ b/.config/guix/modules/ymir.scm
@@ -19,7 +19,7 @@
(home-directory (string-append "/home/" username))
(supplementary-groups '("audio"
"netdev"
- "transmission"
+ ;; "transmission"
"video"
"wheel"))))