@yuxin.zou Totally agree that your are not responsible for maintaining LuCI, BUT you do control your firmware and could add this much requested feature into the GL iNet router GUI
It’s already in the plans.
Firmware 4.3.6 not found on the Firmware page. Although its nice that we finally have a new update, 3.2.1.6 is still more stable. For instance:
4.3.6: My custom LuCI LED Config always reset to default, when my hotspot from phone is down (when I get calls on my phone, my 4G data will be cut off, thia is not VoLTE phone), no auto reconnect
3.2.1.6: Immediately connect to my phone when data is detected. LED Config never changes.
4.3.6 feels kinda slow, maybe GL iNet team can somehow optimize 4.3.6 for Slate? Even Reset All has been done, it still feels slow, and this hotspot problem too, makes me always had to manually reconnect my phone (No, I have not installed those 3 stuffs that I need and it still has that reconnection and LED Lights problem).
For now, maybe 3.2.1.6 is the better choice. Just set it up once, including NAS and AdGuard settings, then just leave it alone, just let it auto connect to my phone like usual.
After installing stable 4.3.6 on E-750 Mudi I used the instructions above to install file share but ended up with the following error:
command “for nas” failed with the returning code 255 and the following message
Collected errors:
- opkg_install_cmd: Cannot install package gl-sdk4-webdav.
- opkg_install_cmd: Cannot install package gl-sdk4-nas-exfat.
- opkg_install_cmd: Cannot install package gl-sdk4-nas-utils.
- opkg_install_cmd: Cannot install package gl-sdk4-nas-web.
- opkg_install_cmd: Cannot install package gl-sdk4-ui-nasview.
- pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-5c9be91b90bda5403fe3a7c4e8ddb26f) for kmod-input-core
- pkg_hash_fetch_best_installation_candidate: Packages for kmod-input-core found, but incompatible with the architectures configured
- pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-5c9be91b90bda5403fe3a7c4e8ddb26f) for kmod-sound-core
- pkg_hash_fetch_best_installation_candidate: Packages for kmod-sound-core found, but incompatible with the architectures configured
- pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-5c9be91b90bda5403fe3a7c4e8ddb26f) for kmod-usb-storage-uas
- pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-storage-uas found, but incompatible with the architectures configured
- opkg_install_cmd: Cannot install package kmod-usb-storage-uas.
- opkg_conf_deinit: Couldn’t unlink /var/lock/opkg.lock: No such file or directory.
sorry this was a mistake do you know how to use ssh,The command is as follows
vi /etc/opkg/distfeeds.conf
Modify the content inside as follows:
src/gz glinet_core https://fw.gl-inet.com/releases/v22.03.4/kmod-4.3.2/e750
src/gz glinet_gli_pub https://fw.gl-inet.com/releases/v22.03.4/packages-4.2/ath79/glinet
src/gz glinet_gli_packages https://fw.gl-inet.com/releases/v22.03.4/packages-4.2/ath79/packages
Thanks for the update, it worked after the modifying the content
@yuxin.zou @radishman Do you guys know how to bring back custom buttons too? What I used to do is create a /etc/hotplug.d/button/buttons file with the code to turn off and on wifi. but now after the update nothing is working and that file Ibelieve is not even being called when I flip the switch on my beryl mt1300.
more over the mt1300_led is gone so I can't control LED now either, and even when I try to run i2cset command led doesn't react i2cset -f -y 0 0x30 0x01 0x07 #period : 1.024s
#!/bin/sh
if [ "${BUTTON}" = "BTN_0" ] && [ "${ACTION}" = "pressed" ]; then
logger "BTN: Pressed"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=0
uci set wireless.@wifi-iface[1].disabled=0
mt1300_led both_breath
elif [ "${BUTTON}" = "BTN_0" ] && [ "${ACTION}" = "released" ]; then
logger "BTN: Released"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-iface[1].disabled=1
mt1300_led both_flash fast
fi
uci commit wireless
wifi reload
wifi
Please try changing the path to /etc/gl-switch.d/
.
Maybe you can control LED in Overview page?
@yuxin.zou thank you for your answer, I was able to get the button working. Button name has changed from BTN_0 to switch. I get what you are saying about LEDs, That's not the scenario I'm looking for if you look at the script above I used to trigger LED blinking when I changed switch position that way I knew that something happened. Anyway here is the new script that works (except for the LEDs)
#!/bin/sh
# logger "BTN: Button pressed ${BUTTON} ${ACTION}"
if [ "${BUTTON}" = "switch" ] && [ "${ACTION}" = "released" ]; then
logger "BTN: Wifi enabled"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=0
uci set wireless.@wifi-iface[1].disabled=0
mt1300_led both_breath
elif [ "${BUTTON}" = "switch" ] && [ "${ACTION}" = "pressed" ]; then
logger "BTN: Wifi disabled"
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-iface[1].disabled=1
mt1300_led both_flash fast
fi
uci commit wireless
wifi reload
wifi
Ok I was able to get it working based on this post I found a command that turns off and off leds. GL-MT1300 LED control instructions
So just to document for anyone who is interested. on your MT1300 if you want to configure your switch to be able to toggle wifi do:
- Create file called buttons in /etc/hotplug.d/button directory. (youmost likely have to create button directory I didn't have it.
- Create a file called buttons in that directory above
- paste the code below this code turns on and off 2g radio and keeps 5G always off (I kept it off since my internet connection is never faster then 2g and 5G is shoter range and not as reliable so no need to have it on)
#!/bin/sh
if [ "${BUTTON}" = "switch" ] && [ "${ACTION}" = "pressed" ]; then
logger "BTN: Wifi Enabled"
# disable 5g radio 2g guest and 5 g gues interfaces
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
# enble 2g radio and 2g interface
uci set wireless.@wifi-device[0].disabled=0
uci set wireless.@wifi-iface[0].disabled=0
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 0.1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
elif [ "${BUTTON}" = "switch" ] && [ "${ACTION}" = "released" ]; then
logger "BTN: Wifi Disabled"
# disable 5g radio 2g guest and 5 g gues interfaces
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-device[1].disabled=1
uci set wireless.@wifi-device[2].disabled=1
uci set wireless.@wifi-device[3].disabled=1
# disable 2g radio and 2g interface
uci set wireless.@wifi-device[0].disabled=1
uci set wireless.@wifi-iface[0].disabled=1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
sleep 1
i2cset -f -y 0 0x30 0x04 0x04 # Turn on the light
sleep 1
i2cset -f -y 0 0x30 0x04 0x00 # Turn off the light
fi
uci commit wireless
wifi reload
wifi