Funny Conky like script to monitor your PBP state
#1
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
#2
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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  External USB C Monitor not working altacus 29 43,634 08-08-2021, 10:19 AM
Last Post: Dendrocalamus64
  Netflix, state of the art? gleachkr 82 119,113 03-24-2021, 03:42 PM
Last Post: wrzomar
  kodi-git build script for mainline hwaccel media decoding xmixahlx 21 31,799 11-01-2020, 05:17 PM
Last Post: xmixahlx
Question Manjaro XFCE: video outputs (Multi-monitor) EreTIk 2 4,645 03-23-2020, 11:20 AM
Last Post: EreTIk
Shocked Pinebook Pro Build Script Issues TDC_PBP 3 6,419 03-01-2020, 04:24 PM
Last Post: jwhall
  Connected to 4k (3840x2160) monitor but I can only select upto 1920x1080 resolution NigelT 4 8,445 01-27-2020, 01:19 PM
Last Post: xmixahlx
  State of hibernate or hybrid-sleep? Arwen 5 8,243 11-21-2019, 07:51 AM
Last Post: tophneal
Bug MATE System Monitor shows seven CPU cores in Debian User 11436 2 4,663 11-07-2019, 11:32 AM
Last Post: hmuller

Forum Jump:


Users browsing this thread: 1 Guest(s)