Many users are familiar with the experience of suddenly losing internet access immediately after locking their smartphone. This can happen on both Android and iPhone devices, and it often causes confusion, as just a second ago you were happily watching a video or listening to music. The main reason It's rooted in the aggressive power-saving policies that mobile device manufacturers are implementing to increase battery life.
When you press the lock button, the operating system puts the device into sleep mode, turning off power-hungry modules. At this point Wi-Fi module It may be disabled or put into deep power-saving mode, which interrupts the connection to the router. If the app doesn't have the appropriate permissions or the system has strict background activity restrictions, the data transfer process is simply interrupted.
In this article, we'll take a detailed look at why this happens, what system settings affect connection stability in sleep mode, and how to properly configure your phone to ensure the internet works 24/7. Understanding the difference between software disabling a module and physically breaking the signal is the key to solving the problem. We'll cover settings for different versions of Android and iOS, and also touch on the nuances of router operation.
How Wi-Fi works in sleep mode
Modern smartphone operating systems are designed to minimize power consumption. When the screen goes dark, the system assumes the user is no longer interacting with the device and begins shutting down background processes. Wi-Fi adapter In this context, it is one of the main consumers of charge, so its operation is optimized first.
There is a special protocol that allows a device to "go to sleep" without completely losing connection to the network, but many equipment manufacturers make their own changes to the standards. For example, some models Xiaomi or Huawei They can completely cut off power to the communication module if they detect no active data transmission for a certain period of time. This means that the next time the app accesses the network, it must re-authenticate and establish a connection, which takes time and drains the battery.
In addition, an important role is played by Keep-Alive packet. This is a small signal the device sends to the router, saying, "I'm here, don't disconnect me." If the phone falls into deep sleep, it stops sending these packets, and the router, thinking the client has been lost, terminates the connection.
⚠️ Note: Power saving settings may vary depending on the firmware version and smartphone model. The menu interface may change after operating system updates, so always check the menu item names against the manufacturer's current documentation.
Power saving settings on Android
The Android operating system, especially third-party skins, has strict restrictions on background apps. If you're experiencing messaging apps stopping sending notifications or music stopping on the lock screen, this is the problem. The system forcibly puts apps to sleep, considering them inactive.
To resolve this issue, you need to find the battery settings. Typically, the path looks like this: Settings → Battery → Power SavingThis section often includes an option called "Sleep Mode" or "Limit Background Activity." You should find the list of apps that should be running constantly and remove restrictions for them. It's also worth paying attention to the "Adaptive Power Consumption" feature, which learns from your habits but sometimes doesn't work correctly.
The function deserves special attention Wi-Fi in sleep modeIn older versions of Android, this option was located in the advanced Wi-Fi settings, but in newer versions (Android 9 and above), access to it is often hidden or moved to the developer menu. If your phone has this option, select "Always."
- 🔋 Check the "Power Saver" mode - it often turns off background data.
- 📱 Make sure that background data transfer is enabled for important applications (WhatsApp, Telegram).
- ⚙️ Disable "Smart Network Switching" if your phone constantly switches between Wi-Fi and mobile data.
Some users report that the issue occurs after a system update. In this case, resetting the network settings helps, but this will require re-entering passwords for all Wi-Fi networks.
iOS Features and Battery Optimization
iPhone owners are less likely to experience Wi-Fi disconnection because iOS has stricter control over background processes. However, the issue may manifest itself as connection drops or the inability to receive push notifications. Apple has implemented the "Optimized Battery Charging" feature and various usage scenarios that can affect the behavior of the communication modules.
There's no explicit "Watch Wi-Fi During Sleep" switch in iOS, but there is a feature Auto-connection and network-specific settings. If you're in an area with an unstable signal, your iPhone may assume the network has been lost and switch to cellular data or simply disconnect to save battery. Check the settings in the Settings → General → Content Update.
It's also worth paying attention to the "Strong Data Limit" feature, which was added in newer versions of iOS. When enabled, the system will aggressively limit background app activity, which can lead to connection drops when the screen is locked.
It's important to check if "Low Data Mode" is enabled for your Wi-Fi network. You can do this by tapping the information icon (i) next to your network name in Wi-Fi settings. If this mode is enabled, some background processes may be paused.
The impact of router and DHCP settings
The problem may lie not only in the phone, but also in the router settings itself. Each device connecting to the network has its own IP address and lease time. If the lease expires and the phone is asleep and unable to renew the lease, the router reclaims the address and the connection is interrupted.
It's recommended to increase the IP address lease time in your router settings. The default value is often 120 minutes, but it can be increased to 1440 minutes (24 hours) or even longer. This ensures the phone retains its IP address even during extended periods of sleep.
| Parameter | Standard value | Recommended value | Impact on the problem |
|---|---|---|---|
| Lease Time | 120 min | 1440 min | High |
| DTIM Interval | 1 | 3 | Average |
| Beacon Interval | 100 | 100-200 | Low |
| Wi-Fi sleep mode | On | Disabled | Critical |
Another important parameter is - DTIM (Delivery Traffic Indication Message)This interval informs sleeping devices when the router will transmit buffered data. If the DTIM value is too high, the phone may "sleep" during the data transfer and drop the connection. The optimal value is considered to be 1 or 3.
What is a static IP and will it help?
Setting a static IP address on your phone eliminates the need to request an address from the router. This can help if the router's DHCP server is the issue, but it requires manual configuration of network parameters (mask, gateway, DNS) on each device.
Problems with the 2.4 GHz and 5 GHz frequency bands
Modern routers operate in two bands: 2.4 GHz and 5 GHz. The 5 GHz band offers high speeds, but has a shorter range and is less effective at penetrating walls. When you lock your phone and place it in your pocket or on a table, the signal strength may drop, causing the phone to attempt to switch to the 2.4 GHz band.
During this switching process (roaming between bands), the connection may be briefly interrupted. If the phone's settings prioritize 5 GHz and the signal there is weak, the device will constantly try to maintain that network, losing data packets in the background.
It's recommended to separate networks on your router by giving them different names (SSIDs), such as "Home_2.4" and "Home_5." Connect your phone to the 2.4 GHz network if it's far from the router or behind several walls. This range is more stable for background tasks and better at waking the device.
- 📡 2.4 GHz - better penetration through obstacles, ideal for smart home and background tasks.
- 🚀 5 GHz — high speed, but short range, suitable for streaming near the router.
- 🔄 Smart Connect - automatic range selection function, which sometimes does not work correctly.
If you're using the network aggregation feature (using the same name for both bands), try disabling it. Forcing a connection to a specific band often resolves the issue of constant reconnections.
Resetting network settings and other radical methods
If software settings and router manipulations don't help, it's possible that configuration errors have accumulated in the system. In this case, resetting the network settings is an effective solution. This procedure won't delete your personal data (photos, contacts), but it will clear all saved Wi-Fi passwords, Bluetooth settings, and cellular network settings.
To perform a reset on Android, go to Settings → System → Reset settings → Reset Wi-Fi, mobile data, and Bluetooth settingsOn iPhone, the path will be as follows: Settings → General → Transfer or reset iPhone → Reset → Reset Network Settings.
☑️ Troubleshooting checklist
After the reset, you should reconnect to your Wi-Fi network. This often "shakes up" the operating system's network stack and resolves software conflicts that could be causing connection drops when the screen locks.
⚠️ Important: Before resetting your network settings, make sure you remember your Wi-Fi password, as you'll need to re-enter it. You may also need to re-pair your Bluetooth devices (watches, headphones).
FAQ: Frequently Asked Questions
Why does Wi-Fi only turn off on the lock screen, but it works when it's on?
This is because when the screen is active, the system assumes you're using the device and maintains high performance for all modules. When the screen is locked, power-saving algorithms are activated, which can limit background activity and network adapter operation.
Does the case affect Wi-Fi stability when locked?
Yes, some metal or very thick cases can block the signal. When you hold the phone in your hand, the antennas work in one mode, but when you place the phone on a table with the case on, the signal strength can drop, causing the connection to drop when it goes into sleep mode.
Can antivirus software block Wi-Fi in the background?
Aggressive antivirus or memory-cleaning application settings can forcefully close processes responsible for maintaining network connections. Try adding your antivirus and system services to exceptions.
Will setting a static IP address help?
In some cases, yes. If the router assigns addresses incorrectly or frequently changes them, setting a static IP on the phone will eliminate this stage of the handshake process, which can stabilize the connection.
Why does Wi-Fi work on one phone but turn off on another?
Different phone models have different Wi-Fi modules and implement power-saving algorithms differently. Older devices may not support modern roaming standards or have worn antennas, making them more susceptible to sleep mode.