services: tlp: Add config for CPU energy performance policy.

* gnu/services/pm.scm (tlp-configuration): Add cpu-energy-perf-policy-on-ac
and cpu-energy-perf-policy-on-bat.
* doc/guix.texi (Power Management Services): Document
cpu-energy-perf-policy-on-bat and cpu-energy-perf-policy-on-ac.

Change-Id: Ieddf949a325c317abffce00a4f1d047175342d78
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Ryan Barber 2024-03-14 21:33:55 -07:00 committed by Nicolas Goaziou
parent 82b8767456
commit b8645fc0bf
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D
2 changed files with 25 additions and 1 deletions

View file

@ -443,7 +443,17 @@ already excluded by the driver or via @code{usb-blacklist-wwan?}.")
(restore-device-state-on-startup?
(boolean #f)
"Restore radio device state (bluetooth, wifi, wwan) from previous
shutdown on system startup."))
shutdown on system startup.")
(cpu-energy-perf-policy-on-ac
maybe-string
"Set CPU energy/performance policy when on AC mode. Possible values are
performance, balance_performance, default, balance_power and power.")
(cpu-energy-perf-policy-on-bat
maybe-string
"Set CPU energy/performance policy when on BAT mode. Possible values are
performance, balance_performance, default, balance_power and power."))
(define (tlp-shepherd-service config)