LED control for GL-MT1300

I did not find a solution in that thread. Maybe it is not possible due to hw limitations?
Maybe it is not sw controlled? I would like some feedback from owners of this device

Running: OpenWrt 23.05.2, r23630-842932a63d

TY

1 Like

please post output this commands:

find /sys/class/leds/*/
uci show | grep system | grep led

system.@led[0]=led
system.@led[0].name='off'
system.@led[0].sysfs='mt76-phy1'
system.@led[0].trigger='none'
system.@led[0].default='1'
system.@led[1]=led
system.@led[1].name='off'
system.@led[1].sysfs='white:system'
system.@led[1].trigger='none'
system.@led[1].default='1'
system.@led[2]=led
system.@led[2].name='off'
system.@led[2].sysfs='blue:run'
system.@led[2].trigger='none'
system.@led[2].default='1'
system.@led[3]=led
system.@led[3].name='off'
system.@led[3].sysfs='mt76-phy0'
system.@led[3].trigger='none'
system.@led[3].default='1'
ucitrack.@system[0].init='led'
ucitrack-opkg.@system[0].init='led'

/sys/class/leds/blue:run/
/sys/class/leds/blue:run/device
/sys/class/leds/blue:run/subsystem
/sys/class/leds/blue:run/max_brightness
/sys/class/leds/blue:run/brightness
/sys/class/leds/blue:run/trigger
/sys/class/leds/blue:run/uevent
/sys/class/leds/mt76-phy0/
/sys/class/leds/mt76-phy0/device
/sys/class/leds/mt76-phy0/subsystem
/sys/class/leds/mt76-phy0/max_brightness
/sys/class/leds/mt76-phy0/brightness
/sys/class/leds/mt76-phy0/trigger
/sys/class/leds/mt76-phy0/uevent
/sys/class/leds/mt76-phy1/
/sys/class/leds/mt76-phy1/device
/sys/class/leds/mt76-phy1/subsystem

/sys/class/leds/mt76-phy1/max_brightness
/sys/class/leds/mt76-phy1/brightness
/sys/class/leds/mt76-phy1/trigger
/sys/class/leds/mt76-phy1/uevent
/sys/class/leds/white:system/
/sys/class/leds/white:system/device
/sys/class/leds/white:system/subsystem
/sys/class/leds/white:system/max_brightness
/sys/class/leds/white:system/brightness
/sys/class/leds/white:system/trigger
/sys/class/leds/white:system/uevent

1 Like

test this script (and post output):
the first part deactivates all the LEDs, the second reactivates them all

echo "0" > /sys/class/leds/white:system/brightness
echo "0" > /sys/class/leds/mt76-phy0/brightness
echo "0" > /sys/class/leds/mt76-phy1/brightness
echo "0" > /sys/class/leds/blue:run/brightness
cat /sys/class/leds/white:system/brightness
cat /sys/class/leds/mt76-phy0/brightness
cat /sys/class/leds/mt76-phy1/brightness
cat /sys/class/leds/blue:run/brightness

echo "1" > /sys/class/leds/white:system/brightness
echo "1" > /sys/class/leds/mt76-phy0/brightness
echo "1" > /sys/class/leds/mt76-phy1/brightness
echo "1" > /sys/class/leds/blue:run/brightness
cat /sys/class/leds/white:system/brightness
cat /sys/class/leds/mt76-phy0/brightness
cat /sys/class/leds/mt76-phy1/brightness
cat /sys/class/leds/blue:run/brightness

ps: I assume they will only be useful:
/sys/class/leds/blue:run/brightness
/sys/class/leds/white:system/brightness
as the specifications show 2 LEDs
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=d89a7f0120db42d4fae1656e1860ef49523acabb

1 Like

root@H8:~# cat /sys/class/leds/white:system/brightness
0
root@H8:~#
No ways. Works only with stock firmware

1 Like

The thread you linked was started by me. Now its solved. Check it if it helps you now and update your thread:

The only way to disable led is with i2c controls for this router:
i2cset -f -y 0 0x30 0x04 0x00

Adding this line to rc.local disables leds on startup. Lets mark this topic as solved for now

1 Like

For GL-MT1300 or TP-Link Archer C6 v3.2 ?

Read the topic header

1 Like

I had already seen the header but I asked it in a different sense, but no issues.
I was asking if i2c controls/the above command works on Archer C6 and all other routors too ?
Thanks for replying

No offence. But wtf is not clear?
Stop scam. Or open another topic. IMHO

1 Like

When did I say something is unclear ?!
Nothing scam just comparing the applicablity of i2c controls on archer c6 too.
If you know and tell me I will be grateful. If you dont know then no issues. As I don't know whats i2c controls are so jus exploring forums for more knowledge. Is that an issue here ?
Thanks you

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