OpenWrt Forum Archive

Topic: [TL-WR1043ND] Disable LEDs

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Is it possible to completely disable LEDs on a TP-Link TL-WR1043ND ? I can't find how to do it.

Thanks

It's possible.

swconfig dev rtl8366rb help wrote:

--switch
Attribute 5 (int): blinkrate (Get/Set LED blinking rate (0 = 43ms, 1 = 84ms, 2 = 120ms, 3 = 170ms, 4 = 340ms, 5 = 670ms))
--port
Attribute 3 (int): led (Get/Set port group (0 - 3) led mode (0 - 15))

My problem is that I want to switch off the WAN / Ethernet LED and the PWR led, which I can't control as they are not listed with the others in /sys/class/leds. So the solution from nebbia88 isn't a real one.

Nilfred, I didn't get what is supposed to do your command.

I tried to run swconfig dev rtl8336rb port 3 set led * without any significant results, and I didn't find any info on the web. A swconfig dev rtl8336rb port 3 get led returns 0.

robthebrew : Apparently, it could be the only solution. I'd prefer not to have to recompile anything and find a working solution on my installed system. But if I can't, I'll consider recompiling OpenWRT to fit my needs.

Moreover, such a solution prevent me from enabling / disabling the LEDs as I want (the best solution would be to be able to disable LEDs during night but to keep them enabled during the daytime, via a cron script).

Thanks

(Last edited by doupod on 26 May 2013, 23:10)

Power LED is hardwired, You'll need a black sticker.
I also try:

uci batch <<'EOF'
add network switch_port
set network.@switch_port[-1].device=rtl8366rb
set network.@switch_port[-1].port=0
set network.@switch_port[-1].led=2
add network switch_port
set network.@switch_port[-1].device=rtl8366rb
set network.@switch_port[-1].port=1
set network.@switch_port[-1].led=2
add network switch_port
set network.@switch_port[-1].device=rtl8366rb
set network.@switch_port[-1].port=2
set network.@switch_port[-1].led=2
add network switch_port
set network.@switch_port[-1].device=rtl8366rb
set network.@switch_port[-1].port=3
set network.@switch_port[-1].led=2
commit network
EOF
swconfig dev switch0 load /etc/config/network

Then checked

swconfig dev switch0 port 1 get led

And it get the config but nothing happen.

I read somewhere that disabling the port will still link up, but I didn't try for obvious reasons.

Also, it isn't the first time that someone ask turn all the LEDs off at night. But I can't find the thread.

very old thread, but I tried to disable the leds  on my old TL-WR1043NDv1
which was easy for the platform leds (wlan, usb, system)
but not so for the switch leds and ended up on this post.
It helped me to find something that actually works:
/etc/config/network:
config switch_port
    option device 'rtl8366rb'
    option port '0'
    option led '0'

switching between led=0 and led=2 disables/enables(blink) led4
(in my setup I have only an ethernet cable on port4, did not try other port leds)

Only the power led stays lit.

The discussion might have continued from here.