Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


System Info
#1
Would it be possible to move System Information to the main menu? I use it quite often and having to select Configuration/menu/System Info is a bit of a hassle. No big deal, but others may want it as well.
Reply
#2
Is there a particular section of System info that you frequently need to view?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(08-23-2022, 06:50 PM)Tim Curtis Wrote: Is there a particular section of System info that you frequently need to view?

Tim, I look at system throttling, SoC Temp, Startup log and uptime mostly.
Reply
#4
Not sure I could dedicate a main menu slot for System info but below is a short script to print the items. It's based on the code in the main sysinfo script. Use the nano editor and paste the text into a file in the pi home directory for example test.sh and then make it executable with the command sudo chmod +x test.sh

Script
Code:
#!/bin/bash
TEMP=`awk '{printf "%3.1fC\n", $1/1000}' /sys/class/thermal/thermal_zone0/temp`

THROTTLED_BITMASK=`vcgencmd get_throttled | cut -d"=" -f2`
THROTTLED_TEXT=""
if [[ $THROTTLED_BITMASK == "0x0" ]]; then THROTTLED_TEXT="No throttling has occurred"; fi
if (( ($THROTTLED_BITMASK & 0x1) )); then THROTTLED_TEXT="Under-voltage detected, "; fi
if (( ($THROTTLED_BITMASK & 0x2) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Arm frequency capped, "; fi
if (( ($THROTTLED_BITMASK & 0x4) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Currently throttled, "; fi
if (( ($THROTTLED_BITMASK & 0x8) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Soft temperature limit active, "; fi
if (( ($THROTTLED_BITMASK & 0x10000) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Under-voltage has occurred, "; fi
if (( ($THROTTLED_BITMASK & 0x20000) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Arm frequency capping has occurred, "; fi
if (( ($THROTTLED_BITMASK & 0x40000) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Throttling has occurred, "; fi
if (( ($THROTTLED_BITMASK & 0x80000) )); then THROTTLED_TEXT=$THROTTLED_TEXT"Soft temperature limit has occurred"; fi
THROTTLED_TEXT=${THROTTLED_TEXT%, }

UPTIME="$(uptime -p)"

echo Temp $TEMP
echo $THROTTLED_TEXT
echo $UPTIME

Example
Code:
pi@moode:~ $ ./test.sh
Temp 52.1C
No throttling has occurred
up 1 day, 32 minutes

moOde startup log
Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Fair enough, Thanks Tim for all your hard work.
Reply


Forum Jump: