blob: 2b87da924981be721195d996c531cb6a85d7d6d2 [file] [log] [blame]
Adam Shih486bbb92022-11-15 14:01:18 +08001#!/vendor/bin/sh
2
3echo "Temperatures"
4for f in /sys/class/thermal/thermal* ; do
5 printf "%s: %s\n" `cat $f/type` `cat $f/temp`
6done
7
8echo "Cooling Device Current State"
9for f in /sys/class/thermal/cooling* ; do
10 printf "%s: %s\n" `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 [ ! -f $f/user_vote ]; then continue; fi;
16 printf "%s: %s\n" `cat $f/type` `cat $f/user_vote`
17done
18
19echo "Cooling Device Time in State"
20for f in /sys/class/thermal/cooling* ; do
21 printf "%s: %s\n" `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 printf "%s: %s\n" `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 [ ! -f $f/state2power_table ]; then continue; fi;
32 printf "%s: %s\n" `cat $f/type` `cat $f/state2power_table`
33done
34
35echo "TMU state:"
36cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state
37echo "TMU current temperature:"
38cat /sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp
39echo "TMU_TOP rise thresholds:"
40cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres
41echo "TMU_TOP fall thresholds:"
42cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres
43echo "TMU_SUB rise thresholds:"
44cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
45echo "TMU_SUB fall thresholds:"
46cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres