Have you noticed that as soon as your smartphone's screen goes dark, background file downloads are immediately interrupted, or instant messaging stops until you unlock the device again? This is a classic symptom of an aggressive system. energy saving, which puts wireless modules into deep sleep mode. Modern operating systems, whether Android or iOS, strive to maximize battery life, sometimes at the expense of background application activity.
The situation is exacerbated by the fact that shell makers often implement their own algorithms, which can be even stricter than the default settings of Google or Apple. The user simply sees a connection loss, but under the hood, a forced shutdown occurs. Wi-Fi module to save battery life. Understanding the mechanics of this process is the first step to solving the problem without constantly unlocking your device.
In this article, we'll take a detailed look at the technical reasons for connection drops, review the settings you should check first, and explain how to keep your phone connected to the network even when it's blocked. The critical factor is often not the router itself, but the specific version of the smartphone firmware, which has changed the algorithm for working with Wi-Fi in sleep mode. Let's find out how to restore a stable connection.
Aggressive battery optimization and sleep mode
The main culprit behind connection drops is the power management system. When you lock your screen, the operating system enters a state known as Doze Mode (on Android) or Low Power Mode (on iOS). During this mode, the processor reduces its frequency, and wireless interfaces may be completely disabled unless there are active processes running that require constant online access.
Many users mistakenly believe that enabling Wi-Fi guarantees background activity, but this is not the case. The system may disconnect if it deems the app using the network to be non-essential. This is especially common with Chinese operating systems. MIUI, EMUI or ColorOS, where memory cleaning and energy saving are configured as strictly as possible.
To check if the battery is the cause, look for the following signs:
- 🔋 The connection is lost exactly when the screen goes dark, and not at random intervals.
- 📉 Background syncing of photos or emails only starts after the lock is removed.
- ⚡ The battery percentage is draining more slowly than usual due to frequent module shutdowns.
Technical details of Doze mode
In Android, Doze mode suspends background app activity, limits network activity, and limits alarms to conserve battery life. The system allows short periods of activity, but Wi-Fi may be temporarily disabled between these periods.
Wi-Fi settings in sleep mode on Android
The Android operating system has a special setting that directly controls the wireless module's behavior when idle. By default, many OS versions have the "Turn off Wi-Fi in sleep mode" or "Save battery" setting. This means that as soon as the proximity sensor and accelerometer detect a lack of connectivity, the network is disabled.
To fix this, you need to go to the advanced settings. The path may vary depending on the model, but most often it looks like this: Settings → Connections → Wi-Fi → Advanced (three dots) → Wi-Fi in sleep modeHere you need to select the option "Always" or "Never" to prevent the system from disabling the module.
It's worth noting that on some modern smartphones, Google has removed this switch from the user interface, handing over control to artificial intelligence algorithms. In these cases, the system automatically decides when to keep the network active based on your usage habits.
It's also important to check the settings for specific apps. If, for example, your navigation app or email client keeps shutting down, find them in the app list, go to the "Battery" section, and select "Unlimited" or "Don't Limit" mode.
iOS Features and Background Updates
In the ecosystem Apple The logic is different. There's no direct "Wi-Fi in sleep mode" switch, but there are background activity mechanisms. If Wi-Fi turns off after locking your iPhone, the problem is likely in the "Background Content Refresh" settings or the "Cellular Data" feature for Wi-Fi Assist.
Function Wi-Fi Assist It can switch traffic to the mobile network if the system detects a weak Wi-Fi signal, even if you're within range. When the screen is locked, this mechanism can be activated preemptively, disconnecting from the router. You can disable this in the Settings section. Cellular → Wi-Fi Assist.
It's also worth checking app permissions. iOS strictly controls which apps can run in the background. If an app doesn't have the appropriate permissions, it "freezes" along with the screen:
- 🍏 Go to
Settings → General → Content Update. - 🍏 Make sure the "Content Refresh" toggle is active.
- 🍏 Find the desired application in the list and make sure that there is a checkmark next to it.
Another possible cause on an iPhone could be a network settings reset or a configuration profile conflict, especially if the device is a corporate device. In such cases, a full network settings reset can help, but this will require re-entering passwords for all Wi-Fi networks.
The impact of energy saving and "Super-saving" modes
The power saving mode deserves special attention. It can be enabled manually by the user or is activated automatically when the battery level is low (usually 20% or 10%). In this mode, the phone goes into a state super savings, where background processes are completely stopped and the Internet is disconnected immediately after the screen goes dark.
Even if you've set up Wi-Fi exceptions, Samsung's Ultra Power Saving mode (or its Xiaomi counterpart) may ignore these settings to conserve battery life. In this mode, the phone practically becomes a push-button device, allowing only calls and text messages.
Check the following parameters if the problem occurs when the battery is low:
- ⚡ Disable "Power Saver" mode in the notification shade or battery settings.
- ⚡ Check the energy saving schedule (for example, from 23:00 to 07:00).
- ⚡ Make sure that the "Turn off mobile data and Wi-Fi" box is unchecked in the savings settings.
⚠️ Attention: Keeping the Wi-Fi module constantly on without switching to sleep significantly increases battery drain. If your phone's battery drains within half a day, you might want to accept the occasional interruptions or carry a power bank.
There's also "Smart Network Switching," which can confuse priorities. If the phone detects that the Wi-Fi network isn't providing internet access (even if the router is simply silent), it can disconnect to avoid wasting resources on useless waiting.
Router issues and DHCP lease timeouts
Sometimes the problem isn't with the phone itself, but with the router's settings. The router assigns an IP address to the device for a certain period of time (called the Lease Time). If the phone doesn't renew this contract (sending keep-alive packets) while in sleep mode, the router may consider the device disconnected and terminate the connection.
Additionally, some routers have their own power-saving settings for connected clients (Green AP, Eco Mode). They can forcefully disconnect devices that haven't transmitted data for a long time to "clean up the airwaves."
Key router parameters worth checking:
| Parameter | Description | Recommended