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


Messages In This Thread
Funny Conky like script to monitor your PBP state - by as400 - 08-14-2020, 08:39 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)