FVDW-SL on a Seagate Personal Cloud - additional steps

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby m1m1sm1t1c0 » Fri Feb 08, 2019 2:36 pm

fvdw wrote:there is also this file
Code: Select all
/sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/sata

what is the content, (I guess it is zero)
Code: Select all
cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/sata


Code: Select all
root@nas-mimismo:/ # cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0
/sata
0


fvdw wrote:try to write the value 1 to it and see if the white led comes on and reacts on sata activity
Code: Select all
echo 1 > /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/sata

Nop...
m1m1sm1t1c0
 
Posts: 42
Joined: Tue Jun 28, 2016 12:50 pm

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby fvdw » Fri Feb 08, 2019 2:38 pm

ok what is the value of the brightness and max_brightness files
Code: Select all
cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/brightness
cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/max_brightness
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby fvdw » Fri Feb 08, 2019 2:40 pm

if brightness = 0 and max_brightness = 255 write 255 to brighness
Code: Select all
echo 255 > /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/brightness
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby Jocko » Fri Feb 08, 2019 3:17 pm

@fvdw

Maybe a recall. With lacie driver, default led values are not populated in /sys on nas booting. (it is why you have this script: leds_bootup)

@m1m1sm1t1c0
So for making test we need to set some values in /sys.
=> red LED,
Code: Select all
echo 255> /sys/class/leds/cumulus:red:sata0/brightness
echo 0 >/sys/class/leds/cumulus:red:sata0/brightness


=> white LED, as it is on with sata trigger on nas booting
Code: Select all
echo 'default-on' > /sys/class/leds/srn21c:white:sata0/trigger
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
echo 1 >  /sys/class/leds/srn21c:white:sata0/sata


Now after populating sys folder, check if
white led is blinking on disk access ?
if
Code: Select all
echo 0 > /sys/class/leds/srn21c:white:sata0/brightness
switch off the white LED (but red LED stays off ?)
if
Code: Select all
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
switch on again the white LED and it is still blinking on disk access
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby m1m1sm1t1c0 » Sat Feb 09, 2019 1:38 pm

fvdw wrote:
Code: Select all
cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/brightness
cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0/max_brightness


Code: Select all
root@nas-mimismo:/ # cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0
/brightness
255
root@nas-mimismo:/ # cat /sys/devices/platform/leds-ns2l/leds/srn21c:white:sata0
/max_brightness
255
m1m1sm1t1c0
 
Posts: 42
Joined: Tue Jun 28, 2016 12:50 pm

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby m1m1sm1t1c0 » Sat Feb 09, 2019 1:42 pm

Jocko wrote:
Code: Select all
echo 255> /sys/class/leds/cumulus:red:sata0/brightness
echo 0 >/sys/class/leds/cumulus:red:sata0/brightness


Code: Select all
root@nas-mimismo:/ # echo 255> /sys/class/leds/cumulus:red:sata0/brightness

root@nas-mimismo:/ # echo 0 > /sys/class/leds/cumulus:red:sata0/brightness


Jocko wrote:
Code: Select all
echo 'default-on' > /sys/class/leds/srn21c:white:sata0/trigger
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
echo 1 >  /sys/class/leds/srn21c:white:sata0/sata


Code: Select all
root@nas-mimismo:/ # echo 'default-on' > /sys/class/leds/srn21c:white:sata0/trig
ger
root@nas-mimismo:/ # echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
root@nas-mimismo:/ # echo 1 >  /sys/class/leds/srn21c:white:sata0/sata


Jocko wrote:white led is blinking on disk access ?


Yes!!!

Jocko wrote:if
Code: Select all
echo 0 > /sys/class/leds/srn21c:white:sata0/brightness
switch off the white LED


Yes

Jocko wrote:but red LED stays off ?


Yes

Jocko wrote:if
Code: Select all
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
switch on again the white LED and it is still blinking on disk access


Yes
m1m1sm1t1c0
 
Posts: 42
Joined: Tue Jun 28, 2016 12:50 pm

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby Jocko » Sat Feb 09, 2019 2:27 pm

Hi,

:thumbup
So LED control is restored !

Two additional tests (and last):
- check if this platform type may change the LED brightness level:
Code: Select all
echo 10 > /sys/class/leds/srn21c:white:sata0/brightness
brightness level is lower ?

- Check the red LED behaviour
Code: Select all
echo 0 > /sys/class/leds/srn21c:white:sata0/brightness
echo 255 > /sys/class/leds/cumulus:red:sata0/brightness
red LED is on ?

To restore do
Code: Select all
echo 0> /sys/class/leds/cumulus:red:sata0/brightness
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby m1m1sm1t1c0 » Sat Feb 09, 2019 3:21 pm

Jocko wrote:
Code: Select all
echo 10 > /sys/class/leds/srn21c:white:sata0/brightness
brightness level is lower ?


Nop...

Jocko wrote:
Code: Select all
echo 0 > /sys/class/leds/srn21c:white:sata0/brightness
echo 255 > /sys/class/leds/cumulus:red:sata0/brightness
red LED is on ?


Yes!!!... Only red... yeah!...

Jocko wrote:
Code: Select all
echo 0> /sys/class/leds/cumulus:red:sata0/brightness
echo 255 > /sys/class/leds/srn21c:white:sata0/brightness


Yes, on again the white LED and it is still blinking on disk access
m1m1sm1t1c0
 
Posts: 42
Joined: Tue Jun 28, 2016 12:50 pm

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby Jocko » Sat Feb 09, 2019 5:04 pm

Thank you

So I can now implement LED control on you

Tomorrow, I go to send you a partial update package to implement the LED control
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: FVDW-SL on a Seagate Personal Cloud - additional steps

Postby Jocko » Sun Feb 10, 2019 8:23 am

Hi

As we need yet to work on the kernel, your nas is still monitored as a nwsp2 platform. However LED commands should now be ok.

So store the archive in your fvdw share (create it if it does not yet exist) and do
Code: Select all
tar -xf /direct-usb/fvdw/srn21c-led-fix-10feb19.gz -C /
(Don't forget "-C /" in the command line)
Now do
Code: Select all
led -n     (<--------------- you should get two lines)
/etc/leds_bootup         (<---------------white led should be on and blinking on disk access)

/etc/leds_switch off     (<--------------- led should be off)
/etc/leds_switch on      (<--------------- led should be on)

Now open the firmware web-interface, and go to Sytem Management -> Setup-> tab: Other settings
- Here the LED state should be reported rightly, and try the commands LED ON/OFF
- Use LED on/off at boot command to have "LED off at next boot". Then reboot the nas and see if LED is off when the boot script is finished

I hope all is now ok on the LED side.

Other point, shutdown/restart commands:
on a shell terminal, do
Code: Select all
ls -l /usr/sbin/buttonsd
ls -l /sbin/rebootd-spd
ls -l /sbin/standbyd-spd

reboot
reboot command shutdown the nas and nas is rebooting ?

From the firmware web-interface ( Sytem Management -> Shutdown/Restart), Nas shutdown and Nas Restart command do the job ?

Now, try to use the power switch:
-What happens if you press it and keep it pressed for 1-2 seconds and then release it? Nas reboots ?
-What happens if you press it and keep it pressed for more then 5 seconds? Nas shutdown ?

Now still from a shell terminal do:
Code: Select all
/share/1000/fvdw/evtest /dev/input/event0
then press the button and post all the output
(do cntrl+c to kill evtest)
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Seagate personal cloud

Who is online

Users browsing this forum: No registered users and 3 guests

cron