# GL-MT1300 LED control instructions

**URL:** <https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338>\
**Category:** Router\
**Created:** [December 18, 2020, 3:48am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338 "2020-12-18T03:48:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxf](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/41988e/32.png) [@dxf](https://forum.gl-inet.com/u/dxf)\
**Post date:** [December 18, 2020, 3:48am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/1 "2020-12-18T03:48:57Z")

</div>

> #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.zip[ET6326-en.zip](https://forum.gl-inet.com/uploads/short-url/bOSkhWfzw4dkflU4BIbCzFgYpcQ.zip) (988.1 KB) for more information.

---

<div class="post-metadata">

**Author:** ![techhome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@techhome](https://forum.gl-inet.com/u/techhome)\
**Post date:** [February 1, 2021, 9:49pm UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/2 "2021-02-01T21:49:49Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![limbot](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/limbot/32/1267_2.png) [@limbot](https://forum.gl-inet.com/u/limbot)\
**Post date:** [February 3, 2021, 9:56am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/3 "2021-02-03T09:56:30Z")

</div>

@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 ?

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [February 3, 2021, 11:32am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/4 "2021-02-03T11:32:02Z")

</div>

Just edit

```auto
/usr/bin/mt1300_led

```

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

```auto
i2cset -f -y 0 0x30 0x06 0x3f
i2cset -f -y 0 0x30 0x07 0x7f

```

---

<div class="post-metadata">

**Author:** ![jxs457](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/j/edb3f5/32.png) [@jxs457](https://forum.gl-inet.com/u/jxs457)\
**Post date:** [February 4, 2021, 5:36pm UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/5 "2021-02-04T17:36:08Z")

</div>

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

Tape works, too.

---

<div class="post-metadata">

**Author:** ![techhome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@techhome](https://forum.gl-inet.com/u/techhome)\
**Post date:** [February 4, 2021, 7:51pm UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/6 "2021-02-04T19:51:57Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [February 5, 2021, 10:00am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/7 "2021-02-05T10:00:37Z")

</div>

> [@jxs457](#):
>
> This is very helpful. But could we just have a setting in the firmware to turn off the light?

This will be in the smartphone app later.

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [February 5, 2021, 10:04am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/8 "2021-02-05T10:04:28Z")

</div>

To post code, you can use markdown syntax.

Use **backquote** to quote code

![image](https://forum-static.gl-inet.com/original/2X/a/ae4f2ffcd8db47db0fb7dd13e087b6903807f2e5.png)

---

<div class="post-metadata">

**Author:** ![techhome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@techhome](https://forum.gl-inet.com/u/techhome)\
**Post date:** [February 6, 2021, 12:20am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/9 "2021-02-06T00:20:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mics.chan](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@mics.chan](https://forum.gl-inet.com/u/mics.chan)\
**Post date:** [March 18, 2021, 12:25pm UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/10 "2021-03-18T12:25:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FMorgas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@FMorgas](https://forum.gl-inet.com/u/FMorgas)\
**Post date:** [March 19, 2021, 11:59am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/11 "2021-03-19T11:59:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [March 19, 2021, 12:04pm UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/12 "2021-03-19T12:04:12Z")

</div>

> [@FMorgas](#):
>
> Its possible have the same thing on this one? For example only show white light if vpn is connected?

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.

---

<div class="post-metadata">

**Author:** ![FMorgas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@FMorgas](https://forum.gl-inet.com/u/FMorgas)\
**Post date:** [March 20, 2021, 12:58am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/13 "2021-03-20T00:58:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [March 20, 2021, 1:14am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/14 "2021-03-20T01:14:47Z")

</div>

How did you set up vpn? openvpn or wireguard/

---

<div class="post-metadata">

**Author:** ![FMorgas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@FMorgas](https://forum.gl-inet.com/u/FMorgas)\
**Post date:** [March 20, 2021, 1:32am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/15 "2021-03-20T01:32:37Z")

</div>

Yes i am connected to VPN using Openvpn protocol

I am trying to follow this article to create the script vpn\_check.sh  
[https://forum.gl-inet.com/t/ar750-diy-vpn-status-indicator/9356/5[check\_vpn.zip|attachment](upload://czHI13Rc7OJ4RTStLCPrqUdkFN2.zip)](https://forum.gl-inet.com/t/ar750-diy-vpn-status-indicator/9356/5%5Bcheck_vpn.zip%7Cattachment%5D(upload://czHI13Rc7OJ4RTStLCPrqUdkFN2.zip)) (734 Bytes)

---

<div class="post-metadata">

**Author:** ![funfun](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/funfun/32/3899_2.png) [@funfun](https://forum.gl-inet.com/u/funfun)\
**Post date:** [March 20, 2021, 7:47am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/16 "2021-03-20T07:47:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FMorgas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@FMorgas](https://forum.gl-inet.com/u/FMorgas)\
**Post date:** [March 23, 2021, 10:38am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/17 "2021-03-23T10:38:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [March 23, 2021, 11:40am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/18 "2021-03-23T11:40:42Z")

</div>

I just verified. I submit a bug.

---

<div class="post-metadata">

**Author:** ![ray308](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/ray308/32/4498_2.png) [@ray308](https://forum.gl-inet.com/u/ray308)\
**Post date:** [June 3, 2021, 9:57am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/19 "2021-06-03T09:57:17Z")

</div>

Any follow up on this bug?

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 4, 2021, 7:53am UTC](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338/20 "2021-06-04T07:53:09Z")

</div>

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

[Next page](https://forum.gl-inet.com/t/gl-mt1300-led-control-instructions/13338.md?page=2)
