Adam Shih | 486bbb9 | 2022-11-15 14:01:18 +0800 | [diff] [blame^] | 1 | #!/vendor/bin/sh |
| 2 | |
| 3 | echo "Temperatures" |
| 4 | for f in /sys/class/thermal/thermal* ; do |
| 5 | printf "%s: %s\n" `cat $f/type` `cat $f/temp` |
| 6 | done |
| 7 | |
| 8 | echo "Cooling Device Current State" |
| 9 | for f in /sys/class/thermal/cooling* ; do |
| 10 | printf "%s: %s\n" `cat $f/type` `cat $f/cur_state` |
| 11 | done |
| 12 | |
| 13 | echo "Cooling Device User Vote State" |
| 14 | for 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` |
| 17 | done |
| 18 | |
| 19 | echo "Cooling Device Time in State" |
| 20 | for f in /sys/class/thermal/cooling* ; do |
| 21 | printf "%s: %s\n" `cat $f/type` `cat $f/stats/time_in_state_ms` |
| 22 | done |
| 23 | |
| 24 | echo "Cooling Device Trans Table" |
| 25 | for f in /sys/class/thermal/cooling* ; do |
| 26 | printf "%s: %s\n" `cat $f/type` `cat $f/stats/trans_table` |
| 27 | done |
| 28 | |
| 29 | echo "Cooling Device State2Power Table" |
| 30 | for 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` |
| 33 | done |
| 34 | |
| 35 | echo "TMU state:" |
| 36 | cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state |
| 37 | echo "TMU current temperature:" |
| 38 | cat /sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp |
| 39 | echo "TMU_TOP rise thresholds:" |
| 40 | cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres |
| 41 | echo "TMU_TOP fall thresholds:" |
| 42 | cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres |
| 43 | echo "TMU_SUB rise thresholds:" |
| 44 | cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres |
| 45 | echo "TMU_SUB fall thresholds:" |
| 46 | cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres |