-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_aliases_rpi
35 lines (34 loc) · 938 Bytes
/
.bash_aliases_rpi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# RPi
alias rpi_getmem='vcgencmd get_mem arm && vcgencmd get_mem gpu'
alias rpi_gettemp='vcgencmd measure_temp'
alias rpi_getclock='for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do echo -e "$src:\t$(vcgencmd measure_clock $src)" ; done'
alias rpi_getvolts='for id in core sdram_c sdram_i sdram_p ; do echo -e "$id:\t$(vcgencmd measure_volts $id)" ; done'
alias rpi_getcodec='for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9 ; do echo -e "$codec:\t$(vcgencmd codec_enabled $codec)" ; done'
function rpi_info() {
echo ""
echo "=======";
echo "Memory";
echo "=======";
rpi_getmem
echo ""
echo "============";
echo "Temperature";
echo "============";
rpi_gettemp
echo ""
echo "======";
echo "Clock";
echo "======";
rpi_getclock
echo ""
echo "=======";
echo "Volts";
echo "=======";
rpi_getvolts
echo ""
echo "=======";
echo "Codecs";
echo "=======";
rpi_getcodec
echo ""
}