Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: morind79 on December 08, 2014, 02:42:32 PM

Title: [SOLVED] LED1 on Debian
Post by: morind79 on December 08, 2014, 02:42:32 PM
Hi All,

I use the latest Debian image from the Wiki (Release 8).
I see the LED1 blinking, so I wanted to remove this. I edited /etc/rc.local but I see this :


chmod 777 /dev/disp  /dev/cedar_dev /dev/ump  /dev/mali
echo 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 408000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

#./opt/led_blink.sh&

#startx&
#/etc/init.d/lightdm start

exit 0


As far as I know the blinking script is already commented out.
So why LED1 is still blinking, it is blinking 2 times very quicly, then wait for 1sec and so on...

Any ideas ?

Best regards
Denis
Title: Re: LED1 on Debian
Post by: kantal on December 08, 2014, 03:07:46 PM
Hi!

You can change it in the FEX file, search for 'heartbeat' in it.
Title: Re: LED1 on Debian
Post by: kantal on December 08, 2014, 03:23:45 PM
More info:
1) see your available LED triggers: $ zcat /proc/config.gz | grep -i trigg
2) https://www.kernel.org/doc/Documentation/leds/leds-class.txt

Title: [RESOLU] Re: LED1 on Debian
Post by: morind79 on December 08, 2014, 04:12:02 PM
Hi,

Thanks, exact, this is in the fex file, I removed it now :-)

Best regards,
Denis
Title: Re: LED1 on Debian
Post by: kantal on December 08, 2014, 04:16:55 PM
and even more info :)

$ cd /sys/class/leds/green:ph02:led1/
$ cat trigger  # get a list of avaiable triggers and the currently active one is in []
try:
$ echo none > trigger # check the led
$ cat trigger
$ echo heartbeat > trigger

Title: Re: [SOLVED] LED1 on Debian
Post by: Gerrit on December 08, 2014, 04:22:44 PM
and some more info

http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs