Adding a FAN to thermal-conf.xml
by John Hupp
Thermald looks like just what I need to fix this problem: A Lenovo 3000
C200 laptop (running Lubuntu 14.04 x86 desktop) with only a critical and
a passive ACPI trip point, and the latter does not trip until 87C.
I want it to trip first at an active point to be added to the
configuration, and then apply passive methods sequentially.
I have studied
https://wiki.ubuntu.com/Kernel/PowerManagement/ThermalIssues and
http://manpages.ubuntu.com/manpages/trusty/en/man5/thermal-conf.xml.5.html
and https://01.org/linux-thermal-daemon, but I don't understand with any
certainty how to add the FAN to the configuration.
Q#1: I see that <ThermalSensors>, <ThermalZones> and <CoolingDevices>
are defined alongside each other. Is it the case that sensors and
cooling devices are to be first defined not in <ThermalZones>, but in
<ThermalSensors> and <CoolingDevices>, and then referenced inside a
<ThermalZone>:<CoolingDevice> merely by its <type>?
Q#2: FAN is not currently represented anywhere in /sys/class/thermal.
What would be a good <Path> for this cooling device? (I don't know if
thermald supports writing to the thermal sysfs, or even it that's
desirable.)
If you would *really* indulge a newbie, edit my thermal-conf.xml
contents below to something that should work with the fan!
------------------------------------------------------------------------
Following is my default thermal-conf.xml (with the example section deleted)
<?xml version="1.0"?>
<!--
use "man thermal-conf.xml" for details
-->
<!-- BEGIN -->
<ThermalConfiguration>
<Platform>
<Name>Generic X86 Laptop Device</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalSensors>
<ThermalSensor>
<Type>TSKN</Type>
<AsyncCapable>1</AsyncCapable>
</ThermalSensor>
</ThermalSensors>
<ThermalZones>
<ThermalZone>
<Type>SKIN</Type>
<TripPoints>
<TripPoint>
<SensorType>TSKN</SensorType>
<Temperature>44000</Temperature>
<type>passive</type>
<ControlType>SEQUENTIAL</ControlType>
<CoolingDevice>
<index>1</index>
<type>rapl_controller</type>
<influence> 100 </influence>
<SamplingPeriod> 16 </SamplingPeriod>
</CoolingDevice>
<CoolingDevice>
<index>2</index>
<type>intel_powerclamp</type>
<influence> 100 </influence>
<SamplingPeriod> 12 </SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
</ThermalZones>
</Platform>
</ThermalConfiguration>
<!-- END -->
8 years