GL-MT1300 LED control instructions

#stop glinet control
/etc/init.d/led stop
/etc/init.d/led disable

#reset I2C IC
echo 0 > /sys/class/leds/gl-mt1300:blue/brightness
echo 0 > /sys/class/leds/gl-mt1300:white/brightness
i2cset -f -y 0 0x30 0x00 0x1F
i2cset -f -y 0 0x30 0x00 0x1A

#adjust brightness
i2cset -f -y 0 0x30 0x06 0x3f #blue 0x3f * 0.125mA = 8mA
i2cset -f -y 0 0x30 0x07 0x7f #white 0x7f * 0.125mA = 16mA

#light up LED
i2cset -f -y 0 0x30 0x04 0x01
i2cset -f -y 0 0x30 0x04 0x04

#put out LED
i2cset -f -y 0 0x30 0x04 0x00

#flashing
i2cset -f -y 0 0x30 0x01 0x01 #period : 0.256s
i2cset -f -y 0 0x30 0x01 0x03 #period : 0.512s
i2cset -f -y 0 0x30 0x01 0x07 #period : 1.024s
i2cset -f -y 0 0x30 0x02 0x7f #Percentage of Period[%]
i2cset -f -y 0 0x30 0x04 0x02 #blue flash
i2cset -f -y 0 0x30 0x04 0x08 #white flash

#breath
i2cset -f -y 0 0x30 0x01 0x20 #period : 4.096s
i2cset -f -y 0 0x30 0x02 0x7f #Percentage of Period[100/0xff]%
i2cset -f -y 0 0x30 0x05 0xFF #ramp time : 768ms
i2cset -f -y 0 0x30 0x04 0x02 #blue breath
i2cset -f -y 0 0x30 0x04 0x08 #white breath

  • Please refer to ET6326-en.zipET6326-en.zip (988.1 KB) for more information.
7 Likes

I figured out how to have the router boot with LED disabled; thought it might help others to post my step by step

SSH in; log-in as root using webGUI password

cd /usr/bin (change directory to where you will create your script, in my case to disable front LED)
vi led_off (edit a new file named led_off)
click a (append at current location)
paste following
#stop glinet control
/etc/init.d/led stop
/etc/init.d/led disable
hit Esc, then :wq Enter (write file and exit vi editor)
chmod +x led_disable (make it executable)
cd /etc
vi rc_local (edit rc_local to add a call to your new script at boot)
use arrows to move to the end of the last line of the file
hit a (append at current location)
Hit Enter 2x (move down and leave a blank line
paste /usr/bin/led_off &
hit Esc, then :wq Enter (write file and exit vi editor)

Reboot, and enjoy!

2 Likes

@alzhao can we get some more user friendly instructions as to how to use the i2cset instructions e.g. how to dim the led permanently ?

Just edit

/usr/bin/mt1300_led

and modify the two lines. Change the last value to smaller number

i2cset  -f -y 0 0x30 0x06 0x3f
i2cset  -f -y 0 0x30 0x07 0x7f
2 Likes

This is very helpful. But could we just have a setting in the firmware to turn off the light?

Tape works, too.

Had errors in initial post and adding a bit of detail

SSH in – I use Putty on Win10 (select 192.168.8.1 port 22 – hit enter)
Log in using WebGUI credentials
cd /usr/bin (change directory to where you will create your script, in my case to disable front LED)
vi led_off (edit a new file named led_off)
click a (append at current location)
paste following
#stop glinet control
/etc/init.d/led stop
/etc/init.d/led disable
hit Esc, then :wq Enter (write file and exit vi editor)
chmod +x led_off (make it executable)
cd /etc
vi rc.local (edit rc.local to add a call to your new script at boot)
use arrows to move to the end of the last line of the file
hit a (append at current location)
Hit Enter 2x (move down and leave a blank line
paste /usr/bin/led_off &
hit Esc, then :wq Enter (write file and exit vi editor)

Reboot, and enjoy!

1 Like

This will be in the smartphone app later.

5 Likes

To post code, you can use markdown syntax.

Use backquote to quote code

image

Thanks, I’ll be sure to use it in the future

You can turn the light off by pressing on the button very briefly

1 Like

Hi, i bought this router to replace the GL-MT300N-V2, but the old one support the led costumization for example to turn on the middle ligh only if vpn is connected.

Its possible have the same thing on this one? For example only show white light if vpn is connected?

I already configurated the internet kill switch, but when the vpn drop the ligh not change to blue (no internet light)

Thank you for your attention

Now, with VPN it is breathing white. Withut vpn it is solid white.

Of course you can configure as you want but it is more complicated. You should find your script and then control the LED as in this instructions.

Hi thank you for your attention.

I already tested and the light doesnt change…
With VPN -> solid white
Without VPN -> solid white

There is some update/configuration that needs to be done for breathing white when VPN is on?

How did you set up vpn? openvpn or wireguard/

Yes i am connected to VPN using Openvpn protocol

I am trying to follow this article to create the script vpn_check.sh
AR750 DIY VPN status indicator - #5 by keolafucheck_vpn.zip (734 Bytes)

I tried with a Wireguard client, and it seems like the LED stays solid white.

Seems that light does not changes when vpn is connected… @alzhao can you help?

I just verified. I submit a bug.

1 Like

Any follow up on this bug?

Maybe I misunderstand. The definition of the LED, does not show VPN status. Sorry for confusing.