services: thermald: Add 'adaptive?' field.
* gnu/services/pm.scm (<thermald-configuration>): Add 'adaptive?' field. (thermald-shepherd-service): Use it to pass --adaptive to thermald. * doc/guix.texi (Power Management Services): Document the 'adaptive?' field of 'thermald-configuration'.
This commit is contained in:
parent
01d433250f
commit
10d865aa92
@ -30687,6 +30687,10 @@ of processors and preventing overheating.
|
||||
Data type representing the configuration of @code{thermald-service-type}.
|
||||
|
||||
@table @asis
|
||||
@item @code{adaptive?} (default: @code{#f})
|
||||
Use @acronym{DPTF, Dynamic Power and Thermal Framework} adaptive tables
|
||||
when present.
|
||||
|
||||
@item @code{ignore-cpuid-check?} (default: @code{#f})
|
||||
Ignore cpuid check for supported CPU models.
|
||||
|
||||
|
@ -435,6 +435,8 @@ shutdown on system startup."))
|
||||
(define-record-type* <thermald-configuration>
|
||||
thermald-configuration make-thermald-configuration
|
||||
thermald-configuration?
|
||||
(adaptive? thermald-adaptive? ;boolean
|
||||
(default #f))
|
||||
(ignore-cpuid-check? thermald-ignore-cpuid-check? ;boolean
|
||||
(default #f))
|
||||
(thermald thermald-thermald ;file-like
|
||||
@ -448,6 +450,9 @@ shutdown on system startup."))
|
||||
(start #~(make-forkexec-constructor
|
||||
'(#$(file-append (thermald-thermald config) "/sbin/thermald")
|
||||
"--no-daemon"
|
||||
#$@(if (thermald-adaptive? config)
|
||||
'("--adaptive")
|
||||
'())
|
||||
#$@(if (thermald-ignore-cpuid-check? config)
|
||||
'("--ignore-cpuid-check")
|
||||
'()))))
|
||||
|
Loading…
Reference in New Issue
Block a user