Skip to content

Instantly share code, notes, and snippets.

View lmzdev's full-sized avatar
🏠

lmzdev

🏠
View GitHub Profile
@lmzdev
lmzdev / throttled.sh
Last active October 19, 2022 09:06 — forked from aallan/throttled.sh
Script to parse the output of the 'vcgencmd get_throttled' command on a Raspberry Pi
#!/bin/bash
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling
# https://github.com/mschlenstedt/Loxberry/issues/952
#Flag Bits
UNDERVOLTED=0x1
CAPPED=0x2
THROTTLED=0x4
HAS_UNDERVOLTED=0x10000