The situation when a smartphone suddenly loses internet connection immediately after putting it in your pocket or locking the screen is familiar to many users. Instead of staying connected to receive notifications or background downloads, the device enters a deep power saving mode, interrupting Wi-Fi connectionThis results in delays in important messages in instant messaging apps, and interruptions in music or navigation at the most inopportune moments. The problem lies not in a faulty router, but in the operating system's aggressive power-saving algorithms.
Modern versions Android And iOS They are designed to maximize battery life, often at the expense of background app activity. The system can forcibly disable the wireless module, considering it the main drain on battery power when idle. However, for many users, maintaining constant network availability is a priority, not conserving every last bit of battery life. This issue can be addressed through detailed system settings, which are hidden from the average user by default.
In this article, we'll explore how to ensure your smartphone maintains a stable connection even when locked. We'll cover the built-in operating system tools, developer options, and specific settings for various manufacturer-specific skins. Understanding these mechanisms will allow you to control your device's behavior, rather than relying on automatic solutions that often fail.
Reasons why the connection is broken when blocked
The main cause of signal loss is a feature known as "Wi-Fi sleep mode." By default, many devices are set to "Only when connected to charger" or "Always off." This means that once the screen goes dark, the system cuts off power to the communication module after a certain period of time. Energy saving In this case, it works too aggressively, ignoring the needs of background services.
Additionally, there are system optimizers that "kill" network-using app processes. If you don't add a messenger or navigator to the exceptions, the system will consider their background activity as unnecessary resource usage. This is especially common with Chinese firmware versions, where memory and network cleaning occurs literally every minute of inactivity. It's also worth considering that some routers can automatically disconnect from a client that hasn't transmitted data for a long time.
⚠️ Note: On some smartphone models, settings may have different names or be missing from the standard menu due to manufacturer or carrier restrictions. Always check that the interface is up-to-date in your software version.
It's important to distinguish between a software network reset and a physical shutdown of the module. In the former case, the application simply cannot receive data, while in the latter, the radio module actually goes into sleep mode. System logs or third-party monitoring utilities can be used to diagnose the problem, but most often, simply checking the correct configuration parameters is sufficient.
Basic Android settings for saving Wi-Fi
The first thing that owners of devices based on this platform need to do is Android — Check the default network settings. Even though Google constantly changes the menu layout across OS versions, the key setting often remains accessible. You need to find the section that controls Wi-Fi behavior when the device goes into sleep mode. In older versions of Android, this was obvious, but in newer versions, it's hidden deeper in the menu.
Go to Settings → Wi-FiThere's usually a menu button (three dots or a gear) here, which hides additional settings. Look for "Keep Wi-Fi on during sleep." This is where the answer to the question of why the internet connection is dropping lies. You need to select "Always." If it's set to "Only while charging," the network will disconnect without a cable connected.
It's also worth paying attention to the "Wi-Fi Assist" or "Smart Network Switching" feature. It's designed to switch you to mobile data if the Wi-Fi signal is weak. However, the algorithm often malfunctions, switching to LTE even when the router signal is strong, creating the illusion of a disconnect. Disable this feature if you want to stay connected to the Wi-Fi network.
After changing these settings, the system may require a reboot for the settings to take effect. Don't ignore this request, as the wireless module drivers are initialized during system startup. After powering on, check the stability of the connection by locking the screen and waiting 5-10 minutes.
Advanced options and developer mode
If standard methods don't help, you'll have to dig deeper. Android has a hidden menu called "Developer Options," which contains low-level settings. To activate it, tap the build number seven times in the "About phone" section. Once activated, a new item will appear in the settings menu, containing critical parameters for our case.
Within the developer menu, we're interested in the "Networking" section. Here you'll find the "Pause Wi-Fi on standby" option. Make sure this switch is off. You may also see the "Always keep mobile data on" option. If enabled, the phone will keep both data channels active, ensuring no interruptions but increasing battery drain.
- 🔍 Aggressive Wi-Fi switchingThis option makes the phone switch between access points faster, but may cause brief disconnects. Try disabling it.
- 📡 Scanning throttling: Limit network scanning. Enabling this feature can reduce the frequency of network scans, which can sometimes help stabilize the connection, but isn't always effective for maintaining a connection.
- 🔋 Wi-Fi Power Saving ModeSome firmware versions have a separate power saving switch for Wi-Fi. This needs to be deactivated.
Be careful when changing settings in developer mode. Incorrect configuration may result in system instability or rapid battery drain. Write down the original settings so you can revert them if necessary. This is especially true for settings related to scanning frequency and roaming.
How to enter developer mode on different brands?
On Samsung: Settings → About phone → Software info → Tap Build number 7 times. On Xiaomi: Settings → About phone → Tap MIUI version 7 times. On Pixel/Stock Android: Settings → About phone → Tap Build number 7 times.
Battery optimization and app exceptions
Modern versions of Android (starting with 6.0, and especially 10, 11, and 12+) have implemented a strict power management policy called Doze. The system "puts to sleep" apps that aren't currently in use, limiting their network access. Even if Wi-Fi itself isn't disabled, specific apps (such as Telegram or Mail) can be blocked from accessing it in the background.
To fix this, you need to find the battery settings. Go to Settings → Battery → Battery optimization (The path may vary). Find the apps you care about in the list. By default, they are set to "Optimize." You need to change this status to "Don't optimize" or "Unlimited." This will give the app the green light to use the network at all times.
Xiaomi, Huawei, and Honor devices have additional "memory managers" and "task managers" that run on top of Android's system settings. They can force-close apps and disable network connectivity to save battery life. Go to the "Security" or "Phone Manager" app, find the "Permissions" or "Auto-start" section, and allow background activity for the desired apps.
| Smartphone brand | Path to battery settings | Key option | Recommended value |
|---|---|---|---|
| Samsung | Settings → Device Maintenance → Battery | Background restrictions | Applications are unlimited |
| Xiaomi / Redmi | Settings → Battery & Performance | Power saving applications | No restrictions |
| Huawei / Honor | Settings → Battery → Launch apps | Launch control | Autostart is enabled |
| Google Pixel | Settings → System → Multitasking | Adaptive battery | Disable for important apps |
After making changes to battery optimization, it's recommended to completely close the app and relaunch it. This is necessary for the new rules to take effect for the current app session. Check if notifications are still appearing on the lock screen.
☑️ Checking energy saving settings
iOS Specifics: Wi-Fi Assist and Background App Refresh
Users iPhone And iPad are facing similar issues, although iOS operates differently from Android. There's no explicit concept of "Wi-Fi sleep mode," but there is a function Wi-Fi AssistIt's designed to improve the user experience by switching to mobile data if Wi-Fi is slow. However, this often results in the phone "thinking" Wi-Fi isn't needed and disconnecting.
To disable this feature, go to Settings → CellularScroll to the bottom of the page. There you'll find the "Wi-Fi Assist" toggle. Make sure it's off. This will force your phone to use only Wi-Fi, even if the signal is weak, and won't trigger a connection drop to switch to LTE.
Also check your background content refresh settings. In the section Main → Content Update Make sure this setting is enabled for the apps you need. If it's disabled, the app won't be able to receive data until you open it, which creates the feeling of losing network connectivity. Additionally, in iOS 13 and later, there's a "Low Data Mode" setting in the settings for a specific Wi-Fi network—make sure it's disabled.
⚠️ Note: On iOS, settings may reset after a system update or resetting network settings. If the issue returns after updating iOS, check these settings again.
Another possible cause is the "Private Wi-Fi Address" feature introduced in iOS 14. It changes the device's MAC address for each network, which some routers interpret as a new device connecting and may block or reset the session. Try disabling this feature for your home network in Wi-Fi settings (the "i" icon next to the network name).
Additional methods and working with the router
Sometimes the problem isn't with your phone, but with the router settings. Some routers have a feature called Client Timeout that disconnects clients that haven't transmitted data for a certain amount of time. If your phone has gone into deep sleep and stopped sending packets, the router may be disconnecting from its end. Go to your router settings (usually at 192.168.0.1 or 192.168.1.1) and look for Wireless Settings.
It's also worth paying attention to the power-saving standards of the Wi-Fi module itself. Protocols like U-APSD (Unscheduled Automatic Power Save Delivery) allow the device to sleep for longer periods, waking up only to receive data. If the router doesn't process these signals correctly, the connection may be lost. Try changing the wireless mode from automatic to a specific one, for example, 802.11 n/ac/ax mixed, eliminating old B/G standards that may cause conflicts.
In extreme cases, when software methods don't help, you can use third-party applications that prevent the Wi-Fi module from going to sleep. For example, WiFi Keeper or Stay AliveThese apps periodically send data packets, preventing the system from thinking the network is idle. However, use them with caution, as they do drain battery life.
Keep in mind that older router models may simply not be able to handle a large number of connected devices or outdated encryption. If your router is more than 7-10 years old, its firmware may not work correctly with modern smartphone power-saving protocols. In this case, updating the router's firmware or replacing it is the only reliable solution.
Frequently Asked Questions (FAQ)
Why does Wi-Fi turn off on the lock screen?
This is the default behavior of the power-saving system. When the screen is off, the OS assumes the user is inactive and goes into sleep mode, disabling power-hungry modules, including Wi-Fi, to conserve battery life.
Does the case affect the Wi-Fi signal quality?
Yes, especially if the case has metal inserts, magnets, or is too thick. Metal shields the signal, and at the slightest weakening of the connection, the system may decide to switch to the mobile network or disconnect.
Will deleting Wi-Fi networks reset my network settings?
Removing a network from the list of saved networks will only reset the connection settings for that specific network (password, IP). Global Wi-Fi sleep mode settings will not be affected; these should be checked separately.
Can antivirus software block Wi-Fi in the background?
Some antivirus programs with "Data Saver" or "Protection on Public Networks" features may block background data transfer. Check your security software settings.
Will a factory reset help?
A factory reset will return all settings to their defaults, including Wi-Fi settings in sleep mode. If the problem was caused by an erroneous user change or a system failure, a factory reset will resolve the issue. However, if the issue is with the router's hardware or firmware, it won't.