LED control

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

Postby taetae » Tue Sep 16, 2014 6:29 pm

So what was the command that you did to stop all LED blinking after echoing in a sata LED ?


I have not given a command to all the leds but the manual one by one, starting as follows

Code: Select all
~ #echo 1 > /sys/class/leds/net5big:red:sata0/brightness

Sata0 LED red on and the other LEDs blue blinking
Code: Select all
~ #echo 0 > /sys/class/leds/net5big:red:sata0/brightness

Sata0 LED red off,Sata0 LED blue on and the other LEDs blue blinking
Code: Select all
~ #echo 0 > /sys/class/leds/net5big:blue:sata0/brightness

Sata0 LED blue off and the other LEDs blue blinking
same thing for SATA1 etc....

after echoing in a sata0 LED

Code: Select all
~ #echo 1 > /sys/class/leds/net5big:red:front/brightness

front LED red on , Sata0 LED off and the other LEDs blue blinking
Code: Select all
~ #echo 0 > /sys/class/leds/net5big:red:front/brightness

front LED red off ,front LED blue on, Sata0 LED off and the other LEDs blue blinking
Code: Select all
~ #echo 0 > /sys/class/leds/net5big:blue:front/brightness

front LED blue off, Sata0 LED off and the other LEDs blue 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 7:03 pm

Ok I understand more and more...

Could test two other cases (I think it is the lasts before making a short script):
a/
Code: Select all
echo 1 > /sys/class/leds/net5big:red:front/brightness
echo 1 > /sys/class/leds/net5big:blue:front/brightness
Do you have front LED red+blue (~purple)
b/try to enable again the blinking for all LEDs
Code: Select all
echo 1 > /sys/class/leds/net5big:blink:front/brightness
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 18, 2014 7:49 am

start Nas -> all leds blinking blue
Code: Select all
echo 1 > /sys/class/leds/net5big:red:front/brightness

Front LED red on and the other LEDs blue blinking

Code: Select all
echo 1 > /sys/class/leds/net5big:blue:front/brightness

Front LED red+blue (~purple) and the other LEDs blue blinking

Code: Select all
echo 1 > /sys/class/leds/net5big:blink:front/brightness


Front LED blue blinking and the other LEDs blue blinking

Code: Select all
reboot

all leds blinking blue
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 » Thu Sep 18, 2014 10:04 am

Thank taetae,

Now I have enough information how to manage the LEDs on a 5big1. I go to write a shell script to do this.
To summarize :
By default, at booting all LEDs are blinking to say that they are in a blur status. I assume that in Lacie 5big1 firmware, the boot script does some checks and in accordance with these checks, sets their status (for example switch off a sata LED if there is no disk in the slot).
Currently, fvdw-sl firmware doesn't perform some checks for setting the LEDs status and so LEDs are still blinking after booting.
We have the same behaviour with 5big2 where a sata red LED stays on after booting if there is no disk in the slot whereas it should be off in this case.

Note:I have enough information for SPD, nwsp1, nwsp2, nwspmax, 5big2, cloudbox (only for switch on/off blue LED) but I need yet information for isp1 (need to valid some commands), 2big1 and 2big2
So maybe in next release, we will improve LEDs management.
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 18, 2014 11:34 am

ok thank you .... and look new;-) I'm here if you need ...

for the state of 5big v1

1.rimane pending the fan that we must improve
2.il button on and of that only works in car on ignition as

of course I write these things because doing tests I found these unforeseen nothing more;-)
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 » Thu Sep 25, 2014 9:46 am

Jocko wrote:So do these cases, and please report still the LEDs status (be careful you need to reboot the NAS between each case)
b)
Code: Select all
 echo 1 > /sys/class/leds/net5big:blue:sata0/brightness
echo 0 > /sys/class/leds/net5big:blink:front/brightness


Hi taetae,

of course there was an error in the command line and doing this case was not valid.

So could you do this case again but with the right command :
Code: Select all
 echo 1 > /sys/class/leds/net5big:blue:front/brightness
echo 0 > /sys/class/leds/net5big:blink:front/brightness


other point when there is no disk in the slot what is the LED status of the related slot after booting ? (led off ?)
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 » Fri Oct 10, 2014 10:20 am

reboot nas => all leds blue blinking

Code: Select all
~ # echo 1 > /sys/class/leds/net5big:blue:front/brightness

Front LED blue blinking
Code: Select all
~ # echo 0 > /sys/class/leds/net5big:blue:front/brightness

Front LED blue blinking



ps:
Sorry for the delay but I had problems with the internet connection where I had the nas and could not do anything
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 » Fri Oct 10, 2014 1:35 pm

Hi taetae,

They are not the commands that I had asked to do... but it doesn't matter: this weekend I send you a script to handle the LEDs on your 5big1 for testing.
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 » Fri Oct 10, 2014 5:32 pm

Jocko wrote:
Jocko wrote:

other point when there is no disk in the slot what is the LED status of the related slot after booting ? (led off ?)


led off
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 » Sun Oct 12, 2014 11:16 am

Hi taetae,

I sent you a patch for testing some led command.

After installing the patch by using the upload patch menu, please to these tests

1/
- in others settings menu, select the option 'LED On at next boot'
- in putty terminal
Code: Select all
/etc/leds_bootup

if all is right, the front LED should be blue and not blinking and sata leds should be blue and blinking on R/W disk events (if a disk is missing then its leds is red)

2/ - in others settings menu, select the option 'LED Off at next boot'
- in putty terminal
Code: Select all
/etc/leds_bootup

if all is right, the front LED should be off but not the sata LEDS because we find no command to switch off them

3/ in LED off/on menu, what is it the behavior when you try to switch on/off the LEDs
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 9 guests