获取RK3588温度以及GPU,NPU,CPU频率shell脚本

#!/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"
  • 12
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

那肯定是很多年以后!

你的鼓励就我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值