GNU bug report logs - #69808
[PATCH] services: tlp: Add config for CPU energy performance policy.

Previous Next

Package: guix-patches;

Reported by: Ryan Barber <rfb <at> skyscraper.nu>

Date: Fri, 15 Mar 2024 05:10:03 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69808 in the body.
You can then email your comments to 69808 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#69808; Package guix-patches. (Fri, 15 Mar 2024 05:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Barber <rfb <at> skyscraper.nu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 15 Mar 2024 05:10:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ryan Barber <rfb <at> skyscraper.nu>
To: guix-patches <at> gnu.org
Cc: Ryan Barber <rfb <at> skyscraper.nu>
Subject: [PATCH] services: tlp: Add config for CPU energy performance policy.
Date: Thu, 14 Mar 2024 21:33:55 -0700
* 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
---
 doc/guix.texi       | 12 ++++++++++++
 gnu/services/pm.scm | 12 +++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 796ac0028f..7c1949f267 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -35332,6 +35332,18 @@ Defaults to @samp{#f}.
 
 @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 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 are
+performance, balance_performance, default, balance_power and power.
+
+@end deftypevr
+
 @cindex thermald
 @cindex CPU frequency scaling with thermald
 @subsubheading Thermald daemon
diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
index 3daf484cc1..62aee055e3 100644
--- a/gnu/services/pm.scm
+++ b/gnu/services/pm.scm
@@ -378,7 +378,17 @@ (define-configuration tlp-configuration
   (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)

base-commit: efe62c5ed38a09d7467a6c1c3d5f509d284ad290
-- 
2.41.0





Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Tue, 04 Mar 2025 07:35:01 GMT) Full text and rfc822 format available.

Notification sent to Ryan Barber <rfb <at> skyscraper.nu>:
bug acknowledged by developer. (Tue, 04 Mar 2025 07:35:02 GMT) Full text and rfc822 format available.

Message #10 received at 69808-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: 69808-done <at> debbugs.gnu.org
Cc: Ryan Barber <rfb <at> skyscraper.nu>
Subject: Re: [PATCH] services: tlp: Add config for CPU energy performance
 policy.
Date: Tue, 04 Mar 2025 08:34:09 +0100
Hello,

> * 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.

Applied! Thank you! (And sorry for the delay.)

Regards,
-- 
Nicolas Goaziou






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Apr 2025 11:24:34 GMT) Full text and rfc822 format available.

This bug report was last modified 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.