Led off at night. How to? (TP-Link Archer C7 V5)

On a TP-Link Archer C7 V5 I want to turn off all the LEDs at night, for example from 00:00 to 7:00. I think there is no app for this (or not?). Using the Luci interface for convenience, then the alternative to the app could be the writing command on System ---> Scheduled task. Is it possible in this way?


At least on the C7v2, not all the LEDs are controllable through firmware. Black tape, unfortunately, is not scriptable, but may be needed for the power light.

Those that can be controlled could be switched from "normal" to "off" through a simple script that uses UCI set and commit commands. (Direct write to the sysfs entries for trigger and brightness is also possible, but not much easier.)

$ fgrep tp-link:  target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi
			label = "tp-link:green:system";
			label = "tp-link:green:usb";
			label = "tp-link:green:wlan5g";
			label = "tp-link:green:wlan2g";
			label = "tp-link:green:wan";
			label = "tp-link:orange:wan";
			label = "tp-link:green:lan1";
			label = "tp-link:green:lan2";
			label = "tp-link:green:lan3";
			label = "tp-link:green:lan4";
			label = "tp-link:green:wps";

From target/linux/ath79/generic/base-files/etc/board.d/01_leds
(these are not the UCI commands, but suggest what the default settings are)

        ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x02"
        ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
        ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
        ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
        ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x20"

You can get the current settings by looking at (from memory, as we have no power)

/sys/class/leds/tp-link:<some LED>/

in particular, things like trigger, and netdev (when present). You can cat the entries to see the values.

1 Like

Thanks to all for the quickly response of any type of solution. Can i suggest to implement this function on some package or directly on the firmware if is possible? This option is available on the original firmware.


possibly not a common need... but if you want to... you can install


then edit;

/usr/bin/wifi_schedule.sh # enable and disable functions

with your led commands / external script there... make a copy of it first in case you stuff it up...

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