Merge "dumpstate:thermal: refactor dump_thermal.sh" into udc-d1-dev am: a4e20ba687 am: b447f04489
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24145345 Change-Id: I9d32dd1e418fb0a91e76b70e3531b1372f833318 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0fafeb5e46
@ -1,46 +1,46 @@
|
||||
#!/vendor/bin/sh
|
||||
|
||||
echo "Temperatures"
|
||||
echo 'Temperatures'
|
||||
for f in /sys/class/thermal/thermal* ; do
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/temp`
|
||||
echo `cat $f/type`: `cat $f/temp`
|
||||
done
|
||||
|
||||
echo "Cooling Device Current State"
|
||||
echo 'Cooling Device Current State'
|
||||
for f in /sys/class/thermal/cooling* ; do
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/cur_state`
|
||||
echo `cat $f/type`: `cat $f/cur_state`
|
||||
done
|
||||
|
||||
echo "Cooling Device User Vote State"
|
||||
echo 'Cooling Device User Vote State'
|
||||
for f in /sys/class/thermal/cooling* ; do
|
||||
if [ ! -f $f/user_vote ]; then continue; fi;
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/user_vote`
|
||||
if ! [ -r $f/user_vote ]; then continue; fi;
|
||||
echo `cat $f/type`: `cat $f/user_vote`
|
||||
done
|
||||
|
||||
echo "Cooling Device Time in State"
|
||||
echo 'Cooling Device Time in State'
|
||||
for f in /sys/class/thermal/cooling* ; do
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/stats/time_in_state_ms`
|
||||
echo `cat $f/type`: `cat $f/stats/time_in_state_ms`
|
||||
done
|
||||
|
||||
echo "Cooling Device Trans Table"
|
||||
echo 'Cooling Device Trans Table'
|
||||
for f in /sys/class/thermal/cooling* ; do
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/stats/trans_table`
|
||||
echo `cat $f/type`: `cat $f/stats/trans_table`
|
||||
done
|
||||
|
||||
echo "Cooling Device State2Power Table"
|
||||
echo 'Cooling Device State2Power Table'
|
||||
for f in /sys/class/thermal/cooling* ; do
|
||||
if [ ! -f $f/state2power_table ]; then continue; fi;
|
||||
printf "%s: %s\n" `cat $f/type` `cat $f/state2power_table`
|
||||
if ! [ -r $f/state2power_table ]; then continue; fi;
|
||||
echo `cat $f/type`: `cat $f/state2power_table`
|
||||
done
|
||||
|
||||
echo "TMU state:"
|
||||
echo 'TMU state:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state
|
||||
echo "TMU current temperature:"
|
||||
echo 'TMU current temperature:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp
|
||||
echo "TMU_TOP rise thresholds:"
|
||||
echo 'TMU_TOP rise thresholds:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres
|
||||
echo "TMU_TOP fall thresholds:"
|
||||
echo 'TMU_TOP fall thresholds:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres
|
||||
echo "TMU_SUB rise thresholds:"
|
||||
echo 'TMU_SUB rise thresholds:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
|
||||
echo "TMU_SUB fall thresholds:"
|
||||
echo 'TMU_SUB fall thresholds:'
|
||||
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres
|
||||
|
Loading…
x
Reference in New Issue
Block a user