Skip to content

Instantly share code, notes, and snippets.

@ValdikSS
Created July 15, 2014 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ValdikSS/232e07dbf3e5f7dd986f to your computer and use it in GitHub Desktop.
Save ValdikSS/232e07dbf3e5f7dd986f to your computer and use it in GitHub Desktop.
valdikss@valaptop /etc/thermald % sudo thermald --no-daemon --loglevel=debug
RAPL sysfs present
RAPL base path /sys/class/powercap/intel-rapl/
RAPL domain dir power
sysfs read failed /sys/class/powercap/intel-rapl/power/name
RAPL domain dir enabled
sysfs read failed /sys/class/powercap/intel-rapl/enabled/name
RAPL domain dir intel-rapl:0
name package-0
RAPL base path /sys/class/powercap/intel-rapl/intel-rapl:0/
RAPL domain dir name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/name/name
RAPL domain dir power
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/power/name
RAPL domain dir constraint_0_time_window_us
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us/name
RAPL domain dir constraint_1_power_limit_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw/name
RAPL domain dir enabled
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/enabled/name
RAPL domain dir device
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/device/name
RAPL domain dir constraint_0_power_limit_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw/name
RAPL domain dir subsystem
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem/name
RAPL domain dir constraint_0_name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name/name
RAPL domain dir constraint_1_name
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name/name
RAPL domain dir energy_uj
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj/name
RAPL domain dir constraint_1_max_power_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw/name
RAPL domain dir uevent
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/uevent/name
RAPL domain dir max_energy_range_uj
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj/name
RAPL domain dir constraint_0_max_power_uw
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw/name
RAPL domain dir constraint_1_time_window_us
sysfs read failed /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us/name
RAPL domain dir intel-rapl:0:0
name core
RAPL domain dir intel-rapl:0:1
name uncore
RAPL domain count 0
RAPL domain dir subsystem
sysfs read failed /sys/class/powercap/intel-rapl/subsystem/name
RAPL domain dir uevent
sysfs read failed /sys/class/powercap/intel-rapl/uevent/name
RAPL domain count 1
13 CPUID levels; family:model:stepping 0x6:2a:7 (6:42:7)
Polling mode is enabled: 4
thd_read_default_thermal_sensors
sensor_update: type acpitz
sensor_update: type x86_pkg_temp
thd_read_default_thermal_sensors loaded 2 sensors
dts /sys/devices/platform/coretemp.0/name doesn't exist
dts /sys/class/hwmon/hwmon0/name doesn't exist
failed to open /dev/acpi_thermal_rel
failed to open /dev/acpi_thermal_rel
TRT/ART read failed
Dumping parsed XML Data
*** Index 0 ***
Name: LenovoThinkPadX220
UUID:
type: 0
Zone 0
Name: x86_pkg_temp
Trip Point 0
temp 45000
trip type 3
hyst id 0
sensor type
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Trip Point 1
temp 50000
trip type 2
hyst id 0
sensor type
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Trip Point 2
temp 55000
trip type 1
hyst id 0
sensor type
cdev index 0
type Fan
influence 100
SamplingPeriod 12
Cooling Dev 0
Type: Fan
Path: /sys/devices/platform/thinkpad_hwmon/pwm1
Min: 0
Max: 255
Step: 30
AutoDownControl: 0
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
sensor index:0 acpitz Async:1
sensor index:1 x86_pkg_temp Async:1
sensor index:2 hwmon Async:0
sensor index:3 hwmon Async:0
sensor index:4 hwmon Async:0
thd_read_default_cooling devices
cooling dev 0:1:15:LCD
cooling dev 1:0:10:Processor
cooling dev 2:0:10:Processor
cooling dev 3:0:10:Processor
cooling dev 4:0:10:Processor
cooling dev 5:-1:50:intel_powerclamp
thd_read_default_cooling devices loaded 6 cdevs
powercap RAPL max power limit range 35000000
RAPL max limit 26250000 increment: 1750000
set_pid_param 6 [1000.100,10]
Use Default pstate drv settings
cooling dev index:7, curr_state:0, max_state:10, unit:10.000000, min_com:0, type:intel_pstate
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
pstate CPU present 0-3
name = package-0
name = core
name = uncore
0: LCD, C:1 MN: 0 MX:15 ST:5 pt:/sys/class/thermal/ rd_bk 0
1: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
2: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
3: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
4: Processor, C:0 MN: 0 MX:10 ST:1 pt:/sys/class/thermal/ rd_bk 0
5: intel_powerclamp, C:-1 MN: 0 MX:50 ST:5 pt:/sys/class/thermal/ rd_bk 0
6: rapl_controller, C:0 MN: 0 MX:26250000 ST:1750000 pt:/sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/ rd_bk 1
7: intel_pstate, C:0 MN: 0 MX:10 ST:1 pt:/sys/devices/system/cpu/intel_pstate/ rd_bk 1
8: Fan, C:109 MN: 0 MX:255 ST:30 pt:/sys/devices/platform/thinkpad_hwmon/pwm1 rd_bk 0
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:99000
Add trip pt 0:0:0x0:99000:1
read_trip_points Added 1 trips
>> read_cdev_trip_points for
cthd_sysfs_zone::read_cdev_trip_points: ZONE bound to CDEV status 0
Sorted trip dump :
index 0: type:critical temp:99000 hyst:1 zone id:0 sensor id:0 cdev size:0
trip type: 0 temp: 99000
sysfs write failed trip_point_0_temp
cthd_sensor::set_threshold: status -13
Add trip pt 4:0:0x0:94000:0
Added zone index:1
Thermal Zone look for 1/type
Thermal Zone 1:x86_pkg_temp
read_trip_points 1/trip_point_0_type:passive
read_trip_points 1/trip_point_0_temp:66000
read_trip_points 1/trip_point_1_type:passive
read_trip_points 1/trip_point_1_temp:0
read_trip_points Added 0 trips
thd_read_default_thermal_zones loaded 1 zones
zone cpu will be created
dts zone /sys/devices/platform/coretemp.0/name doesn't exist
dts zone /sys/class/hwmon/hwmon0/name doesn't exist
/sys/class/hwmon/hwmon1/name->coretemp
Added zone index:1
zone dts syfs: /sys/class/hwmon/hwmon1/, package id 0
Core temp DTS :critical 100000, max 86000
Read set point 83500
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:83500:0
- rapl_controller
- intel_pstate
- intel_powerclamp
- cpufreq
- Processor
Add trip pt 2:1:0xffff:86000:0
- rapl_controller
- intel_pstate
- intel_powerclamp
- cpufreq
- Processor
CDEVS order specified in thermal-cpu-cdev-order.xml
Sorted trip dump :
index 0: type:max temp:83500 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
index 1: type:passive temp:86000 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
trip type: 1 temp: 83500
trip type: 2 temp: 86000
Read set point 83500
cthd_sensor::set_threshold: status 5
Add trip pt 4:1:0x1:66000:0
Read set point 83500
config product name [*] match with [4286CTO]
Product Name matched [wildcard]
Look for Zone [x86_pkg_temp]
Added zone index:2
XML zone: invalid sensor type
XML zone: invalid sensor type
XML zone: invalid sensor type
Zone update failed: unable to bind
Added zone index:2
No SKIN sensor
Zone update failed: unable to bind
Zone 0: acpitz, Active:0 Bind:0 Sensor_cnt:1
..sensors..
sensor index:0 acpitz Async:1
..trips..
index 0: type:critical temp:99000 hyst:1 zone id:0 sensor id:0 cdev size:0
index 1: type:polling temp:94000 hyst:0 zone id:0 sensor id:0 cdev size:0
Zone 1: cpu, Active:1 Bind:0 Sensor_cnt:1
..sensors..
sensor index:1 x86_pkg_temp Async:1
..trips..
index 0: type:max temp:83500 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
index 1: type:passive temp:86000 hyst:0 zone id:1 sensor id:65535 cdev size:4
cdev[0] rapl_controller
cdev[1] intel_pstate
cdev[2] intel_powerclamp
cdev[3] Processor
index 2: type:polling temp:66000 hyst:0 zone id:1 sensor id:1 cdev size:0
FD = 6
Current user preference is 0
Start main loop
thd_engine_thread begin
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
poll exit 0
read_temperature sensor ID 1
Sensor x86_pkg_temp :temp 55000
pref 0 type 2 temp 55000 trip 86000
Passive Trip point applicable
Trip point applicable < 1:86000
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
update_set_point 55000,0,82500
pref 0 type 1 temp 55000 trip 83500
Passive Trip point applicable
Trip point applicable < 0:83500
cdev size for this trippoint 4
cdev at index 1:Processor
Need to switch to next cdev
cdev at index 5:intel_powerclamp
Need to switch to next cdev
cdev at index 7:intel_pstate
Need to switch to next cdev
cdev at index 6:rapl_controller
Need to switch to next cdev
^Cpoll exit 1
wakeup fd event
Receieved message 1
Terminating ...
Terminating thread..
thd_engine_thread_end
terminating on user request ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment