Open stephendade opened 3 years ago
Great function! I think we can also integrate the reading of undervoltage and cpu throtteling.
vcgencmd get_throttled
vcgencmd measure_temp
vcgencmd measure_volts core
vcgencmd measure_clock core
The vcgencmd get_throttled
output bits are:
Other commands can be integrated, such as reading the gpu or free ram.
vcgencmd get_mem arm/gpu
For example this is the dashboard of my Raspberry Pi (Zero 2 W) which controls the 3D printer:
I'd prefer a more generic approach, as Rpanion-server also runs on Jetsons and a few x86 platforms now. Is there a more generic functions we can use?
Hello Stephen, sorry for the delay in replying. You are absolutely right about the compatibility of the feature with all supported platforms. However, I believe it is important to know if the raspberry get throttled.
However, I believe it is important to know if the raspberry get throttled.
Yes, that's fine. I'm generally happy to put in small amounts of Pi-specific functionality
lm-sensors is probably the most widely supported way to get hardware monitoring info: https://github.com/lm-sensors/lm-sensors
There may be some kinks with RPi support, but that is (maybe?) solved now, depending on kernel version: https://github.com/lm-sensors/lm-sensors/issues/202
Add warning when system temperature, voltage or averaged CPU exceeds limits.
This would allow users to diagnose some stability issues, especially when running video streaming