Why does Wi-Fi turn off when my phone is locked?

Many users are familiar with the situation where a smartphone stops receiving notifications or loses connection to the router immediately after turning off the screen. This isn't a random hardware failure, but rather the result of aggressive power-saving algorithms implemented in modern operating systems. Android and iOS developers strive to maximize battery life, so when the device goes into sleep mode, background activity Network modules are often limited or completely discontinued.

When the screen is active, the system assumes the user is interacting with the device and maintains all connections at maximum performance. However, once you lock the device, the policy takes effect. Deep Sleep or similar optimization mechanisms. At this point, the operating system may terminate the connection with Wi-Fi router, assuming that you don't need background data downloading right now, or switch to mobile Internet to save power if the cellular network signal is more stable.

Solving this problem requires a comprehensive approach, as the causes may lie in both the smartphone's settings and the router's parameters. You'll need to check sleep mode settings, app power management, and DHCP settings. Understanding how your phone model manages network interfaces, will help restore connection stability without critically impacting battery life.

⚠️ Attention: Disabling power saving completely can cause your battery to drain noticeably faster, especially if you have a poor Wi-Fi signal and your phone is constantly searching for a network.

Power-saving mechanisms in Android and iOS

The main culprit of connection drops is the power management system. Modern versions of Android, starting with version 6.0 and especially Android 9 Pie and newer, have implemented a mode called DozeWhen the device is stationary with the screen off, the system enters a deep sleep state, suspending background activity and limiting network connections. iOS uses similar but more restrictive mechanisms, where background content refresh is strictly controlled by the user.

Owners of smartphones from different manufacturers experience varying degrees of aggressiveness in these settings. For example, skins MIUI from Xiaomi, One UI from Samsung or ColorOS OPPO's apps often have their own additional battery protection levels, which can be even stricter than Google's default settings. These systems can forcibly kill processes that use Wi-Fi unless they're on the exception list.

📊 What phone do you have?
Samsung
Xiaomi
iPhone
Another Android

It's important to distinguish between normal system behavior and errors. Normal behavior is a brief pause in data transfer, which resumes when a high-priority push notification arrives. An error, however, manifests itself as a complete loss of connection, when the phone is unlocked and you see a Wi-Fi icon with an exclamation point or a spinning connection indicator. To diagnose this, check the section Settings → Battery.

Wi-Fi settings in sleep mode on Android

The first thing an Android device owner needs to do is find the hidden setting that controls Wi-Fi behavior during sleep. On stock Android, this setting is usually found in the advanced wireless settings. You need to follow this path: Settings → Wi-Fi → Advanced (or three dots in the corner) → Wi-Fi during sleepHere you should select the option "Always" or "Always keep on".

However, on many modern smartphones, this global setting may be missing, giving way to individual app controls. This means you'll need to prevent the system from disabling Wi-Fi for specific, important apps, such as instant messaging apps or email clients. Go to Settings → Applications, select the desired application, find the "Battery" or "Power saving" item and set the mode to "Unlimited" or "Do not limit".

☑️ Check Android settings

Completed: 0 / 1

Phones with heavily modified shells deserve special attention. In devices Huawei or Honor The "Smart Network Safety" feature may be active. This feature switches the device to mobile data if it detects Wi-Fi is unstable, even if it's actually working. Disabling this feature often resolves the issue of data packet loss when the screen is locked.

Optimizing iPhone (iOS) settings

In the ecosystem Apple The connection management approach is more centralized, but less flexible for manual control. If your iPhone's Wi-Fi turns off when locked, the first thing to check is the "Wi-Fi Assist" feature. It's designed to switch to mobile data when the Wi-Fi signal is weak, but it often works incorrectly, disconnecting prematurely. It's located along the path Settings → Cellular → Wi-Fi Assist (at the very bottom of the list).

It's also worth paying attention to background content refresh settings. While iOS automatically controls when apps can update, manually disabling these actions can cause the system to consider the app inactive and reduce its network traffic priority. Make sure that in the section Settings → General → Content Update The switch is active for the applications you need.

Secret Network Settings Reset on iOS

If all else fails, try resetting your network settings. This won't delete your data or photos, but it will clear all saved Wi-Fi passwords and Bluetooth settings. Go to Settings → General → Transfer or reset iPhone → Reset → Reset Network Settings.

Another important aspect is software updates. Apple regularly releases patches that fix modem and Wi-Fi module issues. If the problem appeared after the latest iOS update, it may be a known bug, and you should wait for the next patch or, conversely, update if you're behind schedule. Check your iOS version in the section Basics → About this device.

⚠️ Attention: iOS interface settings may vary depending on the operating system version. If you can't find an option, search for the feature name in the settings.

Router-side issues and DHCP leasing

Often, the problem lies not with the phone, but with the router settings. The key parameter here is the DHCP lease time. This is the time period for which the router "gives" the phone an IP address. If this period is too short, the lease may expire when the phone goes to sleep and stops actively pinging the router. The router takes away the IP address, and when the phone wakes up, it won't be able to quickly reconnect.

To solve this problem, you need to log into the router control panel (usually at 192.168.0.1 or 192.168.1.1). You need to find the section LAN or DHCP Server. Increase the value Lease Time up to the maximum possible (for example, up to 120 hours or 720 minutes). This ensures that the IP address will remain assigned to the device for a long time, even if it is in sleep mode for a long time.

Parameter Recommended value Impact on the problem
DHCP Lease Time 120 hours (7200 min) Prevents IP address loss during sleep
DTIM Interval 1 or 3 Buffering notification frequency for sleeping devices
Beacon Interval 100 ms (standard) Network availability signal, important for quick reconnection
Wireless Mode 802.11 n/ac/ax mixed Compatibility with old and new communication standards

It's also worth checking your wireless settings. Some older routers have issues with standard compatibility. 802.11n And 802.11ac when clients switch to power saving mode. Try changing the wireless network mode in the router settings from "Auto" to a specific standard, for example, only 802.11n or 802.11gto check if the connection stability changes.

Reset network settings and reboot

If software adjustments don't work, the system may have accumulated network configuration cache errors. Resetting network settings is a drastic but often effective method. It will return all Wi-Fi, Bluetooth, and mobile network settings to factory defaults. Keep in mind that after this procedure, you'll have to re-enter passwords for all Wi-Fi networks.

On Android this is done via Settings → System → Reset settings → Reset Wi-Fi, mobile data, and Bluetooth settingsOn iPhone, the path looks like this: Settings → General → Transfer or reset iPhone → Reset → Reset Network SettingsThis action clears the routing tables and resets the network driver states.

Don't forget to simply reboot your router. Network devices running for months without being turned off can fill up their log files or experience memory leaks, which can lead to incorrect processing of requests from idle clients. Unplug the router for 10-15 seconds, then plug it back in and wait until it fully boots up.

Additional factors and radio interference

A physical factor also can't be ruled out. If the phone is in a poor reception area, the antenna may go into low-power mode when it goes into sleep mode, causing the signal strength to drop below the detection threshold. As a result, the phone loses network coverage and, when it wakes up, can't quickly find an access point. Check whether a case is blocking the antenna or whether the router is too far away.

It's also worth mentioning the impact of third-party optimization apps. Various "Clean Master," "Battery Saver," and antivirus programs may have their own, more aggressive Wi-Fi shutdown rules that override system settings. If you have such utilities installed, try temporarily uninstalling them or adding the Wi-Fi module to the exceptions list.

In rare cases, the issue may be related to the frequency band. Smartphones maintain a better signal on the 2.4 GHz frequency than on the 5 GHz band, especially through walls. If your phone constantly switches between bands or tries to hold on to the weak 5 GHz band, it may lose connection when blocked. Try forcing a switch to the 2.4 GHz network to test stability.

Why does Wi-Fi only turn off for some apps?

This is due to individual battery optimization settings for each app. Android and iOS systems allow you to customize the behavior of each installed app individually. If background activity is restricted for a specific messenger or email app, the system will block its network access as soon as the screen goes dark, creating the illusion that Wi-Fi is disconnected.

Does airplane mode affect this issue?

Airplane mode completely disables all wireless modules. However, there's a caveat: if you manually enable Wi-Fi after activating Airplane mode, some phone models may incorrectly handle Airplane mode interruptions when the screen is locked, prioritizing completely disabling radio modules to save battery life.

Can an Android update fix the problem?

Yes, Google and device manufacturers often release security and stability patches that fix bugs in Wi-Fi drivers. If the problem recently appeared, check for system updates in the section Settings → About phone → Software update.

What to do if nothing helps?

If resetting the settings or changing the router settings doesn't help, there may be a hardware problem with the Wi-Fi module or antenna. In this case, you should contact a service center for diagnostics. You should also perform a hard reset of your phone to factory settings, saving important data first.