LED control

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

Postby Jocko » Thu Sep 11, 2014 10:33 am

taetae wrote:then echo 0 nothing happens until you reboot the nas and block the automatic boot (countdown) Danto command boot the nas running everything perfectly remaining blue LEDs sata drives and the front LED off, otherwise if I let start automatically nas the settings of the LEDs do not sell taken into account and led the led front and rear sata flash always with blue light

Sorry but I still don't understand you.
About countdown, I assume that you mean the countdown displayed when you use the shutdown option in the shutdown-restart menu. Be aware that this countdown is only for the browser and also so that the user waits that the NAS rebooting is fully ended before reloading the web-interface. So block this countdown make no change in the NAS side and its system status. (I am sure 200% !!!!)

I don't understand "Danto command boot" (danto is unknown for me :scratch )
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 10:36 am

Jocko wrote:
taetae wrote:then echo 0 nothing happens until you reboot the nas and block the automatic boot (countdown) Danto command boot the nas running everything perfectly remaining blue LEDs sata drives and the front LED off, otherwise if I let start automatically nas the settings of the LEDs do not sell taken into account and led the led front and rear sata flash always with blue light

Sorry but I still don't understand you.
About countdown, I assume that you mean the countdown displayed when you use the shutdown option in the shutdown-restart menu. Be aware that this countdown is only for the browser and also so that the user waits that the NAS rebooting is fully ended before reloading the web-interface. So block this countdown make no change in the NAS side and its system status. (I am sure 200% !!!!)

I don't understand "Danto command boot" (danto is unknown for me :scratch )


****
then echo 0 nothing happens until you reboot the nas and block the automatic boot (countdown) by giving the command boot the nas running everything perfectly remaining blue LEDs sata drives and the front LED off, otherwise if I let start automatically nas the settings of the LEDs do not sell taken into account and led the led front and rear sata flash always with blue light
***

I do not use the web interface but the serial through putty and count backward is on the console of putty to start the nas
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 » Thu Sep 11, 2014 11:13 am

test led:
every command I checked the status of the LEDs but there was no change

A:
Code: Select all
 # cd /sys/devices/platf
orm/leds-gpio/leds/net5big:blue:front
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 'default-on' > tr
igger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change of the LED on the front

Code: Select all
 # echo 'none' > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change of the LED on the front
Code: Select all
# echo 'default-on' > tr
igger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change of the LED on the front

B:
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 255 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #

no change LED brightness always stays in front as light intermittently

C:
Code: Select all
/sys/devices/platform/leds-gpio/leds # cd net5big:red:sata0
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 'default-on' > tri
gger
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

back light turns on solid red sata 0
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

the back light of the sata 0 red disappears and remains fixed blue light
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 255 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

back light blue sata 0 disappears and remains fixed red light
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

the back light of the sata 0 red disappears and remains fixed blue light

D:
Code: Select all
/sys/devices/platform/leds-gpio/leds # cd net5big:blink:front
/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 'none' > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 'default-on' > t
rigger
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 255 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change LED brightness always stays in front as light intermittently
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change LED brightness always stays in front as light intermittently

Ps:but now I have the light always fixed on the blue sata 0 .....
but
giving the command all'autoboot reboot the device and the LEDs are all flashing blue both rear and one front
Code: Select all
/sys/devices/platform/leds-gpio/leds #reboot
/sys/devices/platform/leds-gpio/leds # params.c:OpenConfFile() - Unable to open configuration file "/usr/lib/smb.conf":
        No such file or directory
ERROR: Failed to initialise messages database
killall: zfs: no process killed
killall: zxtract: no process killed
killall: zappdms: no process killed
killall: udhcpc: no process killed
killall: ntpd: no process killed
killall: fanctld: no process killed
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
sd 4:0:0:0: [sda] Synchronizing SCSI cache
sd 3:0:0:0: [sdb] Synchronizing SCSI cache
sd 2:0:0:0: [sdc] Synchronizing SCSI cache
sd 1:0:0:0: [sdd] Synchronizing SCSI cache
sd 0:0:0:0: [sde] Synchronizing SCSI cache
Restarting system.
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 11, 2014 12:59 pm

I) So we made some progress at least for slot LEDs...

So reboot your NAS to reset your changes and do:
a/don't change the trigger value and
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:red:sata0
echo 1 > brightness (you must have red led not blinking)
echo 0 > brightness (you must have blue led not blinking)
 

Note: I re-read the kernel source, it seems that we can not switch off the slot LED by this way (just swap between blue/red LED)
If you get blue LED not blinking, try to write a big file on Vol-A (I assume that with sata0 is the left slot <=> sda) and see if the LED is blinking when writing

b/ try to change the trigger value
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:red:sata0
echo gpio > trigger
echo 1 > brightness (you must have red led not blinking)
echo 0 > brightness (you must have blue led not blinking)
 
(same test)

c/another value
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:red:sata0
echo none > trigger
echo 1 > brightness (you must have red led not blinking)
echo 0 > brightness (you must have blue led not blinking)
 
(same test)

II) Now the front LED,
reboot your NAS to reset your changes and do:
a)try to change the trigger value
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo gpio > trigger
echo 0 > brightness (you should have blue led not blinking)
echo 1 > brightness (you must have slow blinking blue led)
 

b)with another value
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo none > trigger
echo 0 > brightness (you should have blue led not blinking)
echo 1 > brightness (you must have slow blinking blue led)
 


if case a is OK do
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo gpio > trigger (or none if case b is OK)
echo 0 > brightness
echo 0 > ../net5big:blue:front/brightness
echo 0  > ../net5big:red:front/brightness
=> Then you should get the red LED.
echo 1  > ../net5big:red:front/brightness (LED should be off)
echo 1 > ../net5big:blue:front/brightness (Blue Led on not Blinking)
echo 0   > ../net5big:red:front/brightness (you should have Purple led not blinking)
 


---I edited x2 my post (front led case)---
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 1:12 pm

Code: Select all
~ # cd /sys/devices/platform/leds-gpio/leds/net5big:red:sata0
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 1 > brightness

The LED is steady red to flashing blue
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

the LED turns solid blue to solid red
and the movement of files or opening of the volume is turned on as a loading

ps: That do not ever takes the red LED is flashing

B:

Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #


Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

The LED is steady red to flashing blue
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

the LED turns solid blue to solid red

C:

Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo none > trigger
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #


Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

The LED is steady red to flashing blue
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:sata0 #

the LED turns solid blue to solid red


II
reboot
all the LEDs flash blue
A:
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change in the front led is always flashing blue
B:
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo none > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

no change in the front led is always flashing blue

---------
experiment done by me
Code: Select all
/sys/devices/platform/leds-gpio/leds # ls
net5big:blink:front  net5big:red:sata0    net5big:red:sata3
net5big:blue:front   net5big:red:sata1    net5big:red:sata4
net5big:red:front    net5big:red:sata2
/sys/devices/platform/leds-gpio/leds # cd net5big\:red\:front/
/sys/devices/platform/leds-gpio/leds/net5big:red:front # ls
brightness      max_brightness  trigger
device          subsystem       uevent
/sys/devices/platform/leds-gpio/leds/net5big:red:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:red:front # echo 1 > brightness

red LED on steady
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:red:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:red:front #

front LED off

Ps:
Jocko wrote:
Code: Select all
cd /sys/devices/platform/leds-gpio/leds/net5big:blink:front
echo gpio > trigger (or none if case b is OK)
echo 0 > brightness
echo 0 > net5big:blue:front/brightness
echo 0  > net5big:red:front/brightness
=> Then you should get the red LED.
echo 1  > net5big:red:front/brightness (LED should be off)
echo 1 > net5big:blue:front/brightness (Blue Led on not Blinking)
echo 0   > net5big:red:front/brightness (you should have Purple led not blinking)


doing does not work like you said ...
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > net5big:blue
:front/brightness
/bin/sh: can't create net5big:blue:front/brightness: nonexistent directory

_____________
note the change of the trigger to the echo 0> brightness
Code: Select all
/sys/devices/platform/leds-gpio/leds # cd net5big\:blue\:front/
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
none timer heartbeat backlight [gpio] default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo gpio > trigger
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
none timer heartbeat backlight [gpio] default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
none timer heartbeat backlight [gpio] default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cat trigger
[none] timer heartbeat backlight gpio default-on
/sys/devices/platform/leds-gpio/leds/net5big:blue:front #


net5big: blink: front makes a light on if you type the command 1 light intermittently goes from 0 if you remain off intermittency.
if the front light is turned off and you type the command echo 1> brightness part of the blue light flashing

Code: Select all
/sys/devices/platform/leds-gpio/leds # cd net5big\:blink\:front/
/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 # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #
cd net5big\:blue\:fro
nt/
/bin/sh: cd: can't cd to net5big:blue:front/
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # cd ..
/sys/devices/platform/leds-gpio/leds # cd net5big\:blue\:front/
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blue:front # cd ..
/sys/devices/platform/leds-gpio/leds # cd net5big\:blink\:front/
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 1 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #

Last edited by taetae on Thu Sep 11, 2014 2:02 pm, edited 1 time in total.
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 11, 2014 1:57 pm

doing does not work like you said ...
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > net5big:blue:front/brightness
/bin/sh: can't create net5big:blue:front/brightness: nonexistent directory


Indeed, I made an error, just add '../' before 'net5big:blue:front' and 'net5big:red:front'
so for example (
Code: Select all
echo 0 > net5big:blue:front/brightness
becomes echo 0 > ../net5big:blue: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 11, 2014 2:06 pm

Jocko wrote:
doing does not work like you said ...
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 0 > net5big:blue:front/brightness
/bin/sh: can't create net5big:blue:front/brightness: nonexistent directory


Indeed, I made an error, just add '../' before 'net5big:blue:front' and 'net5big:red:front'
so for example (
Code: Select all
echo 0 > net5big:blue:front/brightness
becomes echo 0 > ../net5big:blue:front/brightness



works:-P, now we know how to work the lights ehehehehe
Code: Select all
/sys/devices/platform/leds-gpio/leds/net5big:blink:front # echo 1 > ../net5big:b
lue:front/brightness
/sys/devices/platform/leds-gpio/leds/net5big:blink:front #


Ps:I leave again for work tomorrow so I will be able to access the remote PC in just -.-

if I can study a way with the camera that I can see if we can keep the lights still serves
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 11, 2014 2:21 pm

Some thinds are not clear for me...
the LED turns solid blue to solid red
and the movement of files or opening of the volume is turned on as a loading

ps: That do not ever takes the red LED is flashing
when you write "the LED turns solid blue to solid red" you mean that from original status (LED red on) the new status is now "LED blue on"
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 2:32 pm

Jocko wrote:Some thinds are not clear for me...
the LED turns solid blue to solid red
and the movement of files or opening of the volume is turned on as a loading

ps: That do not ever takes the red LED is flashing
when you write "the LED turns solid blue to solid red" you mean that from original status (LED red on) the new status is now "LED blue on"



yes, from solid red, the LED turns solid blue
Last edited by taetae on Thu Sep 11, 2014 2:58 pm, edited 1 time in total.
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 11, 2014 2:34 pm

:thumbup
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