Page 1 of 11

LED control

PostPosted: Mon Sep 08, 2014 3:46 pm
by taetae
guys you can not create a web interface for management of the LEDs and the power of the fan on and ???

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

PostPosted: Mon Sep 08, 2014 4:03 pm
by Jocko
Hi taetae,

We need to standardize the LED commands (I already posted about it) and then the setup menu will be able to handle the LED.
But currently, this stays on the todo list...
(if I remember well I asked you to test some commands).

About fan control, the standard settings seems enough. :scratch

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

PostPosted: Mon Sep 08, 2014 8:23 pm
by jahotinc
sorry, i have been out for holidays a couple of weeks. I have to re-read last posts and i will be updated and ready.

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

PostPosted: Mon Sep 08, 2014 9:00 pm
by taetae
fvdw wrote:/proc/resoure-dump is not used on the 5big1

the leds defintions can be found in
Code: Select all
/devices/platform/leds-gpio/leds/


these leds are defined in the kernel
"net5big:blink:front",
"net5big:red:front",
"net5big:blue:front",
"net5big:red:sata0",
"net5big:red:sata1",
"net5big:red:sata2",
"net5big:red:sata3",
"net5big:red:sata4",

each entry will have some files, one of them will be brightness
the leds can be controlled by sending 0 or a value uptil 255 to this file
for instance doing this should switch off the blue led on the front side
Code: Select all
echo 0 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness


I do not find this:
Code: Select all
/devices/platform/leds-gpio/leds/

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

PostPosted: Tue Sep 09, 2014 12:49 pm
by Jocko
Hi taetae,

Do you test the command line for the blue front line?

Please, could you describe what is the current behavior of all leds of the 5big1.

I don't remember if you already tried these commands. Can you check if you can export some gpio.
So do this
Code: Select all
 echo 10 > /sys/class/gpio/export
 echo 11 > /sys/class/gpio/export
 echo 13 > /sys/class/gpio/export
 echo 14 > /sys/class/gpio/export
 echo 15 > /sys/class/gpio/export
(note: 12 must not be used)

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

PostPosted: Tue Sep 09, 2014 1:36 pm
by taetae
LEDs front and rear LEDs turn on and off intermittently
Code: Select all
~ # echo 10 > /sys/class/gpio/export
sh: write error: Device or resource busy

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

PostPosted: Tue Sep 09, 2014 1:52 pm
by Jocko
Please, taetae read fully my posts...

I asked two other points :
- test command for blue front LED
- describe our current behavior of all LEDs (binking or not,...)

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

PostPosted: Tue Sep 09, 2014 1:56 pm
by taetae
taetae wrote:LEDs front and rear LEDs turn on and off intermittently
Code: Select all
~ # echo 10 > /sys/class/gpio/export
sh: write error: Device or resource busy
~ # echo 11 > /sys/class/gpio/export
sh: write error: Device or resource busy
~ # echo 13 > /sys/class/gpio/export
sh: write error: Device or resource busy
~ # echo 14 > /sys/class/gpio/export
sh: write error: Device or resource busy
~ # echo 15 > /sys/class/gpio/export
sh: write error: Device or resource busy
~ #



sorry I have now added the comment

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

PostPosted: Tue Sep 09, 2014 2:18 pm
by Jocko
and about this command:
Code: Select all
echo 0 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness
front blue LED is switch off ?

if yes, test these commands
Code: Select all
echo 1 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness
front blue LED is switch on ?
Code: Select all
echo 127 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness
brightness is higher?
Code: Select all
echo 255 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness
this should the max brightness?

Please list the folder content of
Code: Select all
ls -al /devices/platform/leds-gpio/leds/net5big:blink:front
ls -al /devices/platform/leds-gpio/leds/net5big:blue:front
ls -al /devices/platform/leds-gpio/leds/net5big:red:sata0

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

PostPosted: Tue Sep 09, 2014 2:29 pm
by taetae
nothing changes always turn on and off and the command returns this:
Code: Select all
~ # echo 0 > /devices/platform/leds-gpio/leds/net5big:blue:front/brightness
sh: can't create /devices/platform/leds-gpio/leds/net5big:blue:front/brightness: nonexistent directory
~ #