Asus RT-AX53U: Switch off LEDs

I want to deactivated all LEDs on the frontside and the backsied of an Asus RT-AX53U

With

root@AX53U-S1:~# ubus call system board
{
	"kernel": "5.15.137",
	"hostname": "AX53U-S1",
	"system": "MediaTek MT7621 ver:1 eco:3",
	"model": "ASUS RT-AX53U",
	"board_name": "asus,rt-ax53u",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "23.05.2",
		"revision": "r23630-842932a63d",
		"target": "ramips/mt7621",
		"description": "OpenWrt 23.05.2 r23630-842932a63d"
	}
}

This works with a WSM20, but not with this Asus.

To compare with the WSM20:

root@WSM20-S1:/sys/class/leds# ls -1
green:led1
green:led3
mt76-phy0
mt76-phy1
red:led4
red:system
white:led2
white:led5
white:system

This is the AX53U:

root@AX53U-S1:/sys/class/leds# ls -1
blue:power
blue:usb
mt76-phy0
mt76-phy1

Unfortunately this doesn't work

root@AX53U-S1:/sys/class/leds# echo 0 > /sys/class/leds/blue:system/brightness
-ash: can't create /sys/class/leds/blue:system/brightness: nonexistent directory

Try

echo 0 > /sys/class/leds/blue:power/brightness

(Note: this is blue:power and not blue:system, as in your example. Also: the ":" is just part of the filename, which is why it complains that this does not exist. Colons can be part of a filename on Linux systems, unlike on Windows)

1 Like

No error, but 3 of 5 LED blink as before.

root@AX53U-S1:/sys/class/leds/blue:power# ls -la
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          4096 Nov 14 14:03 brightness
lrwxrwxrwx    1 root     root             0 Nov 14 14:05 device -> ../../../leds
-r--r--r--    1 root     root          4096 Nov 14 14:05 max_brightness
lrwxrwxrwx    1 root     root             0 Nov 14 14:05 subsystem -> ../../../../../class/leds
-rw-r--r--    1 root     root             0 Nov 14 14:03 trigger
-rw-r--r--    1 root     root          4096 Nov 14 14:05 uevent
root@AX53U-S1:/sys/class/leds/blue:usb# ls -la
drwxr-xr-x    3 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          4096 Nov 14 14:03 brightness
lrwxrwxrwx    1 root     root             0 Nov 14 14:09 device -> ../../../leds
-r--r--r--    1 root     root          4096 Nov 14 14:09 max_brightness
drwxr-xr-x    2 root     root             0 Nov 14 14:03 ports
lrwxrwxrwx    1 root     root             0 Nov 14 14:09 subsystem -> ../../../../../class/leds
-rw-r--r--    1 root     root             0 Nov 14 14:03 trigger
-rw-r--r--    1 root     root          4096 Nov 14 14:09 uevent
root@AX53U-S1:/sys/class/leds/mt76-phy0# ls -la
drwxr-xr-x    2 root     root             0 Nov 14 14:03 .
drwxr-xr-x    4 root     root             0 Nov 14 14:03 ..
-rw-r--r--    1 root     root          4096 Nov 14 14:03 brightness
lrwxrwxrwx    1 root     root             0 Jan 20 00:49 device -> ../../../0000:02:00.0
-r--r--r--    1 root     root          4096 Jan 20 00:49 max_brightness
lrwxrwxrwx    1 root     root             0 Jan 20 00:49 subsystem -> ../../../../../../../../class/leds
-rw-r--r--    1 root     root             0 Nov 14 14:03 trigger
-rw-r--r--    1 root     root          4096 Jan 20 00:49 uevent
root@AX53U-S1:/sys/class/leds/mt76-phy1# ls -la
drwxr-xr-x    2 root     root             0 Nov 14 14:03 .
drwxr-xr-x    4 root     root             0 Nov 14 14:03 ..
-rw-r--r--    1 root     root          4096 Nov 14 14:03 brightness
lrwxrwxrwx    1 root     root             0 Jan 20 00:53 device -> ../../../0000:02:00.0
-r--r--r--    1 root     root          4096 Jan 20 00:53 max_brightness
lrwxrwxrwx    1 root     root             0 Jan 20 00:53 subsystem -> ../../../../../../../../class/leds
-rw-r--r--    1 root     root             0 Nov 14 14:03 trigger
-rw-r--r--    1 root     root          4096 Jan 20 00:53 uevent

After a reboot 4 LED blink now, not 5 as before.

root@AX53U-S1:/sys/class/leds/mt76-phy1# echo 0 > /sys/class/leds/blue:power/bri
ghtness

1 LED less, 3 are blnking

echo 0 > /sys/class/leds/mt76-phy0/brightness

2 LED still blinking

echo 0 > /sys/class/leds/mt76-phy1/brightness

1 LED still blinking. It is the LED with "1" on the case.

Trying again "USB", which changed nothing before.

root@AX53U-S1:/sys/class/leds# echo 0 > /sys/class/leds/blue:usb/brightness

1 LED still blinks.

Manual

Looks like my device is a little bit different, than the manual shows.

LED 4: 2.4GHz
1st LED to the left: doesn't blink
2nd LED to the left: blinks

WAN is not connected

2 LAN ports are connected.

When I remove all ethernet cables nothing blinks.

Connecting a cable to port 1 nothing blinks

Adding a cable to port 2 1 LED blinks

Switching the cable to LAN port 3 1 LED (no. 2, the same as before) blinks.

Connecting LAN2 and LAN3 1 LED blinks.

The reason for 4 instead of 5 LED was, because my enigma-box changed from standbye to deep-sleep. In standbye the box is pingable in deep sleep not.

root@AX53U-S1:~# find /sys/class/leds/*/brightness
/sys/class/leds/blue:power/brightness
/sys/class/leds/blue:usb/brightness
/sys/class/leds/mt76-phy0/brightness
/sys/class/leds/mt76-phy1/brightness
root@AX53U-S1:~# cat /etc/config/system 

config system
	option hostname 'AX53U-S1'
	option ttylogin '0'
	option log_size '64'
	option urandom_seed '0'
	option compat_version '1.1'
	option zonename 'UTC'
	option log_proto 'udp'
	option conloglevel '8'
	option cronloglevel '5'

config timeserver 'ntp'
	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 'led_usb'
	option name 'USB'
	option sysfs 'blue:usb'
	option trigger 'usbport'
	list port 'usb1-port2'

config led 'led_wlan2g'
	option name 'WiFi 2.4GHz'
	option sysfs 'mt76-phy0'
	option trigger 'phy0tpt'

config led 'led_wlan5g'
	option name 'WiFi 5GHz'
	option sysfs 'mt76-phy1'
	option trigger 'phy1tpt'

Looks like there is no section for lan led.