intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
539 stars 117 forks source link

thermal-conf.xml invalid configuration #412

Closed axet closed 12 months ago

axet commented 1 year ago

Hello!

man thermal-conf.xml suggesting invalid configuration:

       <?xml version="1.0"?>
       <ThermalConfiguration>
         <Platform>
           <Name>Override CPU default passive</Name>
           <ProductName>*</ProductName>
           <Preference>QUIET</Preference>
           <ThermalZones>
             <ThermalZone>
               <Type>cpu</Type>
               <TripPoints>
                 <TripPoint>
                   <Temperature>86000</Temperature>
                   <type>passive</type>
                 </TripPoint>
               </TripPoints>
             </ThermalZone>
           </ThermalZones>
         </Platform>
       </ThermalConfiguration>

producing:

[1691601647][INFO]Product Name matched [wildcard]
[1691601647][ERR]XML zone: invalid sensor type 
[1691601647][WARN]Zone update failed: unable to bind 
[1691601647][INFO]
spandruvada commented 1 year ago

You may not have cpu as a zone. It may be something else for CPU. You mane have instead equivalent: "B0D4" or "B0DB" or "TCPU".

If you run with --loglevel=info it will print all sensors and zones it discovered.

axet commented 1 year ago
root@axet-laptop:/home/axet# thermald --no-daemon --loglevel=info 
[1691722054][INFO]RAPL domain count 0
[1691722054][INFO]RAPL domain count 1
[1691722054][INFO]INT3400 Base path is 
[1691722054][INFO]failed to open /dev/acpi_thermal_rel 
[1691722054][INFO]failed to open /dev/acpi_thermal_rel 
[1691722054][INFO]TRT/ART read failed
[1691722054][MSG]Using config file /etc/thermald/thermal-conf.xml
[1691722054][INFO] Dumping parsed XML Data
[1691722054][INFO] *** Index 0 ***
[1691722054][INFO]Name: OverrideCPUdefaultpassive
[1691722054][INFO]Product Name: *
[1691722054][INFO]Product SKU: 
[1691722054][INFO]UUID: 
[1691722054][INFO]type: 0
[1691722054][INFO]Polling Interval: 0 seconds
[1691722054][INFO]  Zone 0 
[1691722054][INFO]   Name: cpu
[1691722054][INFO]       Trip Point 0 
[1691722054][INFO]        temp/power 86000 
[1691722054][INFO]        trip type 3 
[1691722054][INFO]        hyst id 0 
[1691722054][INFO]        sensor type  
[1691722054][INFO]Product Name matched [wildcard]
[1691722054][MSG]Unsupported cpu model, using thermal-conf.xml only 
[1691722054][INFO]sensor_update: type acpitz
[1691722054][INFO]sensor_update: type iwlwifi_1
[1691722054][INFO]thd_read_default_thermal_sensors loaded 2 sensors 
[1691722054][WARN]Thermal DTS: No coretemp sysfs found
[1691722054][INFO]Product Name matched [wildcard]
[1691722054][INFO]sensor index:0 acpitz /sys/class/thermal/thermal_zone0/ Async:0 
[1691722054][INFO]sensor index:1 iwlwifi_1 /sys/class/thermal/thermal_zone1/ Async:0 
[1691722054][INFO]sensor index:2 amdgpu-temperature /sys/class/hwmon/hwmon3/temp1_input Async:0 
[1691722054][INFO]sensor index:3 amdgpu-power /sys/class/hwmon/hwmon3/power1_average Async:0 
[1691722054][INFO]sensor index:4 kbl-g-mcp /sys/class/hwmon/hwmon3/power1_average Async:0 
[1691722054][INFO]thd_read_default_cooling devices loaded 13 cdevs 
[1691722054][INFO]powercap RAPL no long term time window
[1691722054][INFO]powercap RAPL no long term time window
[1691722054][INFO]name = package-0
[1691722054][INFO]name = core
[1691722054][INFO]Product Name matched [wildcard]
[1691722054][INFO]1: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]11: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]8: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]6: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]4: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]2: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]12: iwlwifi, C:0 MN: 0 MX:20 ST:1 pt:/sys/class/thermal/ rd_bk 1 
[1691722054][INFO]0: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]10: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]9: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]7: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]5: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]3: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 0 
[1691722054][INFO]13: cpufreq, C:0 MN: 0 MX:2 ST:1 pt:/sys/devices/system/cpu/ rd_bk 1 
[1691722054][INFO]thd_read_default_thermal_zones loaded 2 zones 
[1691722054][INFO]INT3400 Base path is 
[1691722054][INFO]zone cpu will be created 
[1691722054][INFO]/sys/class/hwmon/hwmon6/name->asus
[1691722054][INFO]/sys/class/hwmon/hwmon4/name->AC0
[1691722054][INFO]/sys/class/hwmon/hwmon2/name->nvme
[1691722054][INFO]/sys/class/hwmon/hwmon0/name->acpitz
[1691722054][INFO]/sys/class/hwmon/hwmon7/name->iwlwifi_1
[1691722054][INFO]/sys/class/hwmon/hwmon5/name->k10temp
[1691722054][INFO]/sys/class/hwmon/hwmon3/name->amdgpu
[1691722054][INFO]/sys/class/hwmon/hwmon1/name->BAT0
[1691722054][ERR]Thermal DTS or hwmon: No Zones present Need to configure manually
[1691722054][INFO]Product Name matched [wildcard]
[1691722054][ERR]XML zone: invalid sensor type 
[1691722054][WARN]Zone update failed: unable to bind 
[1691722054][INFO]

 ZONE DUMP BEGIN
[1691722054][INFO]

 ZONE DUMP END
[1691722054][INFO]Running on a vanilla kernel
[1691722054][MSG]Polling mode is enabled: 4
[1691722054][INFO]Product Name matched [wildcard]
[1691722054][INFO]Current user preference is 0
[1691722054][INFO]thd_engine_thread begin
[1691722058][INFO]Kernel update is required to update TCC
spandruvada commented 12 months ago

Is this system with AMD CPU? Systems with AMD CPUs are not supported.

axet commented 12 months ago

Right. Maybe a better error message?