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

@ -36837,6 +36837,20 @@ Defaults to @samp{#f}.
@end deftypevr @end deftypevr
@deftypevr {@code{tlp-configuration} parameter} string cpu-energy-perf-policy-on-ac
Set CPU energy/performance policy when on AC mode. Possible values, in
order of increasing power saving, are performance, balance_performance,
default, balance_power and power.
@end deftypevr
@deftypevr {@code{tlp-configuration} parameter} string cpu-energy-perf-policy-on-bat
Set CPU energy/performance policy when on BAT mode. Possible values, in
order of increasing power saving, are performance, balance_performance,
default, balance_power and power.
@end deftypevr
@cindex thermald @cindex thermald
@cindex CPU frequency scaling with thermald @cindex CPU frequency scaling with thermald
@subsubheading Thermald daemon @subsubheading Thermald daemon

View file

@ -443,7 +443,17 @@ already excluded by the driver or via @code{usb-blacklist-wwan?}.")
(restore-device-state-on-startup? (restore-device-state-on-startup?
(boolean #f) (boolean #f)
"Restore radio device state (bluetooth, wifi, wwan) from previous "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) (define (tlp-shepherd-service config)