Why the Internet Shuts Down on Its Own on Xiaomi and How to Fix It

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:

  1. Go to Settings → Battery and Performance → Battery Mode.
  2. Select Performance (if available) or Balanced mode – but not Charge Savings.
  3. Return to the Battery section and tap on Battery Settings → Battery Optimization.
  4. 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:

  1. Go to Settings. → The phone.
  2. Tap 7 times on the item "Version" MIUI» (A notification will appear saying, “You have become a developer»).
  3. Return to the main settings menu – there will be a new section Additional → For developers.

Now change the following parameters:

ParameterRecommended valueWhat is responsible for?
Do not disable data transmissionIncluded.Prohibits automatic disconnection of mobile Internet in case of inaction
Limitation of background processesStandard Limitation (or “No Limitations”)Controls the number of simultaneous applications in the background
Aggressive sleep patternsDisconnected.Responsible for forced “falling asleep” of applications when blocking the screen
Optimization of MIUIDisconnected.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).

📊 How often do you have a shutdown on Xiaomi?
Every hour.
Several times a day
1-2 times a day
Rarely, but accurately.
Never.

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:

  1. Go to Settings → Memory and Network → Network Reset.
  2. Confirm the reset (this will delete all saved Wi-Fi networks and passwords!).
  3. Reset the device.
What to do if the network reset does not help?
If the problem persists after the reset, a hardware failure (for example, a malfunction of a Wi-Fi module or antenna) may be the cause, in which case we recommend contacting a service center, especially if the device falls or comes into contact with moisture.

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

Done: 0 / 5

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 1

Transcript 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:

  1. Make a backup of the data (e.g., via Settings → Memory → Backup).
  2. Go to Settings → About the phone → Reset settings.
  3. 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.

  1. Download the latest stable firmware for your model from the Xiaomi website.
  2. Go to Settings → About Phone → System Update → Three Dots (menu) → Select a firmware file.
  3. 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:

  1. Check the battery status through the AccuBattery app (if the capacity has dropped below 70%, it is time to change the battery).
  2. Test it. SIM-map in another device – if the Internet is stable, the problem is in your smartphone.
  3. 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.

FAQ: Frequent questions about auto-disconnection of the Internet

Why is the internet shut down at night?
You probably have night energy saving or Wi-Fi schedules on: 🌙 Settings → Battery → Schedule of energy saving. 🕒 Settings → Wi-Fi → Additionally. → Wi-Fi schedule. Some mobile internet providers also reset their connection at night – try reconnecting manually.
After the MIUI update, the Internet has been shut down more often.
This is a typical problem after major updates.Try: Reset network settings (Settings) → Memory and network → Reset the network. Reverse to the previous version MIUI (Clear the cache of system applications (Settings) → Annexes → Application management → Three points. → Show system-based → Settings/Google Play Services → Clear the cache).
The Internet is only shut down in some applications (e.g. Telegram or YouTube). Why?
These apps probably include background traffic restriction or battery optimization. Correct: Open Settings → Applications → Application Management. Select a problem app (like Telegram). Slap the Battery → No restrictions. Enable AutoRun and Background Activity.
Can I turn off the Internet without root rights?
All the methods in this article (except for the ADB) They work without root. ADB-The team didn't help, and you don't want to root, the only thing left is: Use Developer Mode (Section 2). MIUI. Contact the service (if hardware problem).
After resetting the settings, the Internet started to shut down again.
If the problem comes back after the reset, one of the faults is: 🔄 Recovery from backup – together with settings, errors could return. 📱 Failure of the communication module (Wi-Fi or mobile network). 🔋 Power problems, like a faulty battery or a charging controller, try not to reset the settings from the backup, but to set the phone from scratch. If it doesn't, diagnose the hardware.