all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
@ 2020-07-24 10:43 Tobias Geerinckx-Rice via Guix-patches via
  2020-07-24 22:55 ` Brett Gilio
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-07-24 10:43 UTC (permalink / raw)
  To: 42516

* 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(-)

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
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
  2020-07-24 10:43 [bug#42516] [PATCH] doc: Extend tlp-service-type example Tobias Geerinckx-Rice via Guix-patches via
@ 2020-07-24 22:55 ` Brett Gilio
  2020-07-25 17:21   ` Marius Bakke
  2020-07-25 18:45   ` [bug#42516] " Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 2 replies; 7+ messages in thread
From: Brett Gilio @ 2020-07-24 22:55 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 42516

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
  2020-07-24 22:55 ` Brett Gilio
@ 2020-07-25 17:21   ` Marius Bakke
  2020-07-25 19:54     ` Tobias Geerinckx-Rice via Guix-patches via
  2020-07-25 18:45   ` [bug#42516] " Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2020-07-25 17:21 UTC (permalink / raw)
  To: Brett Gilio, Tobias Geerinckx-Rice; +Cc: 42516

[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]

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.  :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
  2020-07-24 22:55 ` Brett Gilio
  2020-07-25 17:21   ` Marius Bakke
@ 2020-07-25 18:45   ` Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-07-25 18:45 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 42516

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
  2020-07-25 17:21   ` Marius Bakke
@ 2020-07-25 19:54     ` Tobias Geerinckx-Rice via Guix-patches via
  2020-07-25 21:00       ` Marius Bakke
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-07-25 19:54 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 42516, Brett Gilio

[-- Attachment #1: Type: text/plain, Size: 93 bytes --]

Marius Bakke 写道:
> passive-aggressively mocking me

Wow.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#42516] [PATCH] doc: Extend tlp-service-type example.
  2020-07-25 19:54     ` Tobias Geerinckx-Rice via Guix-patches via
@ 2020-07-25 21:00       ` Marius Bakke
  2020-07-29 13:23         ` bug#42516: " Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2020-07-25 21:00 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 42516, Brett Gilio

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

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...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42516: [PATCH] doc: Extend tlp-service-type example.
  2020-07-25 21:00       ` Marius Bakke
@ 2020-07-29 13:23         ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-07-29 13:23 UTC (permalink / raw)
  To: Marius Bakke; +Cc: Brett Gilio, 42516-done

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-29 13:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-24 10:43 [bug#42516] [PATCH] doc: Extend tlp-service-type example Tobias Geerinckx-Rice via Guix-patches via
2020-07-24 22:55 ` Brett Gilio
2020-07-25 17:21   ` Marius Bakke
2020-07-25 19:54     ` Tobias Geerinckx-Rice via Guix-patches via
2020-07-25 21:00       ` Marius Bakke
2020-07-29 13:23         ` bug#42516: " Tobias Geerinckx-Rice via Guix-patches via
2020-07-25 18:45   ` [bug#42516] " Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.