#!/bin/bash
gpu_fre=$(cat /sys/class/devfreq/fb000000.gpu/cur_freq)
echo "------------gpu--------------"
echo "gpu_freq=$gpu_fre"
npu_fre=$(cat /sys/class/devfreq/fdab0000.npu/cur_freq)
echo "------------npu--------------"
echo "npu_freq=$npu_fre"
cpu1_fre=$(cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq)
cpu2_fre=$(cat /sys/devices/system/cpu/cpufreq/policy4/cpuinfo_cur_freq)
cpu3_fre=$(cat /sys/devices/system/cpu/cpufreq/policy6/cpuinfo_cur_freq)
echo "------------cpu--------------"
echo "cpu0-3 fre=$cpu1_fre"
echo "cpu4-5 fre=$cpu2_fre"
echo "cpu6-7 fre=$cpu3_fre"
t0=$(cat /sys/class/thermal/thermal_zone0/temp)
t1=$(cat /sys/class/thermal/thermal_zone1/temp)
t2=$(cat /sys/class/thermal/thermal_zone2/temp)
t3=$(cat /sys/class/thermal/thermal_zone3/temp)
t4=$(cat /sys/class/thermal/thermal_zone4/temp)
t5=$(cat /sys/class/thermal/thermal_zone5/temp)
t6=$(cat /sys/class/thermal/thermal_zone6/temp)
echo "------------temp-------------"
echo "thermal_zone0=$t0"
echo "thermal_zone1=$t1"
echo "thermal_zone2=$t2"
echo "thermal_zone3=$t3"
echo "thermal_zone4=$t4"
echo "thermal_zone5=$t5"
echo "thermal_zone6=$t6"
获取RK3588温度以及GPU,NPU,CPU频率shell脚本
最新推荐文章于 2024-04-07 22:10:15 发布