Page 1 of 3

LED not working

PostPosted: Fri Jun 05, 2020 7:06 am
by TheBigSysa
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

Re: LED not working

PostPosted: Fri Jun 05, 2020 9:33 am
by Jocko
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 ?

Re: LED not working

PostPosted: Fri Jun 05, 2020 2:30 pm
by TheBigSysa
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

Re: LED not working

PostPosted: Fri Jun 05, 2020 3:40 pm
by Jocko
so if you run now only the command
Code: Select all
/etc/leds_switch on
The blue led should be on ?

Re: LED not working

PostPosted: Fri Jun 05, 2020 4:09 pm
by TheBigSysa
No unfortunately it isn't, i could sent you video about what's happening? The red LED is blinking just a few milli seconds..

Re: LED not working

PostPosted: Fri Jun 05, 2020 4:49 pm
by Jocko
Ok so can you post the full output of
Code: Select all
 sh -x /usr/bin/led -w on

Re: LED not working

PostPosted: Fri Jun 05, 2020 4:58 pm
by TheBigSysa
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

Re: LED not working

PostPosted: Fri Jun 05, 2020 5:10 pm
by Jocko
all seems right :scratch
Another post
Code: Select all
 grep '' ./sys/class/leds/familybox:blue:sata/*

Re: LED not working

PostPosted: Fri Jun 05, 2020 5:15 pm
by TheBigSysa
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]

Re: LED not working

PostPosted: Sat Jun 06, 2020 10:03 am
by Jocko
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