LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   fancy (yet useful) heartbeat pulse on a green LED (https://www.linuxquestions.org/questions/slackware-arm-108/fancy-yet-useful-heartbeat-pulse-on-a-green-led-4175610391/)

SCerovec 07-22-2017 07:00 AM

fancy (yet useful) heartbeat pulse on a green LED
 
on BeagleBone Black, which isn't running any Slackware yet (at least here on my place) there is a fanciful eye caching feature present:

The hear-beat like pulse on a led.

it is most useful for an headless computer to quickly (at a single glance) discern it's load and simple works or is locked state.

Any more than that would need an monitor or a proper "blinkenlichten" panel.

So i figured, why not have it working in Slackware too?

To my surprise i found none "easy way" writeup, so i figured i make one here?

Okay here goes (ready to paste in rc.local):
Code:

# hearbeat madule load for green led:
modprobe -av ledtrig-heartbeat

echo "heartbeat" > /sys/class/leds/orangepi\:green\:pwr/trigger

for my orange PI PC
or
Code:

# hearbeat madule load for green led:
modprobe -av ledtrig-heartbeat

echo "heartbeat" > /sys/class/leds/bananapi\:green\:usr/trigger

on my banana Pi M1

ammounting to:
Code:

# hearbeat madule load for green led:
modprobe -av ledtrig-heartbeat

echo "heartbeat" > /sys/class/leds/*\:green\:*/trigger

for any green LED to be triggered as heartbeat indicator.

I post this in hope someone finds this useful.


All times are GMT -5. The time now is 03:30 PM.