Deactivate the LEDs of your Radxa Rock

The Rock’s frequently blinking lights can be an annoying source of light pollution. Here is how to turn most of them off. However, the ethernet and wifi leds can only be soldered them out.

On the newer images, the 3 Rock’s LEDs are configured as LED class devices, so edit rc.local

and set them to none using this snippet:

For the older images, the LEDs have to be set via the GPIOs:

make sure that you add those lines before the exit 0 statement in rc.local.