Message ID | 20210913110030.1817-1-attila@lendvai.name |
---|---|
State | Accepted |
Headers | show |
Series | [bug#50565] services: tlp: added start-charge-thresh-bat0 & co. to the config | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
Hello, > + (start-charge-thresh-bat0 > + (maybe-non-negative-integer 'disabled) > + "Percentage when battery 0 should begin charging.") > + > + (stop-charge-thresh-bat0 > + (maybe-non-negative-integer 'disabled) > + "Percentage when battery 0 should stop charging.") > + > + (start-charge-thresh-bat1 > + (maybe-non-negative-integer 'disabled) > + "Percentage when battery 1 should begin charging.") > + > + (stop-charge-thresh-bat1 > + (maybe-non-negative-integer 'disabled) > + "Percentage when battery 1 should stop charging.") It would be nice if you could document those new fields in the "TLP daemon" section of the doc/guix.texi file. Note that the commit message should also respect the conventions specified here: https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html. Could you send an updated version :)? Thanks, Mathieu
I’ve pushed this after very minor changes (double spacing in the documentation, and present tense in the commit message). Thank you!
diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm index 256c6a7fa7..bf3d8004c7 100644 --- a/gnu/services/pm.scm +++ b/gnu/services/pm.scm @@ -253,6 +253,22 @@ default, performance, powersave.") (string "powersave") "Same as @code{pcie-aspm-ac} but on BAT mode.") + (start-charge-thresh-bat0 + (maybe-non-negative-integer 'disabled) + "Percentage when battery 0 should begin charging.") + + (stop-charge-thresh-bat0 + (maybe-non-negative-integer 'disabled) + "Percentage when battery 0 should stop charging.") + + (start-charge-thresh-bat1 + (maybe-non-negative-integer 'disabled) + "Percentage when battery 1 should begin charging.") + + (stop-charge-thresh-bat1 + (maybe-non-negative-integer 'disabled) + "Percentage when battery 1 should stop charging.") + (radeon-power-profile-on-ac (string "high") "Radeon graphics clock speed level. Alternatives are