Comment 10 for bug 1568123

Revision history for this message
heynnema (heynnema) wrote :

Your patch has fixed the thermal-conf.xml file problem. Thanks!

If you could spend just a few minutes and look at my thermal-conf.xml file, I'd really appreciate it. The default didn't seem to work.

For these /sys entries:

/sys/class/thermal$ ll

lrwxrwxrwx 1 root root 0 Apr 29 07:55 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0/
lrwxrwxrwx 1 root root 0 Apr 29 07:55 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1/
lrwxrwxrwx 1 root root 0 Apr 29 07:55 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2/
lrwxrwxrwx 1 root root 0 Apr 29 07:55 cooling_device3 -> ../../devices/virtual/thermal/cooling_device3/
lrwxrwxrwx 1 root root 0 Apr 29 07:55 cooling_device4 -> ../../devices/virtual/thermal/cooling_device4/
lrwxrwxrwx 1 root root 0 Apr 29 07:55 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0/

cooling devices 0-3 are type processor
cooling device 4 is type intel_powerclamp
thermal zone 0 is type x86_pkg_temp

Here's my new thermal-conf.xml file:

$ more thermal-conf.xml

<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
        <Name>Toshiba Laptop</Name>
        <ProductName>*</ProductName>
        <Preference>QUIET</Preference>
        <ThermalSensors>
                <ThermalSensor>
                        <Type>x86_pkg_temp</Type>
                        <Path>/sys/class/thermal/thermal_zone0/</Path>
                        <AsyncCapable>1</AsyncCapable>
                </ThermalSensor>
        </ThermalSensors>
        <ThermalZones>
                <ThermalZone>
                        <Type>cpu package</Type>
                        <TripPoints>
                                <TripPoint>
                                        <SensorType>x86_pkg_temp</SensorType>
                                        <Temperature>59000</Temperature>
                                        <type>passive</type>
                                        <ControlType>PARALLEL</ControlType>
                                        <CoolingDevice>
                                                <index>0</index>
                                                <type>Processor</type>
                                                <influence> 10 </influence>
                                                <SamplingPeriod> 5 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>1</index>
                                                <type>Processor</type>
                                                <influence> 10 </influence>
                                                <SamplingPeriod> 5 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>2</index>
                                                <type>Processor</type>
                                                <influence> 10 </influence>
                                                <SamplingPeriod> 5 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>3</index>
                                                <type>Processor</type>
                                                <influence> 10 </influence>
                                                <SamplingPeriod> 5 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>4</index>
                                                <type>intel_powerclamp</type>
                                                <influence> 30 </influence>
                                                <SamplingPeriod> 10 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>5</index>
                                                <type>rapl_controller</type>
                                                <influence> 50 </influence>
                                                <SamplingPeriod> 10 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>6</index>
                                                <type>intel_pstate</type>
                                                <influence> 40 </influence>
                                                <SamplingPeriod> 10 </SamplingPeriod>
                                        </CoolingDevice>
                                        <CoolingDevice>
                                                <index>7</index>
                                                <type>rapl_controller_dram</type>
                                                <influence> 50 </influence>
                                                <SamplingPeriod> 10 </SamplingPeriod>
                                        </CoolingDevice>
                                </TripPoint>
                        </TripPoints>
                </ThermalZone>
        </ThermalZones>
</Platform>
</ThermalConfiguration>