Prevent WiFi from disconnecting when you lock the screen

  • WiFi disconnection when locking the screen is usually due to power settings, battery saving, or drivers.
  • Windows, Android, iPhone, and Linux have specific options to prevent the network from being cut off when suspending or blocking.
  • Checking power management, adapter settings, and driver updates resolves most cases.
  • On mobile devices, in addition to keeping WiFi active, you can prevent third parties from turning off the device or disabling the network.

Prevent WiFi from disconnecting when you lock the screen

When the WiFi cuts out as soon as you lock the screen Whether on a laptop or mobile device, the user experience becomes a real nightmare: work sessions that drop, notifications that don't arrive, and constant reconnections. Luckily, in most cases it's not a hardware failure, but a configuration issue.

Throughout this guide you will see, in a very detailed and step by stepWe'll explain what causes the Wi-Fi connection to disconnect when the screen is locked and how to prevent it on different systems: Windows (laptops like the Dell XPS or computers that lose Wi-Fi after going to sleep), Android, iPhone, and Linux (Manjaro/KDE). We'll also see a very useful trick to prevent anyone from accessing the screen. Turn off your mobile phone or disconnect from the network when the screen is locked.

Common causes of WiFi disconnecting when locking the screen

Virtually all devices contain a combination of energy saving options and network management and factors such as signal strength These settings come into play as soon as the screen turns off, the session locks, or the device goes into sleep mode. If any of these settings are too aggressive, the typical consequence is that Wi-Fi is disabled.

Among the most common causes, several stand out that are repeated time and time again when the WiFi drops when the device is locked:

  • Power management settings of the system, which turn off components when they detect inactivity.
  • Specific power settings of wireless adapter (WiFi) that puts it to sleep.
  • Battery saving mode on laptops and mobiles, which limits or cuts off the connection in the background.
  • Outdated drivers or firmware or with aggressive energy-saving behavior.
  • Internal policies and settings in the Device administrator (Windows) or kernel drivers (Linux).
  • Management of sleep or lock mode by the system (Windows, Android, iOS, Linux).

In some systems, a very specific pattern is even observed: the system does not officially enter sleep mode, but after a few seconds with the screen blackThe WiFi card stops responding and only comes back to life when a key is pressed or the device is unlocked.

Typical problems on Windows laptops when locking the screen

On Windows laptops, such as certain Dell XPS models or other computers that seem to work fine until the session locks up, the most common symptom is that The WiFi disconnects a few seconds after locking. with Windows + L or when entering automatic sleep mode.

Lock the gallery with a PIN
Related article:
How to lock your gallery with a PIN and protect your photos

In some cases, the user notices that, after locking, the screen turns off, a brief interval passes, and then the network connection drops: for example, a Continuous ping from another computer stops responding Right after 30-40 seconds. When you press a key or move the mouse to "wake up" the screen, the packets start responding again.

What's striking is that the laptop may not officially enter sleep mode: the system remains active, remote sessions (Citrix, VPN, remote desktop…) were running, but the WiFi adapter It has been turned off by some energy-saving system as soon as the screen has locked.

There are also cases where, when the computer goes into sleep mode due to inactivity, upon waking it logs in but the WiFi option has completely disappeared: only the Wi-Fi option appears. Airplane mode and wired connection, without a list of networks or a wireless network icon, and everything is only recovered after turning the computer off and on.

Adjusting power settings in Windows

Many of these problems can be fixed by calmly reviewing the Windows power settings and, specifically, how the wireless adapter is managed when the device is on battery, plugged in, or locked.

These are the basic steps to check your power plan and make sure it's not accidentally killing your WiFi:

  1. Open the Control panel from the Windows search engine.
  2. Sign in Security system > Energy options.
  3. Find a active energy plan and click on "Change plan settings".
  4. Click on «Change advanced power settings».

In the advanced options window, you'll see a tree with multiple categories. The most important one in this context is... Wireless adapter setupHowever, it may not appear on some devices because the manufacturer has reduced options or uses its own software.

If you see the wireless adapter section, expand its options and adjust the Power saving mode For both "On battery" and "On AC power," set the power level to a value that prioritizes stability, such as "Maximum performance." This prevents Windows from trying to put Wi-Fi into deep sleep when it detects that you are not actively using the computer.

Wireless adapter and device manager settings

Prevent WiFi from disconnecting when you lock the screen

When the Windows power menu does not offer a clear section for the wireless cardThe problem needs to be addressed from the Device Manager, which is where driver-level behavior is controlled.

To access and review these parameters, the general procedure is as follows:

  1. Right-click on the icon of Home and choose Device administrator.
  2. Look for the section Network adapters and displays the list.
  3. Locate your WiFi adapter (it usually appears as Intel, Realtek, Qualcomm, etc.) and open its Properties.
  4. On the "Power Management" tab, check if the checkbox is selected.Allow the computer to turn off this device to save power».

If that box is checked, it should be unchecked to prevent Windows from completely turn off the wireless adapter This setting often has an immediate impact when you lock the screen, close the lid, or when a power-saving policy is activated. This setting can also affect connectivity, particularly in cases where the connection drops after a period of inactivity.

There are situations, however, where the card driver provided by the manufacturer (for example, a Dell driver based on IntelIt doesn't show any power management tab. In these cases, some users have tried both the manufacturer's driver and the official Intel driver without noticing any changes, and without finding any visible options to adjust WiFi power saving.

Drivers, BIOS, and options that can make all the difference

Another element that comes into play is the state of the BIOS/UEFI and driversUpdating the BIOS is usually recommended to ensure compatibility with newer versions of Windows and to fix bugs, but it doesn't always offer a specific menu to change the WiFi behavior in sleep or locked mode.

Some older laptops in the same family (for example, previous generation XPS models) do have one Explicit option in Windows that says something like "do not disconnect from the network when going to sleep"On newer devices, this option may not appear, despite having similar hardware, which makes it difficult to find an equivalent setting.

Those who have that option could even compare the condition of the Windows' register Before and after enabling or disabling the setting, to identify which key is controlling the network's sleep behavior. This would allow for reproduction on devices where the option is not displayed in the interface.

Furthermore, maintaining the updated network drivers This is key: an outdated driver can improperly handle the transition between power states and cause the Wi-Fi to drop when the screen is turned off. From Device Manager, you can use the "Update driver" option to have Windows search for newer versions, or go directly to the website of the laptop or network card manufacturer.

Battery saving mode and its impact on the connection

On laptops with Windows 10 and later versions, the battery saving mode It introduces an additional level of aggressive resource management. This mode can reduce background processes, limit synchronization, and in some cases, affect how the Wi-Fi connection is maintained when the screen is locked.

To review its behavior, you can go to:

  1. Configuration > System > Battery.
  2. Check how battery saving is configured and whether it is automatically activating at a certain percentage.
  3. Verify that it allows the necessary background activities, including maintaining an active WiFi connection.

If you notice that the connection only drops when the device is on battery power and power saving mode is activated, it's worth reducing the aggressiveness level or temporarily disabling the mode to see if that's the cause. WiFi disconnects when the screen is locked.

When WiFi disappears after sleep in Windows

There are more extreme cases where, after a period of suspension due to inactivity, the PC returns in a state where The WiFi option has completely disappearedThe system icon only shows airplane mode or Ethernet; it does not allow searching for networks or activating the wireless adapter.

In this scenario, many people have unsuccessfully tried solutions such as:

  • Update the network adapter from Device Manager.
  • Change the energy options associated with the active plan.
  • Trying to update Windows to newer versions (for example, from 10 to 11), without being able to do so because hardware limitations.

The only way to restore connectivity is usually Turn off completely and turn on again The computer, which revives the network card until the next sleep. In these cases, in addition to checking everything mentioned above, it's advisable to consider a complete driver uninstallation (including deleting the software) and reinstalling the latest stable version from the computer manufacturer's website or directly from the WiFi chip manufacturer.

Hide notification content on the lock screen
Related article:
How to hide notification content on the lock screen

WiFi that cuts out when turning off the screen of the Android mobile phone

On Android phones, it is also common that when the screen is turned off, the system decides Turn off WiFi to save batteryThe user notices that while using the phone everything is fine, but if they leave it locked, after a while notifications from apps like WhatsApp or social networks stop arriving.

This can happen even with phones that haven't been rooted, with fairly old versions of Android (like 4.2.1 on some Lenovo devices), or with more modern versions that have very aggressive power management interfaces. Although some settings menus may include options related to associating the Wi-Fi network with location or WLAN settings, disabling them can sometimes cause problems. The underlying behavior does not change.

Many Android devices have a specific setting that allows you to indicate whether you want the WiFi to stay connected. always on during sleeponly when it's plugged in or when it's turned off while in sleep mode. This setting can be found in different places depending on the version and layer, but it's usually located in:

  • WiFi > Advanced menu (three dots) > "WiFi in sleep mode" or similar.
  • Or inside Battery / Energy saving, in sections that manage the background activity of apps.

The key is to select an option that keeps Wi-Fi active when the screen is off, so that messaging apps and other services, including applications to optimize your WiFi, receive real-time messages and notifications even if you're not actively using your mobile phone.

Prevent your mobile phone from being turned off or your network from being cut off (Android)

In the area of ​​security, there is also a very useful trick on some Android devices to prevent a third party from turning off your phone or turn off WiFi/data if it is stolen or taken from you in a risky situation.

The idea is simple: when someone steals your phone, the first thing they usually try to do is hold down the side power button to turn it off and prevent it from being tracked. They will also try disable network connections (WiFi, mobile data) so that the device stops sending its location.

On certain Android devices with custom interfaces like Samsung's, you can change the function of the side button so that, when held down, instead of bringing up the traditional power menu, a [unclear - possibly "power off" or "power off"] is activated. assistant (like Bixby)With this change, the thief feels like he's doing something wrong because the power-off option doesn't appear, making it more difficult for him to quickly disconnect the device.

In addition, there's a security setting that blocks network changes when the screen is locked. It's usually found in paths like:

  • Settings > Lock screen and AOD > Secure lock settings.
  • After entering the PIN or pattern, activate the option "Network lock and security" or equivalent.

This option prevents, with the screen locked, WiFi or mobile data can be turned off without first unlocking the device. The system itself usually warns that this ensures services like "Find My Mobile" can continue using those connections to locate and control the phone in case of loss or theft.

WiFi that cuts out when turning off the iPhone screen

Problems have also been reported on iPhones where, after update to specific iOS versionsThe Wi-Fi disconnects as soon as the screen is locked. Users with models like the iPhone 14 Pro on iOS 16.4 or 16.4.1 have noticed that once they stop using the phone, the Wi-Fi disconnects and notifications stop arriving until they turn the screen back on.

In some cases, this behavior did not occur in earlier versions of iOS 16, or it was temporarily resolved by forgetting the Wi-Fi network and re-entering the password. However, in later versions, the problem persisted even after:

  • Reset network settings.
  • Forget and re-add the affected WiFi networks.
  • Reset all device settings.
  • Make a full iPhone reset and configure it from scratch.

Although in some cases Apple support has not yet provided a definitive solution, it is known that these types of problems usually originate from bugs specific to certain iOS versionsMeanwhile, some people choose to leave mobile data active to continue receiving notifications when WiFi is cut off when the screen is locked.

As an additional security and control measure, you can also limit what other people can do on your iPhone when it's locked. For example, you can disable access to the Control center from the lock screen, which prevents disconnecting WiFi or data without first unlocking the phone.

The typical route to change this is:

  • Settings > Face ID and code (or Touch ID and code).
  • Enter the access code.
  • In the "Allow access with the screen locked" section, disable Control center.

This makes it more difficult for someone who picks up your locked iPhone to... Turn off WiFi, data, or airplane mode without your permission, which can help the device remain traceable for longer.

Prevent WiFi from cutting out when closing the lid in Linux (Manjaro KDE)

In Linux environments, and specifically in distributions like Manjaro with KDE Plasma, there is another very common issue: although the KDE configuration specifies that when Closing the laptop lid does nothing.The WiFi connection will eventually be cut off if the lid remains closed for a sufficient amount of time.

The reason is that the behavior when closing the lid doesn't depend solely on the desktop environment. Several components are involved: systemd-logind, NetworkManager, and the WiFi card driverEach one can apply its own energy-saving logic, and if they are not aligned, the typical problem arises that the network disconnects even though the session is theoretically still active.

To correct this, several configuration levels need to be adjusted:

Tell systemd to ignore the lid closing

The first thing is to tell systemd-login that does nothing When the lid is detected closing, whether the laptop is on battery power, plugged in, or docked. This is done by editing the configuration file:

sudo nano /etc/systemd/logind.conf


HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

After saving the changes, you need to reboot the system so that logind reloads with the new configuration and stops sending the device into power states that impact WiFi when the lid is closed.

Disable WiFi power saving in NetworkManager

The next step is to deactivate the WiFi power saving mode within NetworkManagerThis is usually done by creating a specific configuration file, for example:

sudo nano /etc/NetworkManager/conf.d/wifi-powersave.conf


wifi.powersave = 2

In this context, the value "2" usually corresponds to disabling powersave. After saving, the service must be restarted.

sudo systemctl restart NetworkManager

With this, NetworkManager will stop trying to insert the wireless card into low power state when it detects inactivity, thus reducing the likelihood of the connection breaking with the lid closed.

Adjust the driver according to the WiFi chipset

The third pillar lies in the WiFi chip's own driver. Each chipset (Qualcomm, Intel, Realtek, Broadcom, etc.) brings its own. internal energy saving mechanisms, which sometimes do not respect what the desktop environment or NetworkManager says.

To find out what hardware and driver you are using, you can run a command like:

inxi -N

In the case of cards Qualcomm Atheros QCA9377 with the ath10k_pci driverIt has been observed that certain internal power-saving profiles in the firmware need to be disabled. This can be done using a modprobe configuration file, for example:

sudo nano /etc/modprobe.d/ath10k.conf

options ath10k_core enable_ini=0
options ath10k_core skip_otp=y
options ath10k_pci nohwcrypt=1

On other chipsets, you'll need to check which specific parameters the kernel module offers. To do this, use the following command:

modinfo nombre_del_driver

With that information you can identify the options that control the driver energy management and adjust them so that the card doesn't become too aggressive in saving battery.

Prevent the kernel from turning off WiFi due to inactivity

In addition to NetworkManager and the driver, the Linux kernel has its own system of runtime power managementThis feature allows PCIe devices to be suspended when low activity is detected. If the kernel decides to suspend the Wi-Fi card, the connection may be lost even if the rest of the configuration appears correct.

One way to avoid this is to create a specific udev rule so that, when the WiFi PCIe device is detected, its power mode is forced to "on". For example, for cards with driver ath10k_pci You can add a rule like this:

sudo nano /etc/udev/rules.d/80-wifi-pm.rules

ACTION=="add", SUBSYSTEM=="pci", DRIVERS=="ath10k_pci", ATTR{power/control}="on"

After saving, reload the rules and trigger the udev events to apply them:

sudo udevadm control --reload
sudo udevadm trigger

Finally, it is recommended reboot the system To ensure that the driver, NetworkManager, systemd-logind, and udev rules are loaded in the correct order. If everything is configured correctly, the Wi-Fi connection should then be established. remain active for hours even with the laptop lid closed.

This solution has been specifically tested with Qualcomm Atheros QCA9377 cards, but the general logic can be applied to other chipsets: identify the driver, review its options, and disable only the power-saving parts that are causing the premature shutdown.

Set up emergency contacts on the lock screen
Related article:
How to set up emergency contacts on the Android lock screen

With all these adjustments in mind, the key idea is that WiFi disconnection when locking the screen or closing the lid almost always stems from a combination of Poorly tuned energy saving, drivers with aggressive policies and security configurations.

By understanding how they interact on Windows, Android, iPhone, or Linux, and calmly adjusting each layer, it's perfectly possible to ensure your connection remains stable while you work, even if you lock the session, close the lid, or put your phone in your pocket. Share the information so that more users know about the topic.