services: tlp: Add config variables for battery charging.
* gnu/services/pm.scm (tlp-configuration): Add start-charge-thresh-bat0, stop-charge-thresh-bat0, start-charge-thresh-bat1, stop-charge-thresh-bat1. * doc/guix.texi (Power Management Services): Document them. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
parent
f906d4911e
commit
67f28faf42
2 changed files with 44 additions and 0 deletions
|
@ -29898,6 +29898,34 @@ Defaults to @samp{"powersave"}.
|
||||||
|
|
||||||
@end deftypevr
|
@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
|
@deftypevr {@code{tlp-configuration} parameter} string radeon-power-profile-on-ac
|
||||||
Radeon graphics clock speed level. Alternatives are low, mid, high,
|
Radeon graphics clock speed level. Alternatives are low, mid, high,
|
||||||
auto, default.
|
auto, default.
|
||||||
|
|
|
@ -253,6 +253,22 @@ default, performance, powersave.")
|
||||||
(string "powersave")
|
(string "powersave")
|
||||||
"Same as @code{pcie-aspm-ac} but on BAT mode.")
|
"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
|
(radeon-power-profile-on-ac
|
||||||
(string "high")
|
(string "high")
|
||||||
"Radeon graphics clock speed level. Alternatives are
|
"Radeon graphics clock speed level. Alternatives are
|
||||||
|
|
Reference in a new issue