diff mbox series

[bug#42516] doc: Extend tlp-service-type example.

Message ID 20200724104307.30992-1-me@tobias.gr
State Accepted
Headers show
Series [bug#42516] doc: Extend tlp-service-type example. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

ashish.is--- via Guix-patches" via July 24, 2020, 10:43 a.m. UTC
* doc/guix.texi (Power Management Services): Demonstrate
tlp-configuration usage.

Suggested by rovanion on #guix.
---
 doc/guix.texi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Brett Gilio July 24, 2020, 10:55 p.m. UTC | #1
Tobias Geerinckx-Rice <me@tobias.gr> writes:

>  @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 passing a valid @code{tlp-configuration} as its value:
>  @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

I would replace "as its value:" with "to the service type:", so it reads
"... but you can tweak them to your heart's content by passing a valid
tlp-configuration to the service type:"

Otherwise, it looks great to me!

Brett Gilio
Marius Bakke July 25, 2020, 5:21 p.m. UTC | #2
Brett Gilio <brettg@gnu.org> writes:

> Tobias Geerinckx-Rice <me@tobias.gr> writes:
>
>>  @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 passing a valid @code{tlp-configuration} as its value:
>>  @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
>
> I would replace "as its value:" with "to the service type:", so it reads
> "... but you can tweak them to your heart's content by passing a valid
> tlp-configuration to the service type:"

Something about "tweak to your heart's content" rubs me the wrong way,
though I can't really explain why.  It feels like the manual is
passive-aggressively mocking me for trying to understand how to
configure the thing.  But that's probably just me.  :-)
ashish.is--- via Guix-patches" via July 25, 2020, 6:45 p.m. UTC | #3
Brett,

Brett Gilio 写道:
>> -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 passing a valid @code{tlp-configuration} as its 
>> value:

[…]

> I would replace "as its value:" with "to the service type:", so 
> it reads
> "... but you can tweak them to your heart's content by passing a 
> valid
> tlp-configuration to the service type:"

Ding.  You picked up on the same niggle that bugged me — both in 
the original & here.  I thought I'd just stared at it for too 
long.

‘Value’ is a reference to the terminology used in (gnu services). 
‘To the service type’ sounds less accurate.  I find the sentence 
close to clunky is it is; what about a short and sweet:

+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}:
            ^^^^^^

Now I've definitely stared at this for too long.  How typical for 
a prose patch :-)

> Otherwise, it looks great to me!

Thanks,

T G-R
ashish.is--- via Guix-patches" via July 25, 2020, 7:54 p.m. UTC | #4
Marius Bakke 写道:
> passive-aggressively mocking me

Wow.

Kind regards,

T G-R
Marius Bakke July 25, 2020, 9 p.m. UTC | #5
Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Marius Bakke 写道:
>> passive-aggressively mocking me
>
> Wow.

I know, right.  It does not make any sense.  So LGTM rationally...
ashish.is--- via Guix-patches" via July 29, 2020, 1:23 p.m. UTC | #6
Marius Bakke 写道:
> Tobias Geerinckx-Rice <me@tobias.gr> writes:
>> Wow.
>
> I know, right.  It does not make any sense.  So LGTM 
> rationally...

I was so #attacked.  Pushed as 
cdc2e2bba959ec3afa7de6f9a867c862982e079a.

Thank you Brett & Marius!

T G-R
diff mbox series

Patch

diff --git a/doc/guix.texi b/doc/guix.texi
index fb1c66dcf4..56085865fa 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23490,17 +23490,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 passing a valid @code{tlp-configuration} as its value:
 @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