Multiple triggers for the same LED

Hi everyone:

As I am working in some details of fixing things related to the GPIO in TP -Link Archer C6 v3, I have found an issue regarding the ethernet ports and the LEDs.

The device just has one LED for LAN conectivity. By default, four ports of the switch are in the LAN side and the trigger is "br-lan" interface:

system.led_lan=led
system.led_lan.sysfs='green:lan'
system.led_lan.trigger='netdev'
system.led_lan.mode='link'
system.led_lan.name='LAN'
system.led_lan.dev='br-lan'

This is a mistake, because br-lan is a virtual bridge interface, and always is turned on. So the LED is always on, also when all the ethernet ports are disconnected.

I tried to put four configurations, one for each interface:

system.led_lan1=led
system.led_lan1.sysfs='green:lan'
system.led_lan1.trigger='netdev'
system.led_lan1.mode='link'
system.led_lan1.name='LAN'
system.led_lan1.dev='lan1'

system.led_lan2=led
system.led_lan2.sysfs='green:lan'
system.led_lan2.trigger='netdev'
system.led_lan2.mode='link'
system.led_lan2.name='LAN'
system.led_lan2.dev='lan2'

system.led_lan3=led
system.led_lan3.sysfs='green:lan'
system.led_lan3.trigger='netdev'
system.led_lan3.mode='link'
system.led_lan3.name='LAN'
system.led_lan3.dev='lan3'

system.led_lan4=led
system.led_lan4.sysfs='green:lan'
system.led_lan4.trigger='netdev'
system.led_lan4.mode='link'
system.led_lan4.name='LAN'
system.led_lan4.dev='lan4'

But this does not work, it only applies the last one (in this case, the LED is only driven by the LAN4 port).

There is any way to configure this to achieve that any of the four LAN ports can activate the LAN LED when it is up/tx/rx ?

Thanks!!

Pablo.

1 Like

Same question I have, probably no solution...

Probably this is a common issue because a lot of devices share the same LED for indicating wired LAN activity (shared between all LAN eth ports) :sweat_smile:

1 Like