Have you noticed that your Xiaomi, Redmi or POCO smartphone has Internet periodically “disappeared” for no apparent reason? Mobile data or Wi-Fi suddenly shut down, and you have to reboot your device or manually turn on data to restore communication? This problem is familiar to many owners of devices based on MIUI, Xiaomi’s proprietary shell, most often associated with aggressive power optimization, which blocks background processes, including network connections.
In this article, we will discuss the 5 main causes of Internet shutdown on Xiaomi and offer proven ways to fix them, from basic settings to hidden developer parameters. All instructions are relevant for versions of MIUI 12, 13 and 14, as well as for most models, including Xiaomi 13/14, Redmi Note 12, POCO F5 and others. If you are tired of constant connection breaks, read on.
Before you start settings, make sure the problem is not related to the provider or SIM-Try connecting to another Wi-Fi network or inserting it. SIM If the Internet is stable, it's Xiaomi settings.
1. Disconnecting energy saving for network applications
The most common cause of the Internet's spontaneous breakdown is battery optimization, which limits the background activity of applications, including system services responsible for connecting to the network. MIUI has two levels of energy saving: general (for all applications) and individual (for individual programs).
To turn off energy saving for network processes:
- Go to Settings → Battery and Performance → Battery Mode.
- Select Performance (if available) or Balanced mode – but not Charge Savings.
- Return to the Battery section and tap on Battery Settings → Battery Optimization.
- In the list of applications, find “Settings” (cog icon) and “Google Play Services”, select “No Limits” for them.
For mobile internet, it is also important to check your settings. SIM-map:
- 📶 Open the Settings. → SIM-maps and mobile networks → Your name. SIM.
- 🔄 Make sure that the “Always Active” option is enabled (or “Maintain Connection” in some versions). MIUI).
- ⚡ Check if there is a back-end traffic restriction (Use of traffic).
💡
If after these actions the Internet still turns off, try to temporarily disable the function "Adaptive battery" in the developer settings (we will talk about them below).
2. Set developer parameters for stable connection
The hidden developer settings at Xiaomi allow you to fine-tune the network modules to activate them:
- Go to Settings. → The phone.
- Tap 7 times on the item "Version" MIUI» (A notification will appear saying, “You have become a developer»).
- Return to the main settings menu – there will be a new section Additional → For developers.
Now change the following parameters:
| Parameter | Recommended value | What is responsible for? |
|---|---|---|
| Do not disable data transmission | Included. | Prohibits automatic disconnection of mobile Internet in case of inaction |
| Limitation of background processes | Standard Limitation (or “No Limitations”) | Controls the number of simultaneous applications in the background |
| Aggressive sleep patterns | Disconnected. | Responsible for forced “falling asleep” of applications when blocking the screen |
| Optimization of MIUI | Disconnected. | Global system optimization, often in conflict with network services |
Pay special attention to the option Do not turn off data transmission – turning it on solves the problem for 70% of users. If this option is not available, update the MIUI to the latest version or use an alternative method (see section 4).
3. Checking Wi-Fi and mobile network settings
If the problem is only Wi-Fi or mobile Internet, the reasons may be different.
For Wi-Fi:
- 🔄 B Settings → Wi-Fi → Additionally, disable the “Automatic Open Network Connection” option – it can cause conflicts.
- 📡 Enable Smart Switching (if available) so that your device automatically selects the best network.
- 🔒 Make sure your network is not set a time limit (wi-fi schedule section).
For mobile Internet:
- 📶 B Settings → SIM-maps and mobile networks → Name. SIM Check that the right type of network is selected (for example, 4G/5G, Not just 3G).
- 🔄 Turn off Background Traffic Limitation for Mobile Data.
- 📵 If you use two SIM-Maps, try to temporarily disable the second - sometimes conflict network priority settings.
If the Internet still shuts down after these actions, try resetting the network settings:
- Go to Settings → Memory and Network → Network Reset.
- Confirm the reset (this will delete all saved Wi-Fi networks and passwords!).
- Reset the device.
What to do if the network reset does not help?
4. Correction through ADB-Teams (for experienced users)
If the standard settings do not help, you can use ADB-Android Debug Bridge, for deep-tuning energy saving, requires you to connect your smartphone to your computer, but it's 100 percent effective.
Be prepared first:
☑️ Preparation for work with ADB
Now run the following commands in the command line (run it on behalf of the administrator in the folder with ADB):
adb shell
settings put global captive_portal_detection_enabled 0
settings put global stay_on_while_plugged_in 3
settings put global wifi_sleep_policy 2
settings put global mobile_data_always_on 1Transcript of commands:
- 🔌 captive_portal_detection_enabled 0 — Disables checks for “captive portals” (often causing Wi-Fi breaks).
- ⚡ stay_on_while_plugged_in 3 — prohibits turning off the screen when charging (indirectly affects network activity).
- 📶 wifi_sleep_policy 2 — The Wi-Fi Sleep Policy is Never».
- 🔄 mobile_data_always_on 1 — Involves permanent mobile data activity.
Warning: After these commands are executed, some battery optimization functions will stop working, which can reduce battery life by 10-15%.If you are critical of battery life, return the settings to the 1 by 0 and 2 by 0 commands.
5. Firmware problems and their solution
Sometimes, the Internet auto-disconnection is associated with firmware bugs, especially if you are using custom or beta versions of MIUI.
Updating the system
- 🔄 Check for updates in Settings → The phone. → Updating the system.
- 📥 If an update is available, download it and install it. Often newer versions fix energy saving errors.
Reset to factory settings
If the problem appears after updating or installing applications, a hard reset will help:
- Make a backup of the data (e.g., via Settings → Memory → Backup).
- Go to Settings → About the phone → Reset settings.
- Select “Erase all data” and confirm.
Note: After reset, all data will be deleted, including photos, messages and installed applications. Use this method only if other methods have not helped.
Transition to stable firmware
If you are using MIUI beta or custom firmware (e.g. Xiaomi.EU), try returning to the official stable version.
- Download the latest stable firmware for your model from the Xiaomi website.
- Go to Settings → About Phone → System Update → Three Dots (menu) → Select a firmware file.
- Select the downloaded file and confirm the installation.
💡
If the problem disappeared after the update but returned later, it is likely that the specific application is to blame. Try uninstalling newly installed programs or checking their resolutions in the battery settings.
Hardware causes and diagnosis
If the software methods didn't work, the problem could be hardware, and here are the most common "iron" reasons:
- 📶 Antenna malfunction Wi-Fi/4G — Especially if the phone is falling or in contact with moisture.
- 🔋 Battery wear – at a low charge level (below 15%), the system aggressively shuts down energy-intensive modules, including networking.
- 📱 Bad contact. SIM-maps – if the problem is only with mobile Internet, try reinstalling SIM or wipe the contacts of the tray with alcohol.
- 🔌 Motherboard malfunction – in rare cases, the power controller or network chip is to blame.
For diagnosis:
- Check the battery status through the AccuBattery app (if the capacity has dropped below 70%, it is time to change the battery).
- Test it. SIM-map in another device – if the Internet is stable, the problem is in your smartphone.
- Run the hardware test through the engineering menu (enter ##4636## and select Phone Information).
⚠️ Warning: If you suspect a hardware malfunction, do not attempt to disassemble the device yourself - this may result in a loss of warranty.