Rpanion-server icon indicating copy to clipboard operation
Rpanion-server copied to clipboard

System stats

Open stephendade opened this issue 3 years ago • 5 comments

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

stephendade avatar Jun 12 '21 03:06 stephendade

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: clipboard_eddfc4bfa4efe78b914acf08a906d9f3f

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: Schermata 2022-01-26 alle 08 30 07

lorenzing avatar Jan 26 '22 07:01 lorenzing

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?

stephendade avatar Jan 29 '22 03:01 stephendade

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.

lorenzing avatar Feb 01 '22 08:02 lorenzing

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

stephendade avatar Feb 01 '22 23:02 stephendade

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

ddd999 avatar Mar 07 '24 14:03 ddd999