Can't configure Leds back to normal Archer A7

Hello, I'm new to the OpenWRT firmware, I'm finding it challenging to configure my leds to their default settings.
I've been looking for a while because I don't really know what I'm doing, but there isn't a topic about C7 or A7 (since they're similar) on how to configure these leds.
Here are some info that may be useful; let me know if you need anything else.

The available LED names are as follows: green:lanX for the switch ports I want to light up when having connection, and green:wan for the main LED, that hopefully should work in the same way.
names

My cat /etc/config/system, which I'm pretty sure isn't correct.

config system
        option hostname 'OpenWrt'
        option timezone 'UTC'
        option ttylogin '0'
        option log_size '64'
        option urandom_seed '0'

config timeserver 'ntp'
        option enabled '1'
        option enable_server '0'
        list server '0.openwrt.pool.ntp.org'
        list server '1.openwrt.pool.ntp.org'
        list server '2.openwrt.pool.ntp.org'
        list server '3.openwrt.pool.ntp.org'

config led
        option name 'WAN'
        option sysfs 'green:wan'
        option trigger 'netdev'
        list mode 'link'
        list mode 'tx'
        list mode 'rx'
        option dev 'eth0'

config led
        option name 'LAN1'
        option sysfs 'green:lan1'
        option trigger 'netdev'
        option dev 'eth0.1'
        list mode 'link'

config led
        option name 'LAN2'
        option sysfs 'green:lan2'
        option trigger 'netdev'
        option dev 'eth0.2'
        list mode 'link'

config led
        option name 'LAN3'
        option sysfs 'green:lan3'
        option trigger 'netdev'
        option dev 'eth0.3'

config led
        option name 'LAN4'
        option sysfs 'green:lan4'
        option trigger 'netdev'
        option dev 'eth0.4'

These are my VLANs

And finally, these are the devices that show up when selecting the trigger 'Network device activity (kernel: netdev)':
devices

Currently, I just want to make it work like it did before I messed with it, blinking on the right ports when having connection. Thanks in advance.

NOTE: Only ports 2 and 4 (as shown in print screen) are active currently, but with the current config it's showing as ports 1 and 2

Reset the router ?

Default config:

config led 'led_wan'
        option name 'WAN'
        option sysfs 'green:wan'
        option trigger 'switch0'
        option port_mask '0x02'

config led 'led_lan1'
        option name 'LAN1'
        option sysfs 'green:lan1'
        option trigger 'switch0'
        option port_mask '0x04'

config led 'led_lan2'
        option name 'LAN2'
        option sysfs 'green:lan2'
        option trigger 'switch0'
        option port_mask '0x08'

config led 'led_lan3'
        option name 'LAN3'
        option sysfs 'green:lan3'
        option trigger 'switch0'
        option port_mask '0x10'

config led 'led_lan4'
        option name 'LAN4'
        option sysfs 'green:lan4'
        option trigger 'switch0'
        option port_mask '0x20'
2 Likes

I did not mention it, but I really wanted to avoid resetting the router since it looked like a simple fix, that I was just unaware on how to do it, but thanks.

That did it, earlier in the day I did try something similar to it, but maybe I just did something else wrong, not sure but thanks, now it's all workin :smiley:

If is not too much to ask, where did you get this from? Is there a GitHub or something where they have this stuff, maybe some docs?

I own such a device and I do not play with the LEDs. :wink:

Here's a tip on how to recreate the default system config file without resetting the entire device.

mv /etc/config/system /etc/config/system_current.backup
/bin/config_generate
2 Likes

It looks like the LED configuration comes from lines 360-368 of 01_leds: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ath79/generic/base-files/etc/board.d/01_leds;h=5855d2a928755fd93c72831f5522b16c5b7ed639;hb=HEAD#l360

2 Likes

Fair enough lmao, and thanks for the tip.

1 Like

Going to bookmark this one just in case, but I'm not eager to mess with these settings again. Thanks :smiley:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.