I’ve been hunting and don’t see any definitive pages describing the LED status behavior for your supported hardware. Currently, we’re using a pi4, and I’ve seen partial descriptions here and there of LED status. Experience has led me to understand some of the pi4s behavior; solid/flashing green at boot, dark normally, flashing indicates communication failure, other flashes indicate other hardware problems. We, in general, intend to override these patterns with our own specific signals but for now, our support people keep asking for a balena page as a LED reference. What can I point them at?
Hi @jdada,
Raspberry Pi’s LED blink patterns for devices running balenaOS are identical to the factory defaults. See: R-Pi Troubleshooting - eLinux.org. The green LED is writable but the red LED is not, as far as I’m aware.
balena’s on-device Supervisor does blink the green LED when you click the “Blink device LED for 15 seconds” button the dashboard’s device summary page. This is done by writing to the LED file located at /sys/class/leds/led0
. The Supervisor writes 0 or 1 to turn the LED on or off, and you may access this functionality via the Supervisor API. See: Interacting with the balena Supervisor - Balena Documentation
Hopefully that answers your question!
Regards,
Christina