1#!/vendor/bin/sh
2
3echo 'Temperatures'
4for f in /sys/class/thermal/thermal* ; do
5  echo `cat $f/type`: `cat $f/temp`
6done
7
8echo 'Cooling Device Current State'
9for f in /sys/class/thermal/cooling* ; do
10  echo `cat $f/type`: `cat $f/cur_state`
11done
12
13echo 'Cooling Device User Vote State'
14for f in /sys/class/thermal/cooling* ; do
15  if ! [ -r $f/user_vote ]; then continue; fi;
16  echo `cat $f/type`: `cat $f/user_vote`
17done
18
19echo 'Cooling Device Time in State'
20for f in /sys/class/thermal/cooling* ; do
21  echo `cat $f/type`: `cat $f/stats/time_in_state_ms`
22done
23
24echo 'Cooling Device Trans Table'
25for f in /sys/class/thermal/cooling* ; do
26  echo `cat $f/type`: `cat $f/stats/trans_table`
27done
28
29echo 'Cooling Device State2Power Table'
30for f in /sys/class/thermal/cooling* ; do
31  if ! [ -r $f/state2power_table ]; then continue; fi;
32  echo `cat $f/type`: `cat $f/state2power_table`
33done
34
35echo 'TMU state:'
36cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state
37echo 'TMU intpend:'
38cat /sys/module/gs_thermal/parameters/tmu_reg_dump_intpend
39echo 'TMU current temperature:'
40cat /sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp
41echo 'TMU_TOP rise thresholds:'
42cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres
43echo 'TMU_TOP fall thresholds:'
44cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres
45echo 'TMU_SUB rise thresholds:'
46cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
47echo 'TMU_SUB fall thresholds:'
48cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres
49