2022-11-15 14:01:18 +08:00
|
|
|
#!/vendor/bin/sh
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Temperatures'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/thermal* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
echo `cat $f/type`: `cat $f/temp`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Cooling Device Current State'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/cooling* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
echo `cat $f/type`: `cat $f/cur_state`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Cooling Device User Vote State'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/cooling* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
if ! [ -r $f/user_vote ]; then continue; fi;
|
|
|
|
echo `cat $f/type`: `cat $f/user_vote`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Cooling Device Time in State'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/cooling* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
echo `cat $f/type`: `cat $f/stats/time_in_state_ms`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Cooling Device Trans Table'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/cooling* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
echo `cat $f/type`: `cat $f/stats/trans_table`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'Cooling Device State2Power Table'
|
2022-11-15 14:01:18 +08:00
|
|
|
for f in /sys/class/thermal/cooling* ; do
|
2023-07-20 19:41:29 +08:00
|
|
|
if ! [ -r $f/state2power_table ]; then continue; fi;
|
|
|
|
echo `cat $f/type`: `cat $f/state2power_table`
|
2022-11-15 14:01:18 +08:00
|
|
|
done
|
|
|
|
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU state:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU current temperature:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU_TOP rise thresholds:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU_TOP fall thresholds:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU_SUB rise thresholds:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
|
2023-07-20 19:41:29 +08:00
|
|
|
echo 'TMU_SUB fall thresholds:'
|
2022-11-15 14:01:18 +08:00
|
|
|
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres
|