New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LED issues #4
Comments
I will try adding the below code posted by forum user nyt: --- a/attitude_adjustment/target/linux/armadaxp/base-files/usr/sbin/wan_monitor
|
That takes care of the WAN LED status. What about the other 2 and the MAC address issue? |
Yes I will be looking into those as well. It would be better if they were separated out as individual issues for track completed work. |
Ok, this issue remains about LED's. I'm gonna create another thread for the MAC address. Regards, |
Thanks :) |
I'm coping your solution post to here for quick reference.For noob-ish users like me. Until Chadster gets the chance to update his firmware, you can sort the LED lighting issue as follows:
WAN_IF=pppoe-wan
Good luck! |
I think LED solution for PPPoe isn't going to work well in the long run. We need code that sets WAN_IF to the right wan interface configured. |
Currently the wan_monitor script pings heartbeat.belkin.com to see if the internet connection is up. I think a better best practice would be to have it ping the Default Gateway instead. |
After modifying wan_monitor file per my instructions above, the issue remains open ONLY for e-sata led staying ON. WAN LED functions correctly and the WPS LED stays OFF. nitroshift PS. For PPPoes users it is safe to remove wan6 interface altogether. |
But won't the internet LED be amber for PPPoe internet connections unless the user manually goes in and changes WAN_IF to "WAN_IF=pppoe-wan"? Wouldn't it show amber for all other types of internet connections other than DHCP Client and Static Address? If it's too big a job for the next release we can just get the Internet LED to work for DHCP Client and Static Address internet connections in the meantime |
You are right about the WAN LED and different connection methods but it is fine for me to leave it set up for DHCP and Static addresses, as long as the instructions for PPPOE users how to modify the WAN_IF part are posted and visible. And should we sort out the e-sata LED issue, this firmware is stable enough for every day use. |
I haven't found anything related to esata in any conf files, HOWEVER I came across IEEE1394 files. Could these relate to the esata port handling? |
I'm not sure about the IEEE1394 file but I will look into it. The Internet LED is important and it needs to work properly. I'm looking for script code to find the interface used for the Internet connection and set WAN_IF to it. This should be fairly easy but I can't move on to the eSATA LED issue without it. |
I found the command to set WAN_IF but can't test it since I don't have PPPoe or another type of internet connection. I did have a testing platform for different types of internet connection but I turned it into my OpenWRT development platform 😄
|
I will test it when I get home, in about 7 hours and will update this issue with my findings. |
I tested it and it works! Let's move onto the eSATA LED. |
If you can test on PPPoe that would be great. |
I will when I get home. I have updated wan_config file but will see the results when I get home. |
In the same location wan_monitor file is in the file to control all LED's.
Now it's just a matter of finding out where to put the commands. I don't have an e-sata drive to test with. |
WAN_IF=uci get network.wan._orig_ifname works on PPPoe too. leds_monitor refuses to display anything readable when opened with notepad++. |
Great, if "WAN_IF=uci get network.wan._orig_ifname " works for PPPoe it should work for all other WAN types. This will be included in the next release. |
We can easily turn on and off the esata LED but I would like it to function properly. Do you have an esata drive for testing? |
I finally checked the IEEE1394 file you mention and I think that might be it. |
That is the file I was talking about too, but unfortunately I don't have an esata drive at home, I have a couple at work though and I'll bring an enclosure tomorrow at home with a spare blank hard-disk. |
Thanks much appreciated 😃 |
If you have any modifications to the 10-ieee1394 file, please post them, I've ran to the office and got the esata enclosure connected to the router. |
How does the LED behave with the enclosure? I'm guessing it doesn't change. I will write the LED control script for 10-ieee1394 shortly. |
It doesn't matter whether the enclosure is connected or not, esata LED stays ON. |
Found something in /sys/class/leds/tlc59116:led_esata/ |
Yes that's what the other script send data too for LED control (the hardware layer API). |
I'm working on it. |
You might want to look in the Belkin patch submissions regarding led fixes and their implementation for clues. I'm not sure the esata led works in the stock firmware other than being turned off. https://github.com/jimmychungbelkin/Mamba/tree/master/barrier_breaker/belkin/patch_submission |
I looked into those then had an idea: is it possible to have a console output in real time while booting in which case we can see the exact process that triggers the e-sata LED to light up? |
The USB to TTL has console boot output but it's not much different the dmesg. |
I found this in the system log: [ 168.234083] leds-tlc59116: Using tlc59116 16-bit LED driver at slave address 0x68 If you look under /sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-0068/leds/tlc59116:led_esata, you will see the brightness file is already set to 0. Also, /usr/sbin/ledctrl led_esata off or on has no effect. The brightness file gets changed from 0 to 255 and back again, but somewhere the mapping of the brightness file to the LED is not correct. |
I noticed that too. I'm able to login to the Linksys stock firmware and turn the LED's on and off except the esata. Which makes me wonder if it works in any firmware other than to be turned off. |
On stock firmware the esata LED works correctly. |
Interesting thanks for confirming that. Do you have an USB to TTL cable? I can give you direction on how to log into the stock firmware. |
Here is my final 10-usb script. Is there a way I can get you the actual file to incorporate in the image? #!/bin/sh Copyright (C) 2009 OpenWrt.orgcase "$ACTION" in |
Does this solve the esata led issue as well? I will include this in the next release along with the internet led fix. You could add it to your image as a patch in the target directory possibly. |
This is only to make the USB LEDs work. I added some logger lines to /etc/hotplug.d/ieee1394/10-ieee1394, but I did not see any entries when I connected and disconnected my eSATA drive. The system log did show notices from the kernel that the drive was attached, but the hotplug script was never called. |
And thanks for adding it to the next release. I look forward to testing it. |
To see how the Linksys stock firmware controls the esata led you might want look at their WRT1900AC GPL Tar file. |
This file WRT1900AC_FW_v1.1.8.161917_SP2/src/mod_bdutil/platform/mrvl_armada/leds.c is the only one with eSATA stuff in it. This info might be useful: /* Activity blinking interrups */ /* Setting MPP46 to 0x0 will select GPIO control. |
And: /* |
Shouldn't one line that selects the control section be uncommented? |
Those are just notes. This stuff is from the C file in the Linksys stock firmware. There are a couple methods that turn the LED on and off, but I think we need the mapping stuff for Mamba to be corrected. |
Yes it's odd that they commented out the line below: |
That isn't a setting. It is just information about which group it is in. The code talks about how setting the groups is what makes the LEDs function. |
As far as I'm concerned the esata LED issue is closed as I'm using an external HDD hooked up to the router via esata :D |
FYI |
The E-sata led issue is still open. |
We have a solution for the esata led but it's a little complex and I need to do some testing first. |
I'm going to start working on this issue again. |
Thanks for reopening this issue keep up the good work |
Hey All! Although this one is closed, I have not found any other place to report these... I have a relatively new Linksys wrt1900ACS and 1) the power, WAN, 2.5GHz and 5GHz white LEDs are all dimmed like you talked aboveRunning OpenWRT, I can set the LED to simply stay on, and with the following command, I can verify that brightness is at its brightest
Using the 2) the triggers of some LEDs cannot be changeda) Using LuCI, I'm trying to set different triggers for eg. the 2.5 and 5GHz LEDs. For example to simple stay on. But the LEDs default to their normal config and flicker instead.b) Additionally, while there are no named LEDs for the 4 UTP ports, there are seven unnamed LEDs, which also cannot be turned on:
Thank & regards, |
E-sata LED stays ON, even though nothing is plugged in the e-sata port and the WPS keeps blinking at all times. Also, WAN MAC address stays set at 00:00:00:00:00.
The text was updated successfully, but these errors were encountered: