# Mudi auto shutoff

**URL:** <https://forum.gl-inet.com/t/mudi-auto-shutoff/13258>\
**Category:** Router\
**Created:** [December 11, 2020, 10:21pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258 "2020-12-11T22:21:21Z")\
**Posts on this page:** 20\
**Page:** 2

<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 26, 2023, 2:55pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/22 "2023-03-26T14:55:34Z")

</div>

I don’t think this is in the default firmware already.

---

<div class="post-metadata">

**Author:** ![ahhydri](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ahhydri](https://forum.gl-inet.com/u/ahhydri)\
**Post date:** [March 27, 2023, 12:19pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/23 "2023-03-27T12:19:53Z")

</div>

any plans to implement the same in default firmware ?

---

<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 28, 2023, 11:24am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/24 "2023-03-28T11:24:31Z")

</div>

@yuxin.zou can you have a check?

---

<div class="post-metadata">

**Author:** ![ahhydri](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ahhydri](https://forum.gl-inet.com/u/ahhydri)\
**Post date:** [April 6, 2023, 8:30am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/25 "2023-04-06T08:30:30Z")

</div>

guys do we have any update on this please.  
@alzhao , @yuxin.zou

---

<div class="post-metadata">

**Author:** ![yuxin.zou](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/yuxin.zou/32/11475_2.png) [@yuxin.zou](https://forum.gl-inet.com/u/yuxin.zou)\
**Post date:** [April 7, 2023, 1:33am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/26 "2023-04-07T01:33:09Z")

</div>

We will develop this feature, but not soon. Around the second half of the year.

---

<div class="post-metadata">

**Author:** ![glinetfan86](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/db5fbb/32.png) [@glinetfan86](https://forum.gl-inet.com/u/glinetfan86)\
**Post date:** [April 7, 2023, 10:35am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/27 "2023-04-07T10:35:33Z")

</div>

Is it possible to also develop a feature to switch off all radio signals, including LTE signal, when the device is on “standby mode” ? Currently, when on standby, only wifi signal is switched off but LTE remains active which consumes considerable battery, which defeats the purpose of “standy” mode.  
This is also discussed on other threads, but no clear answer is given.  
This feature along with auto-shutdown will be two great additions of power management on hopefully upcoming 4.2 update.  
Appreciated

---

<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:** [April 7, 2023, 3:29pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/28 "2023-04-07T15:29:28Z")

</div>

> [@glinetfan86](#):
>
> Is it possible to also develop a feature to switch off all radio signals, including LTE signal, when the device is on “standby mode” ? Currently, when on standby, only wifi signal is switched off but LTE remains active which consumes considerable battery, which defeats the purpose of “standy” mode.

Putting this in the feature requrest again. There was discussion and finally decided to keep the modem active. But need to check if the reason is still valid.

---

<div class="post-metadata">

**Author:** ![gsrgfdgdrg](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/f4b2a3/32.png) [@gsrgfdgdrg](https://forum.gl-inet.com/u/gsrgfdgdrg)\
**Post date:** [May 5, 2023, 2:29am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/29 "2023-05-05T02:29:40Z")

</div>

Im also interested in using the xe 300 as a vehicle hotspot, among other uses. One thing I don’t like is that I have to manually turn it off every time I turn the ignition off, since my vehicle’s power outlets turn off after 5 minutes. It would be nice if there was a whole config page to determine power on and off conditions.

---

<div class="post-metadata">

**Author:** ![gsrgfdgdrg](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/f4b2a3/32.png) [@gsrgfdgdrg](https://forum.gl-inet.com/u/gsrgfdgdrg)\
**Post date:** [May 5, 2023, 3:35am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/30 "2023-05-05T03:35:44Z")

</div>

Noob here. How do I modify auto-off. Sh script? Do I need a plugin to do that? Are there any prerequisites?

---

<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:** [May 5, 2023, 4:26am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/31 "2023-05-05T04:26:49Z")

</div>

It is a sh script. So need to ssh to the router, modify and test.

---

<div class="post-metadata">

**Author:** ![gsrgfdgdrg](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/f4b2a3/32.png) [@gsrgfdgdrg](https://forum.gl-inet.com/u/gsrgfdgdrg)\
**Post date:** [May 28, 2023, 4:20am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/32 "2023-05-28T04:20:19Z")

</div>

I don’t know how to do code. Is there an official guide on how to get auto power off functionality? I would like my device to automatically power off after 15 minutes of no clients being detected. But only on battery mode. When my vehicle shuts off, the USB port turns off as well so this drains the battery unless I manually turn it off which I normally forget to do. This really needs to be a configurable setting in my view.

---

<div class="post-metadata">

**Author:** ![vpntravel](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/v/8797f3/32.png) [@vpntravel](https://forum.gl-inet.com/u/vpntravel)\
**Post date:** [June 17, 2023, 6:23pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/33 "2023-06-17T18:23:43Z")

</div>

I’m also interested on this on Puli device to use in car.

---

<div class="post-metadata">

**Author:** ![ahhydri](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ahhydri](https://forum.gl-inet.com/u/ahhydri)\
**Post date:** [June 18, 2023, 6:53am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/34 "2023-06-18T06:53:31Z")

</div>

@robotluo Please can you also include this feature in version 4.x. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ahhydri](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ahhydri](https://forum.gl-inet.com/u/ahhydri)\
**Post date:** [July 2, 2023, 12:11pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/35 "2023-07-02T12:11:45Z")

</div>

@yuxin.zou please can you help us by including this feature in version 4.x for mudi E750 as it is still under development.

---

<div class="post-metadata">

**Author:** ![yuxin.zou](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/yuxin.zou/32/11475_2.png) [@yuxin.zou](https://forum.gl-inet.com/u/yuxin.zou)\
**Post date:** [July 3, 2023, 2:16am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/36 "2023-07-03T02:16:18Z")

</div>

All older products will be upgraded to version 4.3.2, which will not include new features.  
This feature should be added in future version.

---

<div class="post-metadata">

**Author:** ![hansome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@hansome](https://forum.gl-inet.com/u/hansome)\
**Post date:** [February 1, 2024, 10:13am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/37 "2024-02-01T10:13:55Z")

</div>

Add workaround to add a script that survives sysupgrade:  
For example, the target script is  
/root/power\_save.sh

1. edit /etc/rc.local to add script call

```auto
vi /etc/rc.local

```

add this line:  
sh /root/power\_save.sh

1. make the script survive sysupgrade:  
echo -e “\n/root/power\_save.sh” \>\>/etc/sysupgrade.conf

---

<div class="post-metadata">

**Author:** ![mudi-npc](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mudi-npc](https://forum.gl-inet.com/u/mudi-npc)\
**Post date:** [October 22, 2024, 12:02am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/38 "2024-10-22T00:02:42Z")

</div>

I’m interested in a way to not phisically shutdown the Mudi GL-E750 as well.  
I’ve been trying with _ **poweroff** _ and _ **halt** _ through SSH but the modem come back to “Booting” state and gets stuck at it.  
It’s incredible that even after 3 years of this discussion there isn’t a way too shutdown the modem through the html interface 😕

---

<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:** [October 23, 2024, 7:57am UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/39 "2024-10-23T07:57:34Z")

</div>

If you use poweroff or halt command, the Linux actually halt, meaning it is not rebooting, not running. But does not power off the chipset.

If you have Firmware v4.x, pls try the following command to turn off. This should work for both E750V1 and E750V2

```auto
ubus call mcu cmd_json {\"poweroff\":\"1\"}

```

About Auto Power on when plugging power, E750V2 will NOT auto power on when plugging power.

---

<div class="post-metadata">

**Author:** ![mudi-npc](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mudi-npc](https://forum.gl-inet.com/u/mudi-npc)\
**Post date:** [October 23, 2024, 12:46pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/40 "2024-10-23T12:46:54Z")

</div>

@alzhao _you’re the goat!!!_

**It works perfectly via ssh.**

I send the command and after I checked 5 minutes later, even if it’s charging it was completely turned off.

Is there anyway to create a shortcut for this, let’s say, an HTML link to send the command instead of opening terminal and loving in from SSH?

or maybe a way to add a button or plug-in to the admin panel?  
It would be nice to have this option as a default button on Admin Panel instead of just the reboot option.

But even if it’s not a way for making it simpler, thanks a lot!!!

---

<div class="post-metadata">

**Author:** ![46775456788](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/4/e0b2c6/32.png) [@46775456788](https://forum.gl-inet.com/u/46775456788)\
**Post date:** [October 23, 2024, 7:26pm UTC](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258/41 "2024-10-23T19:26:17Z")

</div>

> [@mudi-npc](#):
>
> Is there anyway to create a shortcut for this, let’s say, an HTML link to send the command instead of opening terminal and loving in from SSH?

```auto
#!/bin/sh
CONTROLLER_PATH="/usr/lib/lua/luci/controller/mcu.lua"
VIEW_PATH="/usr/lib/lua/luci/view/mcu/index.htm"

mkdir -p /usr/lib/lua/luci/controller
mkdir -p /usr/lib/lua/luci/view/mcu

cat << 'EOF' > "$CONTROLLER_PATH"
module("luci.controller.mcu", package.seeall)

function index()
    entry({"admin", "mcu"}, template("mcu/index"), _("MCU Control"), 60).dependent = true
    entry({"admin", "mcu", "poweroff"}, call("action_poweroff"), _("Power Off"), 61)
end

function action_poweroff()
    local result = os.execute("ubus call mcu cmd_json '{\"poweroff\":\"1\"}'")
    luci.http.redirect(luci.dispatcher.build_url("admin/mcu"))
end
EOF

cat << 'EOF' > "$VIEW_PATH"
<h2>MCU Control</h2>
<form action="{{url('admin/mcu/poweroff')}}" method="post">
    <input type="submit" value="Power Off" />
</form>
EOF

echo "Button installed successfully."

```

Try this script. Run it from /tmp folder. It will create button in LuCi. To login to LuCi [https://your-routers-ip/cgi-bin/luci](https://your-routers-ip/cgi-bin/luci)

[Previous page](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258.md?page=1)

[Next page](https://forum.gl-inet.com/t/mudi-auto-shutoff/13258.md?page=3)
