No bug with a locally recompiled package.
# aptitude purge thermald
# aptitude install thermald # 1.1~rc2-4
... thermald process uses 100% cpu
# aptitude purge thermald
# apt-get source thermald # 1.1~rc2-4
# pdebuild
# dpkg -i $localpackage
... no bug
# debdiff $officialpackage $localpackage
File lists identical (after any substitutions)
No differences were encountered between the control files
Just in case, a debug log *without* the bug is attached. I produced it
by recompiling the package with "DEB_BUILD_OPTIONS=noopt pdebuild" and
modifying the start command in the init script.
# start-stop-daemon --start --quiet --oknodo \
--background --no-close \
--exec /usr/sbin/thermald -- \
--no-daemon --loglevel=debug > /tmp/debug.log 2>&1
Any idea to produce debug output right after installation of the
official package?
10 CPUID levels; family:model:stepping 0x6:17:6 (6:23:6)
No support RAPL and Intel P state driver
Polling mode is enabled: 4
thd_read_default_thermal_sensors
sensor_update: type acpitz
thd_read_default_thermal_sensors loaded 1 sensors
Dumping parsed XML Data
*** Index 0 ***
Name: Generic X86 Laptop Device
UUID:
type: 0
Sensor 0
Name: TSKN
Path:
Async Capable: 1
Zone 0
Name: SKIN
Trip Point 0
temp id 44000
trip type 2
hyst id 0
Trip id 0
type rapl_controller
influence 100
SamplingPeriod 16
Trip id 1
type intel_powerclamp
influence 100
SamplingPeriod 12
*** Index 1 ***
Name: Example Platform Name
UUID: Example UUID
type: 0
Sensor 0
Name: TSKN
Path:
Async Capable: 1
Sensor 1
Name: example_sensor_1
Path: /some_path
Async Capable: 0
Sensor 2
Name: example_thermal_sysfs_sensor
Path:
Async Capable: 1
Zone 0
Name: Example Zone type
Trip Point 0
temp id 75000
trip type 1
hyst id 0
Trip id 0
type example_cooling_device
influence 100
SamplingPeriod 12
Cooling Dev 0
Type: example_cooling_device
Path:
Min: 0
Max: 50
Step: 10
AutoDownControl: 0
PID: Kp 0,000000
PID: Ki 0,000000
PID: Kd 0,000000
checking UUID
UUID is [947B9900-C08E-11DD-8021-B059A8017255]
checking product name
product name is[TECRA R10]
config product name *
Product Name matched [wildcard]
sensor id 3: No temp sysfs for reading raw temp
sensor index:0 acpitz Async:0
sensor index:1 temp2_input Async:0
sensor index:2 temp3_input Async:0
thd_read_default_cooling devices
cooling dev 0:0:3:Processor
cooling dev 1:0:3:Processor
cooling dev 2:7:7:LCD
thd_read_default_cooling devices loaded 3 cdevs
powercap RAPL no long term time window
checking UUID
UUID is [947B9900-C08E-11DD-8021-B059A8017255]
checking product name
product name is[TECRA R10]
config product name *
Product Name matched [wildcard]
pstate CPU present 0-1
cpu freq max 2261000 min 800000
cpu freq Add 0: 2261000
cpu freq Add 1: 2260000
cpu freq Add 2: 1600000
cpu freq Add 3: 800000
cpu freq 0: 2261000
cpu freq 1: 2260000
cpu freq 2: 1600000
cpu freq 3: 800000
0: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 1
1: Processor, C:0 MN: 0 MX:3 ST:1 pt:/sys/class/thermal/ rd_bk 1
2: LCD, C:7 MN: 0 MX:7 ST:1 pt:/sys/class/thermal/ rd_bk 1
3: cpufreq, C:0 MN: 0 MX:0 ST:1 pt:/sys/devices/system/cpu/ rd_bk 1
thd_read_default_thermal_zones
Added zone index:0
Thermal Zone look for 0/type
Thermal Zone 0:acpitz
read_trip_points 0/trip_point_0_type:critical
read_trip_points 0/trip_point_0_temp:107000
Add trip pt 0:0:0x0:107000:1
read_trip_points Added 1 trips
trip type: 0 temp: 107000
>> read_cdev_trip_points for
cthd_sysfs_zone::read_cdev_trip_points: ZONE bound to CDEV status 0
thd_read_default_thermal_zones loaded 1 zones
checking UUID
UUID is [947B9900-C08E-11DD-8021-B059A8017255]
checking product name
product name is[TECRA R10]
config product name *
Product Name matched [wildcard]
Added zone index:1
XML zone: invalid sensor type
Zone update failed: unable to bind
zone cpu will be created
Added zone index:1
zone dts syfs: /sys/devices/platform/coretemp.0/, package id 0
Core temp DTS :critical 105000, max 105000
Buggy max temp: to close to critical 95000
Read set point 0
node type: Element, name: CoolingDevice value: rapl_controller
node type: Element, name: CoolingDevice value: intel_pstate
node type: Element, name: CoolingDevice value: intel_powerclamp
node type: Element, name: CoolingDevice value: cpufreq
node type: Element, name: CoolingDevice value: Processor
Add trip pt 1:1:0xffff:94000:0
- rapl_controller
- intel_pstate
- intel_powerclamp
- cpufreq
- Processor
CDEVS order specified in thermal-cpu-cdev-order.xml
trip type: 1 temp: 94000
Read set point 0
Zone 0: acpitz, Active:0 Bind:0 Sensor_cnt:1
..sensors..
sensor index:0 acpitz Async:0
..trips..
index 0: type:critical temp:107000 hyst:1 zone id:0 sensor id:0 cdev size:0
Zone 1: cpu, Active:1 Bind:0 Sensor_cnt:2
..sensors..
sensor index:1 temp2_input Async:0
sensor index:2 temp3_input Async:0
..trips..
index 0: type:max temp:94000 hyst:0 zone id:1 sensor id:65535 cdev size:2
FD = 6
Current user preference is 0
Start main loop
thd_engine_thread begin
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 37000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
>>thd_cdev_set_state index:3 state:0
thd_cdev_set_3:curr state 0 max state 4
op->device: force min cpufreq 0
cpu freq set_curr_stat 0: 2261000
Set : 94000, 41000, 3, 0, 4
<<thd_cdev_set_state 0
poll exit 1
poll exit 1
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 40000
read_temperature sensor ID 2
Sensor temp3_input :temp 37000
update_set_point 40000,0,93000
pref 0 type 1 temp 40000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 36000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 40000
read_temperature sensor ID 2
Sensor temp3_input :temp 37000
update_set_point 40000,0,93000
pref 0 type 1 temp 40000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 1
poll exit 1
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 39000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 37000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 36000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 1
poll exit 1
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 37000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 39000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor temp2_input :temp 41000
read_temperature sensor ID 2
Sensor temp3_input :temp 39000
update_set_point 41000,0,93000
pref 0 type 1 temp 41000 trip 94000
Passive Trip point applicable
Trip point applicable < 0:94000
cdev size for this trippoint 2
cdev at index 0:Processor
Need to switch to next cdev
cdev at index 3:cpufreq
Need to switch to next cdev
poll exit 1
poll exit 1