PINE64
Funny Conky like script to monitor your PBP state - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Funny Conky like script to monitor your PBP state (/showthread.php?tid=11042)



Funny Conky like script to monitor your PBP state - as400 - 08-14-2020

I found it this script useful. So I'm sharing it.
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



RE: Funny Conky like script to monitor your PBP state - xmixahlx - 08-19-2020

thanks. i'll check this out with stress testing.

i've found the simple CPU temp monitor in sway is sufficient for my needs, but do set the governor to conservative and tweak power settings for conservation.