The situation when Wi-Fi connection The experience of disconnecting immediately after your smartphone screen goes dark is familiar to many users. You're listening to music online, downloading a large file, or waiting for an important notification, but as soon as you press the lock button, the internet connection disappears. This is not only annoying, but also forces your phone to switch to mobile data, depleting your data plan.
The main reason for this behavior lies in the aggressive energy-saving algorithms implemented by device manufacturers and operating system developers. Android And iOS Many devices strive to maximize battery life, so they may completely disable the wireless module when entering sleep mode. However, this isn't always the case, and the problem can often be resolved with a simple parameter adjustment.
In this article, we'll take a detailed look at the technical aspects of the radio module's background operation, explore hidden developer settings, and examine system limitations that can cause connection interruptions. You'll learn how to diagnose the problem and restore stability to your connection.
How does power saving work and how does it affect Wi-Fi?
Modern smartphones are equipped with sophisticated power management systems. When you lock the screen, the device enters a low-power state known as Doze mode (sleep mode) in the Android environment. In this state, the system limits background app activity and network requests to conserve battery life.
The problem arises when algorithms detect that the user is not interacting with the screen and decide to "put the Wi-Fi module to sleep." This is especially true for devices with a weak signal or older router models that don't support modern energy-saving standards. The system may decide that maintaining an active connection is inappropriate at that moment.
⚠️ Attention: Some smartphone models (especially Xiaomi, Huawei, and Samsung) have custom skins that are more aggressive than stock Android. They can even forcefully "kill" network processes without even entering deep sleep.
It is also worth considering that security protocols may require re-authorization each time the module wakes up. If this process takes too long or the DHCP server doesn't respond immediately, the user experiences a disconnection. In some cases, the phone won't even attempt to reconnect until you unlock the screen again.
Power saving settings on Android
The Android operating system offers multiple levels of power consumption control. An option that disables Wi-Fi during sleep is often enabled by default. To check and change this, you need to access the advanced network settings. The path may vary depending on the OS version and device model.
You need to find the option that controls the module's behavior in sleep mode. It's usually called "Wi-Fi during sleep" or something similar. Here, select the "Always" option to prevent the system from disabling the radio interface. If this option isn't in the regular menu, it may be hidden in the developer options.
- 📱 Go to
Settings → Connections → Wi-Fi. - 🔍 Click on the three dots in the corner or the "More" button.
- ⚙️ Find the item
Wi-Fi while you sleepand select Always. - 🔄 If there is no item, activate the developer menu (tap the build number 7 times in
About the phone).
Pay special attention to the settings for specific apps. If only Spotify or Telegram is crashing, the problem may be related to background activity restrictions for those apps. The system may allow Wi-Fi but block access for heavy apps.
☑️ Check Android settings
iOS Features and Low Power Mode
In devices Apple The network logic is somewhat different, but the issues are similar. iOS doesn't have a direct equivalent to the "Wi-Fi during sleep" setting that's openly accessible to the user. However, the system automatically manages the connection based on user behavior and app requirements.
Often the reason for breakups is the regime Low Power Mode (Battery Saver). When the battery is low or this mode is manually enabled, iPhone limits background email downloads, content updates, and Wi-Fi usage. In this mode, the phone may periodically disconnect from the network to save power.
There's also a "Wi-Fi Assistant" feature that can switch you to mobile data if the system detects a weak wireless signal. When the screen is locked, the phone may mistakenly detect an unstable signal and switch, creating the illusion that Wi-Fi is disconnected.
⚠️ Attention: iOS 15 and later introduce network isolation and tracking protection features, which can impact connection stability with routers. Try disabling "Private Wi-Fi Address" for your network in Settings.
Resetting network settings is useful for troubleshooting your iPhone. This won't delete your data or photos, but it will return all network settings to factory defaults, which often resolves configuration conflicts.
Router and DHCP setup issues
It's not always the phone's fault. Often, the problem lies in the router's settings. If IP address rental (DHCP Lease Time) is set to too short a time, the router may disconnect from a device that has been inactive for a long time, considering it to be disconnected.
When a phone is blocked, it stops actively transmitting data packets. The router, seeing the silence, may decide to release the IP address for another client. When the phone tries to connect to the network again, there's a conflict or delay in obtaining a new address, which the user perceives as a disconnect.
Furthermore, older router firmware may contain bugs in the implementation of Wi-Fi power-saving standards. Updating your router's firmware to the latest version often fixes these bugs and improves compatibility with new smartphones.
| Parameter | Recommended value | Impact on the problem |
|---|---|---|
| DHCP Lease Time | 120 minutes (or more) | Increases IP lifetime by preventing breaks |
| Beacon Interval | 100 ms | Standard interval, change may destabilize the network |
| DTIM Period | 1 or 3 | Affects how often clients wake up to receive data |
| Wi-Fi Mode | 802.11 n/ac/ax mixed | Compatibility with old and new devices |
To access these settings, you'll need to log into your router's web interface. This is typically done through a browser at 192.168.0.1 or 192.168.1.1The login and password are often indicated on a sticker on the bottom of the device.
How to access router settings?
Find the sticker on the bottom of the router. It contains the IP address (e.g., 192.168.1.1), username, and password. Enter the address in a browser (Chrome, Safari) from the connected phone. If you changed the password and forgot it, you'll need to reset the router using the Reset button.
Hidden developer and radio module settings
For advanced users who haven't found the solution with standard methods, there are hidden menus. Android has an engineering menu and developer settings that allow for more granular control over the radio module's behavior. However, extreme caution is required here.
One useful feature is disabling network scanning in sleep mode. If the phone constantly scans for new networks when the screen is off, it can cause the current connection to drop. Disabling this option can stabilize the connection.
- 🛠️ Enable developer mode (7 clicks on the build number).
- 📡 Find the section
NetorNetworkingin the developer menu. - 🚫 Disable the option Always scan networks (if it is active).
- 📉 Check your settings
Packet aggregation(Packet Aggregation) - Toggle on or off experimentally.
It is also worth paying attention to the settings roamingIf you have multiple access points or repeaters at home, your phone may be trying to switch between them in the background, losing connection. Setting network priority or channel locking can help.
Diagnosing and resetting network settings
If software adjustments don't help, it's possible that configuration errors have accumulated in the system. The network stack may have become corrupted after an OS update or the installation of a conflicting application. In this case, a complete reset of network settings is a possible solution.
This operation will reset all Wi-Fi, Bluetooth, and mobile network settings to factory defaults. You'll have to re-enter your Wi-Fi network passwords and reconnect your Bluetooth devices, but this often resolves mysterious disconnection issues.
Before resetting, it is recommended to run diagnostics using third-party applications such as Wi-Fi AnalyzerThey will show whether the channel your router is using is overloaded or whether neighboring equipment is interfering.
⚠️ Attention: Resetting network settings won't delete your personal files, photos, or contacts. However, it will delete all saved Wi-Fi passwords and VPN settings. Make sure you remember your home network password.
After resetting, it's recommended to reboot both the router and phone. The order is important: first turn off the router, then the phone. Turn on the router, wait until it fully boots up, and only then turn on the phone. This will allow the device to obtain a "clean" IP address without conflicts.
What to do if nothing helps?
If resetting the router and reflashing the firmware didn't help, the issue may be with the phone's antenna hardware or incompatible encryption standards (WPA2/WPA3). Try changing the router's encryption type to WPA2-PSK (AES).
Why does Wi-Fi only turn off on a locked phone, but work on an unlocked one?
This is a classic sign of a power-saving system. When the screen is active, the system assumes the user is waiting for data and keeps the module in full operation. When the screen is locked, sleep algorithms are activated, which may be configured too aggressively or not work correctly with your router.
Does the case affect signal loss when locked?
Yes, some metal or thick cases can block the signal. When you hold your phone in your hand (with the screen unlocked), your body also acts as part of the antenna or, conversely, as a grounding point. Placing your phone on a table with the case on and the screen locked changes the reception conditions, which can lead to signal loss if the signal is weak.
Can a virus or malware cause Wi-Fi to disconnect?
Theoretically, yes, malware can control network interfaces. However, most often, the cause is "optimizers" and "memory cleaners" that the user installs themselves. These can forcibly disable the network to "save bandwidth" or "speed up performance."
Should I update my router firmware if my Wi-Fi keeps dropping out?
Definitely worth it. Router manufacturers regularly release updates that fix connection stability issues and compatibility with new versions of Android and iOS. This is one of the first steps in diagnosing network problems.
How to check if constant Wi-Fi is draining your battery?
Using Wi-Fi in the background does drain battery life, but it's not critical. If you notice your phone getting very hot in your pocket when the screen is locked, it may be constantly losing connection and trying to reconnect. In this case, it's better to find the cause of the disconnections rather than simply disconnecting the network.