Kulim13 / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 0 forks source link

power led behavior seems to be inverted from what you would expect #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Install of RC3 - single hard drive
2.  Power LED is off, which is great (that thing is way too bright) during 
normal use
3.  Hard disc goes to sleep, amber light flashes - which is great - but the 
power LED turns ON ?  
4.  Hard disc wakes up, Power LED turns off again ...

What Alt-F version are you using? Have you flashed it?
RC3 Flashed on a C1

What is the box hardware revision level? A1, B1 or C1? (look at the label
at the box bottom)
C1

What is your disk configuration? Standard, RAID (what level)...
Single disc

What operating system are you using on your computer? Using what browser?
OSX, CHROME

Please provide any additional information below.

Original issue reported on code.google.com by nine.by...@gmail.com on 26 Apr 2013 at 1:12

GoogleCodeExporter commented 9 years ago
I can't reproduce this on my rev-B1 box, so it must be a rev-C1 specific issue.

On my rev-B1 box, the power led turns off when both disks spins down, and turns 
on when any disk spins up.

Can you please ssh or telnet the box and after login as the root user try the 
following commands, and post the results:

echo 1 > /sys/class/leds/power:blue/brightness # power led OFF on B1
echo 0 > /sys/class/leds/power:blue/brightness # power led ON on B1

echo 1 > /sys/class/leds/left\:amber/brightness # left amber ON on B1
echo 0 > /sys/class/leds/left\:amber/brightness # left amber OFF on B1

Thanks

Original comment by whoami.j...@gmail.com on 26 Apr 2013 at 3:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for taking an interest.

The 4 commands you outlined all work correctly- so the underlying GPIO stuff 
seems to work perfectly... 

I will try and and find a second HD around to see if the problem still occurs 
with 2 disks- rule out logic problems with the single disc scenario.

Original comment by nine.by...@gmail.com on 27 Apr 2013 at 2:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can confirm the issue is present when there are two drives (at least in a 
non-raid setup).
As soon as either drive is put to sleep, the power led turns on.

When BOTH drives are woken up- the led turns back off, sometimes with a bit of 
dela

Original comment by nine.by...@gmail.com on 27 Apr 2013 at 4:56

GoogleCodeExporter commented 9 years ago
I can't really reproduce it in my rev-B1 box, either with one or two disks.

When using RAID, and it is in the degraded state, the leds show an abnormal 
behaviour, but that is not your case.

I will leave it open, as a reminder, but can't do nothing to fix it.

Original comment by whoami.j...@gmail.com on 1 May 2013 at 2:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fair enough ... totally understand

Do you mind giving me a rough idea where I'd find the config for this in the 
source (ie. what is the executable that monitors the HD state, and sets LED 
accordingly)  ?  I'd like to try and take a look to see what I could do make 
this function correctly on a C model.

Original comment by nine.by...@gmail.com on 8 May 2013 at 5:03

GoogleCodeExporter commented 9 years ago
Hi folks, I'm a new user of Alt-F.  It is a great project and I am very happy 
to be able to use 2Tb disks without a major problem. However I have the same 
led issue, where the led usage is reversed (dark when disks are in use). 

I have RC3 flashed on A1.
I have 2 x 2Tb disks in RAID1.
I'm using Windows 8 and Chrome browser.

No major hassle.  I'm happy.

Original comment by nick.sho...@gmail.com on 22 May 2013 at 2:46

GoogleCodeExporter commented 9 years ago
I've just flashed RC3 on my A1 unit and I experience the same problem. When the 
drives are running, the big D-Link button LED is turned off. When they go to 
sleep, the big D-Link button LED turn on for 1-2 seconds and then goes off 
again.

I'm formatting the disk and creating a RAID array at the moment, and the LED is 
off. The network activity LED on the other end is flashing a lot, but this is 
expected since the web interface is loading while creating the RAID array.

As for the HDD activity LED, they do not seems to be working at all. I will 
wait for the RAID array to be fully created and test further.

Original comment by guizmop...@gmail.com on 24 May 2013 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by whoami.j...@gmail.com on 24 May 2013 at 5:10

GoogleCodeExporter commented 9 years ago
After much investigation, I can confirm that all the LEDs are inverted. Maybe 
A1 and C1 hardware ground and +V LED circuit were inverted on the assebmly line.

I have a B1 unit too, but havn't installed Alt-F on it yet, as I've got 2TB of 
data on it to backup first.

Original comment by guizmop...@gmail.com on 24 May 2013 at 7:53

GoogleCodeExporter commented 9 years ago
I can confirm the led problem with inverted state on my C1 hardware as well. 
The other unit, a B1 is working properly. How this behavior can be fixed?

Original comment by stpeter...@gmail.com on 16 Jul 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Hi! 
for me at B1 power led work good - when two drives(single conf.) goes to sleep 
big power led turns off. when only one drive goes to sleep power led still on, 
BUT when i send a command to standby (via Disk Utilities page) for one of two 
drives (left or right) power led turns off when other drive is still working.

For me personnally will be great if big brightly power led will always off and 
only when there is an alarm or something very important it will turn on for 
informing.

Original comment by leshi...@gmail.com on 21 Aug 2013 at 1:12

GoogleCodeExporter commented 9 years ago
For future reference, the leds behaviour on a DNS-323 rev-B1 board is:

-blue disk leds: normally off, only blink when there are disk access
-blue network led: turns on when and active network cable is attached, and 
blink on network traffic
-power led:
 o normally on, turns off when both disks spins-down, then on again when one disk spins-up.
   (There is a bug here, it turns off when one disk spins-down)
 o heartbeat during fsck
 o fast blink during flashing
-amber disk leds:
 o normally off, briefly flash every two seconds when a disk is in the sleep state.
 o on when a RAID array is in the degraded state
 o blink twice a second during a RAID rebuild 

John-Paul has reported the following for the DNS-323 rev-A1 and DNS-323 rev-C1 
boards:

> -blue disk leds: normally off, only blink when there are disk access

Rev-A1: normally on; blink off when disk access.
Rev-C1: normally on; blink off when disk access.

> -blue network led: turn on when and active network cable is attached, 
> and blink on network traffic

Rev-A1: with cable normally off; blink on when network traffic.
Rev-C1: with cable normally on; blink off when network traffic.

> -power led:
>   o normally on, turns off when both disks spins-down, then on again 
> when one disk spins-up. (There is a bug here!)

Rev-A1 AND Rev-C1:

Normally off (both disks are spinning).

When off and both disks are spinning, it turns on when only diska is spun
down.  Bug (if you consider: power led on == both disks are spun down).

When off and both disks are spinning, it turns on when only diskb is spun
down.  Bug (if you consider: power led on == both disks are spun down).

When on and both disks are spun-down, turns off when only diska spins
up or when only diskb spins up or when both disks spin up.
Correct (if you consider: power led on == both disks are spun down).

But in both cases Rev-A1 AND Rev-C1 the behaviour should be reversed
(power led off == both disks are spun down) and the bug removed.

>   o heartbeat during fsck

Normal off.  Heart beat is blink on.

>   o fast blink during flashing

Did not observe.

> -amber disk leds:
>   o normally off, briefly flash every two seconds when a disk is in the 
> sleep state.

Rev-A1 AND Rev-C1: correct.

But since the blue disk leds are normally on, the amber faintly blinks
through the blue light.

>   o on when a RAID array is in the degraded state

Did not observe.

>   o blink twice a second during a RAID rebuild

Did not observe.

> What differences exists from the above to the A1 and C1 boxes? Don't 
> worry if you can't test them all, but please only report what you really 
> tested.

Still missing a description for the DNS-321.

Original comment by whoami.j...@gmail.com on 7 Oct 2013 at 6:58