LED control

Re: lacie 5 big network v.1 please support for fvdw

Postby Jocko » Thu Sep 11, 2014 2:40 pm

Now I want to consolidate these tests.

a) It seems also that no trigger command is available for all LEDs

b) check how to stop quickly all LEDs blinking

1 / Reboot your NAS to reset your previous tests
2/
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo 0 > brightness
echo 1 > brightness


In this case all LED stop to blink and with the 2d echo, blinking restarts?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Thu Sep 11, 2014 8:18 pm

Jocko wrote:2/
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo 0 > brightness
echo 1 > brightness


In this case all LED stop to blink and with the 2d echo, blinking restarts?


outcome of this test has no blue LEDs continue to flash both ahead and astern


if you do the controls on the front / red / blue or blink, nothing happens


when I try everything on the sata ok takes commands....
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Mon Sep 15, 2014 8:17 am

Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cat trigger
none timer heartbeat backlight [gpio] default-on
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cd ..
/sys/devices/platform/leds-gpio/leds # cd net5big\:red\:front/
/sys/devices/platform/leds-gpio/leds/net5big:red:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:front #

doing so at startup nothing happens, but if I speak first on the sata led even after the front responds positively to commands
________________________________________________________
at this point if I go this way I turn off the blue light flashing ...

and from this moment I can turn on the light blue fixed red light, and even the flashing
Code: Select all
/sys/devices/platform/leds-gpio/leds # cd net5big\:blink\:front/
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #


ps:
I repeat, however, you can only do that if I change the first one led sata, why do you think?
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby Jocko » Mon Sep 15, 2014 11:27 am

Hi taetae,

Please stop your current tests because I reread the kernel source and we must do the tests logically.
doing so at startup nothing happens, but if I speak first on the sata led even after the front responds positively to commands

it is not a clean way to manage the booting blinking.

What you must understand:
1/ The GPIO used to handle the LED blinking atfer booting, overrides the others GPIO of the front LED. It is why you can not change the front LED status (echoing in net5big:red:front or net5big:blue:front).
2/ When you change its status, it is used to control initial Red/Blue HW blinking at the next booting.

So the first test that you must do is to stop the blinking LED in according with the kernel source.

If I remember well if you do this
Code: Select all
* reboot your NAS to clean your changes : all LEDs are blinking LED
echo '0' > /sys/class/leds/net5big:blink:front/brightness
,then reboot your NAS

In according with your previous posts, all LEDs should be not blinking after this 2d boot.
Note if not, try by echoing '1' instead of '0' (source is not clear about this value )

If it is ok, now we must do that at each boot we get this LEDs status. So do these steps :
- Open to the boot jobs menu;
- click on 'Set up Boot Jobs' if the feature are not yet installed : this creates a folder 'cron-boot' in the share 'fvdw'
- save a file 'Led-boot.sh' to this folder 'cron-boot' with these lines
Code: Select all
#!/bin/sh
echo '0' > /sys/class/leds/net5big:blink:front/brightness
replace '0' by '1' if it is the value to stop the blinking(and nothing else)
- refresh now the boot jobs menu
- now you see your file in the table, enable it (check its related box)
- click on 'Save the boot jobs table'
- and also click on 'Enable / Disable Boot Jobs' if its status is not 'enabled' (Please post a screen capture of the boot jobs menu after your changes)

Now reboot twice your NAS (first boot to set the right value in the blinking GPIO)

Now you should have always the LED not blinking after each rebooting :thumbup and so we have a clean and stable LEDs status to play now with all LED commands.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Mon Sep 15, 2014 5:38 pm

Jocko wrote:Hi taetae,

Please stop your current tests because I reread the kernel source and we must do the tests logically.
doing so at startup nothing happens, but if I speak first on the sata led even after the front responds positively to commands

it is not a clean way to manage the booting blinking.

What you must understand:
1/ The GPIO used to handle the LED blinking atfer booting, overrides the others GPIO of the front LED. It is why you can not change the front LED status (echoing in net5big:red:front or net5big:blue:front).
2/ When you change its status, it is used to control initial Red/Blue HW blinking at the next booting.

So the first test that you must do is to stop the blinking LED in according with the kernel source.

If I remember well if you do this
Code: Select all
* reboot your NAS to clean your changes : all LEDs are blinking LED
echo '0' > /sys/class/leds/net5big:blink:front/brightness
,then reboot your NAS

In according with your previous posts, all LEDs should be not blinking after this 2d boot.
Note if not, try by echoing '1' instead of '0' (source is not clear about this value )


already trying this command with 0 and then 1 fails order the LEDs do not change and always blink
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby Jocko » Mon Sep 15, 2014 5:47 pm

taetae wrote:to reboot the front LED is off and the blue LED rear sata are fixed

https://www.dropbox.com/sh/o2m2g3ekv4ie ... jjY1a?dl=0

a second reboot is back to business as usual, all the LEDs flashing blue

Please do what I asked you ...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Tue Sep 16, 2014 7:38 am

Jocko wrote:
taetae wrote:to reboot the front LED is off and the blue LED rear sata are fixed

https://www.dropbox.com/sh/o2m2g3ekv4ie ... jjY1a?dl=0

a second reboot is back to business as usual, all the LEDs flashing blue

Please do what I asked you ...



I'm sorry:-(perhaps translate badly and I do not understand what I say better than pui passage I do ??
speak different languages ​​and therefore have a greater difficulty to interpret sorry again
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby Jocko » Tue Sep 16, 2014 7:44 am

Previously, you wrote that do an echo 0 (or 1 ?) in net5big:blink:front/brightness, you note that :
- LEDs blinking don't stop but if you do a reboot then the LEDs are no longer blinking.
- with a 2d boot, LEDs are again blinking

As this seems OK with the kernel source, in my previous post I want to valid that :whistle
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Tue Sep 16, 2014 8:16 am

Jocko wrote:Previously, you wrote that do an echo 0 (or 1 ?) in net5big:blink:front/brightness, you note that :
- LEDs blinking don't stop but if you do a reboot then the LEDs are no longer blinking.
- with a 2d blinking LEDs are again blinking

As this seems OK with the kernel source, in my previous post I want to valid that :whistle



1 When you turn all the LEDs flash
2.se do the commands that I have posted on "net5big: blink: front" does not change anything
3 if you do the commands that I have posted on "net5big: red: front" can not turn on and turn off the light and then I can use the controls on both "net5big: blink: front," "net5big: blue: front"
4. if you reboot the nas back all blinking
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby Jocko » Tue Sep 16, 2014 9:03 am

:pound It is not what I asked... :fists
1 When you turn all the LEDs flash
2.se do the commands that I have posted on "net5big: blink: front" does not change anything echo '0' > /sys/class/leds/net5big:blink:front/brightness (or with value 1) . YES I KNOW THAT NOTHING CHANGES AT THIS TIME.
3 if you do the commands that I have posted on "net5big: red: front" can not turn on and turn off the light and then I can use the controls on both "net5big: blink: front," "net5big: blue: front"YES I KNOW IT. BUT DON'T DO THAT
AND NOW REBOOT ONCE
IF LEDS ARE NOT BLINKING REBOOT ONCE MORE.


That's basically what I asked. Too hard to do it?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 6 guests