LED not working

LED not working

Postby TheBigSysa » Fri Jun 05, 2020 7:06 am

Hi there,

first of all thanks for this incredible free firmware, everything works like a charm.

I just wanted to ask if there is any other way to active the LED of the CloudBox then Setup -> Other Settings, because rn it doesn't work for me. Currently the status is activated but the LED isn't activated at all. When I'm pressing the buttons Power LED on or Power LED off the LED shortly blinks red. Is the problem known and is there any solution?

Greetings
TheBigSysa
 
Posts: 11
Joined: Sun May 31, 2020 11:40 am
Location: Germany

Re: LED not working

Postby Jocko » Fri Jun 05, 2020 9:33 am

Hi

It should work! :dry

So need to investigate that. Then:
- what fw version do you have ?
- what kernel version ?
Code: Select all
uname -a

- leds class
Code: Select all
ls -a /sys/class/leds/


Now if you run
Code: Select all
/etc/leds_bootup
and
Code: Select all
/etc/leds_switch on
and
Code: Select all
/etc/leds_switch off
LED is on or off after that ?
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LED not working

Postby TheBigSysa » Fri Jun 05, 2020 2:30 pm

So, I am running 18-2 as fw and the commands are returning the following:

Code: Select all
uname -a
Linux fvdwsl-base.local 4.14.133 #1 PREEMPT Wed Jul 17 14:46:56 CEST 2019 armv5tel unknown unknown GNU/Linux

Code: Select all
ls -a /sys/class/leds
dir contains: familybox:blue:sata and familybox:red:fail

After running the three commands the LED is still off, like always :dontknow
btw. running the scripts always returns the env variables, is that a wanted behaviour?

Greetings
TheBigSysa
 
Posts: 11
Joined: Sun May 31, 2020 11:40 am
Location: Germany

Re: LED not working

Postby Jocko » Fri Jun 05, 2020 3:40 pm

so if you run now only the command
Code: Select all
/etc/leds_switch on
The blue led should be on ?
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LED not working

Postby TheBigSysa » Fri Jun 05, 2020 4:09 pm

No unfortunately it isn't, i could sent you video about what's happening? The red LED is blinking just a few milli seconds..
TheBigSysa
 
Posts: 11
Joined: Sun May 31, 2020 11:40 am
Location: Germany

Re: LED not working

Postby Jocko » Fri Jun 05, 2020 4:49 pm

Ok so can you post the full output of
Code: Select all
 sh -x /usr/bin/led -w on
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LED not working

Postby TheBigSysa » Fri Jun 05, 2020 4:58 pm

Output is
+ [ 0 = 1 ]
+ [ -z ]
+ . /etc/leds_name_table
+ head -1 /etc/platform
+ NAS=cloudbox
+ [ -h /sys/class/leds/ns_lite_v2:blue:sata ]
+ BFILE=/rw_fs/etc/led-brightness
+ MaxLevel=255
+ frontred=familybox:red:fail
+ frontblue=familybox:blue:sata
+ [ -f /rw_fs/etc/led-brightness ]
+ brightness_level=255
+ [ cloudbox = rspb1 ]
+ [ cloudbox = rspb2 ]
+ [ cloudbox = rspb3 ]
+ [ cloudbox = rspb4 ]
+ lflag=0
+ wflag=0
+ ledname=frontblue
+ option=brightness
+ value=
+ SYS=/sys/class/leds
+ getopts :nhl:o:w: name
+ wflag=1
+ value=on
+ getopts :nhl:o:w: name
+ eval echo $frontblue
+ echo familybox:blue:sata
+ LED=familybox:blue:sata
+ [ 0 -eq 1 ]
+ [ 1 -eq 1 ]
+ [ on = on ]
+ value=255
+ [ 255 = off ]
+ [ 255 -lt 0 ]
+ [ 255 -gt 255 ]
+ echo 255
+ [ cloudbox = 5big2 ]
+ [ cloudbox = 2big2 ]
+ [ cloudbox = 2bignas ]
+ shift 2
TheBigSysa
 
Posts: 11
Joined: Sun May 31, 2020 11:40 am
Location: Germany

Re: LED not working

Postby Jocko » Fri Jun 05, 2020 5:10 pm

all seems right :scratch
Another post
Code: Select all
 grep '' ./sys/class/leds/familybox:blue:sata/*
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LED not working

Postby TheBigSysa » Fri Jun 05, 2020 5:15 pm

Code: Select all
grep '' /sys/class/leds/familybox:blue:sata/*
returns
/sys/class/leds/familybox:blue:sata/brightness:255
/sys/class/leds/familybox:blue:sata/max_brightness:255
/sys/class/leds/familybox:blue:sata/sata:0
/sys/class/leds/familybox:blue:sata/trigger:none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock usbport timer disk-activity disk-read disk-write ide-disk heartbeat gpio [default-on]
TheBigSysa
 
Posts: 11
Joined: Sun May 31, 2020 11:40 am
Location: Germany

Re: LED not working

Postby Jocko » Sat Jun 06, 2020 10:03 am

Hi

So still ok on this side, before using the former kernel version, just a try to see if red led is ok
Code: Select all
led -l familybox:red:fail -w 255
check if red led is on to switch off it do then
Code: Select all
led -l familybox:red:fail -w 0
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Next

Return to Lacie cloudbox (white casing)

Who is online

Users browsing this forum: No registered users and 6 guests

cron