LED control

LED control

Postby taetae » Mon Sep 08, 2014 3:46 pm

guys you can not create a web interface for management of the LEDs and the power of the fan on and ???
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 08, 2014 4:03 pm

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
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 jahotinc » Mon Sep 08, 2014 8:23 pm

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.
jahotinc
 
Posts: 35
Joined: Mon Apr 07, 2014 11:39 am

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

Postby taetae » Mon Sep 08, 2014 9:00 pm

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/
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 09, 2014 12:49 pm

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)
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 09, 2014 1:36 pm

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
Last edited by taetae on Tue Sep 09, 2014 1:54 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 » Tue Sep 09, 2014 1:52 pm

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,...)
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 09, 2014 1:56 pm

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
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 09, 2014 2:18 pm

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
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 09, 2014 2:29 pm

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
~ #
Last edited by taetae on Tue Sep 09, 2014 9:04 pm, edited 1 time in total.
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Next

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 6 guests