08-14-2020, 08:39 AM
I found it this script useful. So I'm sharing it.
It monitors CPU/GPU frequencies, temperatures and gives basic info from top.
Copy code, save as eg. script.sh. Then:
If you want to refresh information every 0.5 seconds:
Every 2 seconds:
It monitors CPU/GPU frequencies, temperatures and gives basic info from top.
Code:
#!/bin/bash
a53=$(cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq | awk '{print $1 / 1000000}')
a72=$(cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq | awk '{print $1 / 1000000}')
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
gpuf=$(cat /sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/cur_freq | awk '{print $1 / 1000000}')
gpu=$(cat /sys/class/thermal/thermal_zone1/temp)
echo CPU temperature '>' ${cpu::2}C
echo GPU temperature '>' ${gpu::2}C
echo A53 Little frequency '>' ${a53}Ghz
echo A72 Big frequency '>' ${a72}Ghz
echo GPU frequency '>' ${gpuf}Mhz
echo ""
top 1 -bn1 | head -10
Copy code, save as eg. script.sh. Then:
Code:
chmod +x script.sh
If you want to refresh information every 0.5 seconds:
Code:
watch -n 0.5 script.sh
Every 2 seconds:
Code:
watch -n 2 script.sh