summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-07-24 11:57:43 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-07-29 15:14:57 +0200
commitcdc2e2bba959ec3afa7de6f9a867c862982e079a (patch)
treedc5736b012d406729a02c7f53e2dc6ade360f4f3 /doc
parent6fdd40b35f6b7b01a121eb5ee68db82edc3ca7c4 (diff)
doc: Extend tlp-service-type example.
* doc/guix.texi (Power Management Services): Demonstrate tlp-configuration usage. Suggested by rovanion on #guix.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 74c7417174..b2030e68cf 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23626,17 +23626,17 @@ source is detected. More information can be found at
@uref{https://linrunner.de/en/tlp/tlp.html, TLP home page}.
@deffn {Scheme Variable} tlp-service-type
-The service type for the TLP tool. Its value should be a valid
-TLP configuration (see below). To use the default settings, simply
-write:
+The service type for the TLP tool. The default settings are optimised
+for battery life on most systems, but you can tweak them to your heart's
+content by adding a valid @code{tlp-configuration}:
@lisp
-(service tlp-service-type)
+(service tlp-service-type
+ (tlp-configuration
+ (cpu-scaling-governor-on-ac (list "performance"))
+ (sched-powersave-on-bat? #t)))
@end lisp
@end deffn
-By default TLP does not need much configuration but most TLP parameters
-can be tweaked using @code{tlp-configuration}.
-
Each parameter definition is preceded by its type; for example,
@samp{boolean foo} indicates that the @code{foo} parameter
should be specified as a boolean. Types starting with