aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guix.texi28
-rw-r--r--gnu/services/pm.scm16
2 files changed, 44 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 1a6c364ac8..b10f0d085b 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -29898,6 +29898,34 @@ Defaults to @samp{"powersave"}.
@end deftypevr
+@deftypevr {@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat0
+Percentage when battery 0 should begin charging. Only supported on some laptops.
+
+Defaults to @samp{disabled}.
+
+@end deftypevr
+
+@deftypevr {@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat0
+Percentage when battery 0 should stop charging. Only supported on some laptops.
+
+Defaults to @samp{disabled}.
+
+@end deftypevr
+
+@deftypevr {@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat1
+Percentage when battery 1 should begin charging. Only supported on some laptops.
+
+Defaults to @samp{disabled}.
+
+@end deftypevr
+
+@deftypevr {@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat1
+Percentage when battery 1 should stop charging. Only supported on some laptops.
+
+Defaults to @samp{disabled}.
+
+@end deftypevr
+
@deftypevr {@code{tlp-configuration} parameter} string radeon-power-profile-on-ac
Radeon graphics clock speed level. Alternatives are low, mid, high,
auto, default.
diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
index d91f2b69ce..3da3c0b961 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