You leave your computer for 10 minutes and come back, and the internet is gone. Or your smartphone, left overnight, hasn't synced your email in the morning because Wi-Fi turned off in sleep mode. Sound familiar? This problem occurs on Windows, Android, MacOS and even some routers. The causes vary, from energy conservation to driver errors. But there's always a solution.
In this article - step-by-step instructions for all devices, including hidden settings that manufacturers don't advertise. We'll cover not only standard methods but also little-known tricks (for example, how to bypass restrictions on some laptops). Lenovo or HP). And also a compatibility table of solutions with different OS versions and router models. Let's start with the most common case: Windows 10/11.
1. Windows settings: Disable power saving for the Wi-Fi adapter
In 90% of cases the problem lies in network adapter power management policy. By default Windows Allows you to turn off the device to save energy - even if you are connected to a 220V network. This can be corrected through device Manager or Control Panel.
First, check your current settings:
- Click
Win + X→ selectdevice Manager. - Expand the branch
Network adapters. - Find your Wi-Fi adapter (usually contains the words Wireless, Wi-Fi or a brand name, for example Intel AX200, Qualcomm Atheros).
- Right click →
Properties→ tabPower management.
If there is a tick Allow the computer to turn off this device to save power If it's worth it, remove it and save the changes. But that's not all. On some laptops (especially Dell And ASUS) There is additional energy saving options, which override these settings. They must be disabled separately.
Uncheck "Allow the device to be disabled" in Device Manager|
Set the power plan to maximum performance|
Disable the "Temporarily suspend the network adapter" option in advanced settings|
Update your Wi-Fi adapter driver to the latest version-->
⚠️ Attention: On laptops with Windows 11 and hybrid sleep mode (Modern Standby) Standard methods may not work. In this case, you will need to edit the registry or revert to the classic sleep mode. Details are in the section about Modern Standby.
2. Editing the registry for Modern Standby (Windows 10/11)
Modern Standby (formerly known as Connected Standby) is a power-saving mode used on most modern laptops. In this mode, the device remains connected to the network, but can disconnect Wi-Fi connection to save battery. This can only be fixed through the registry.
Open Registry Editor (Win + R → enter regedit → Enter) and follow the path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\f15576e8-98b7-4186-b944-eafa664402d9\0f2a1ae8-7be6-466e-8077-9e922d8a6090
Change the parameter value Attributes With 1 on 2This will unlock the hidden power settings. Then:
- Open
Control Panel → Power Options → Change plan settings → Change advanced power settings. - Find the section
Wireless Network Adapter Settings → Power Saving Mode. - Put it up
Maximum performancefor both states (battery and mains).
After rebooting, Wi-Fi shouldn't turn off in sleep mode. If the problem persists, check router settings (more on this in the next section).
3. Router settings: why it might be dropping the connection
Sometimes the problem is not in the device, but in router. Many routers (especially budget models) TP-Link, D-Link or Tenda) have a function Wi-Fi Multicast Filtering or AP Isolation, which can break connections with "sleeping" devices. The culprit could also be DHCP Lease Time - if it is too short, the router "forgets" the device.
To check and fix:
- Go to the router's web interface (usually at
192.168.0.1or192.168.1.1). - Find the section
Wireless Settings(orWireless mode). - Disable options:
- 🔄
Wi-Fi Multicast Filtering - 🚫
AP Isolation - ⏳
Inactivity Timeout(if any)
- 🔄
DHCP install Lease Time no less 24 hours (or 0 for infinite time).| Router brand | Problematic option | Recommended value |
|---|---|---|
| TP-Link Archer C6 | Wi-Fi Multicast Filtering |
Disabled |
| ASUS RT-AX55 | Enable IGMP Snooping |
Off |
| Keenetic | Isolation of clients |
Disable |
| Zyxel Keenetic | Time limit |
Disable |
⚠️ Attention: On routers with firmware OpenWRT or DD-WRT may need to be disabled 802.11r Fast Transition (if enabled). This feature speeds up reconnections between access points, but sometimes conflicts with the sleep mode of devices.
TP-Link|
ASUS|
Keenetic|
D-Link|
Other (write in the comments)-->
4. Android: How to prevent Wi-Fi from turning off in sleep mode
On smartphones and tablets Android the problem is usually related to battery optimizationThe system automatically disables Wi-Fi if the device is inactive for a long time. This can be corrected through settings or special apps.
First, try the standard method:
- Open
Settings → Wi-Fi. - Click on the three dots (⋮) →
Additional functions(orAdvanced settings). - Find the option
Wi-Fi support in sleep mode(on some devices -Hibernation policy). - Select
Always(orNever turn off).
If there is no such option (as on Samsung or Xiaomi), use permission to run in the background:
- Open
Settings → Applications. - Find the app
Wi-Fi(orSettings). - Select
Battery → Battery optimization. - Install
No restrictions. - 🔋
Adaptive batteryin the battery settings. - 🔄
Automatic switching to mobile datain the Wi-Fi settings. - ⏳
Deep sleep modein the sectionSpecial permits. - 🔌 Uncheck the box
Dim the display slightly when running on battery power(This sometimes affects network connections.) - 🔄 Turn it off
Enable power saving mode when inactive. - 📡 In the section
NetCheck that Wi-Fi is set to a higher priority than Ethernet (if connected).
For devices with MIUI (For example, Redmi Note 10 or POCO X3) additionally disable:
What should I do if my Wi-Fi settings are reset after an update?
On some devices (eg. Samsung Galaxy With One UIAfter updating the firmware, background Wi-Fi permissions are reset. To fix this, you need to:
1. Reset network settings (Settings → General → Reset → Reset network settings).
2. Reset app permissions Wi-Fi in the section Battery.
3. Restart the device.
If the problem persists, try rolling back to a previous firmware version or using the app Wi-Fi Keep Alive from Google Play.
5. macOS: Setting up energy saving for Wi-Fi
On MacBook And iMac The problem is less common, but it does happen. It is usually related to energy saving settings or a conflict with the VPN. To keep Wi-Fi connected:
Open System Preferences → Energy Saver And:
If you use VPN (For example, NordVPN or built-in IKEv2), try:
- Disable your VPN and check if the problem persists.
- Set it in the VPN settings
Maintain connection constantly(if there is such an option). - Update your VPN configuration or reinstall the app.
On MacBooks with M1/M2 chips, the issue may be related to the "Optimized Battery Charging" feature. Disable it in Battery settings if Wi-Fi drops when connected to a charger.
6. Advanced Methods: Command Line and Third-Party Utilities
If standard methods don't help, it's time advanced solutionsFor example, on Windows You can manually set the network adapter parameters via command line:
Open CMD as administrator and run:
powercfg /setacvalueindex SCHEME_CURRENT 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 12bbebe6-58d6-4636-95bb-3217ef867c1a 0
powercfg /setactive SCHEME_CURRENT
This command disables the inactivity timeout for the Wi-Fi adapter. For Android You can use applications like Wi-Fi Keep Alive or Tasker (by creating a task to ping the server every 5 minutes).
On routers with support Telnet/SSH (For example, ASUS Merlin or OpenWRT) you can manually increase the inactivity timeout:
nvram set wl0_assoc_retries=100nvram set wl1_assoc_retries=100
nvram commit
reboot
⚠️ Attention: Changing settings viaTelnet/SSHmay cause instability in the router. Before making any changes, please back up your configuration (nvram saveor via the web interface).
7. Common mistakes and how to avoid them
Many users admit typical mistakesthat prevent the problem from being solved:
- 🔧 Ignore driver updates. Outdated Wi-Fi adapter drivers (especially on Windows 7/8) often cause conflicts with sleep mode. Always check for relevance through
device Manageror the manufacturer's website. - ⚡ They don't take into account the dietLaptops may use different power-saving settings when running on battery than when running on AC power. Check both modes.
- 📡 They blame the router without checking other devicesIf Wi-Fi turns off on only one device (for example, on MacBook, but not on iPhone), the problem is definitely not in the router.
- 🔄 Do not reboot devices after changesSome settings (especially those related to the registry or router) require a full reboot, not just a sleep.
Another common mistake is using "universal advice" without taking into account a specific model. For example, setting Modern Standby meaningless for Windows 7, and the shutdown AP Isolation It won't help if the problem is in the adapter driver.
FAQ: Answers to Frequently Asked Questions
Why does Wi-Fi only turn off at night?
Most likely, the router or device is configured energy saving schedule. Check:
- On the router: section
Parental ControlorSchedule(Wi-Fi may be turned off by a timer). - On Windows:
Task Scheduler→ Find tasks with keywordssleep,powerorwi-fi. - On Android: some firmware (for example, ColorOS on Oppo/Realme) have a "night power saving mode".
Is it possible to disable sleep mode completely?
Yes, but this not recommended For laptops on battery power, this will drain the battery faster. To disable:
- On Windows:
Control Panel → Power Options → Change sleep mode settings→ installNever. - On MacOS:
System Preferences → Energy Saver→ move the sliderComputer inactivityonNever. - On Android: use apps like Keep Alive or Caffeine to simulate activity.
For routers, disabling sleep mode is pointless—they don't have such a concept. But you can increase it. DHCP Lease Time to the maximum.
Will resetting the router to factory settings help?
Possibly, but only if the problem is caused by incorrect settings (for example, someone changed the parameters earlier Wi-Fi Multicast or DHCP). Resetting will remove:
- All user Wi-Fi settings (network name, password, guest access).
- Rules
Port ForwardingAndParental Control. - Firmware updates (the router will roll back to the factory version).
Before reset:
- Save the current configuration (usually via
Administration → Backup/Restore). - Write down your internet connection settings (logins/passwords from your provider).
- Check if there is new firmware on the manufacturer's website (after the reset, you will have to reinstall it).
How can I check if it's the device or the router that's breaking the connection?
Simple test:
- Connect another device (for example, a smartphone) to the same Wi-Fi.
- Put the first device into sleep mode.
- Check if the Internet remains on the second device.
Results:
- If there is internet on the second device → the problem is first device (drivers, energy saving settings).
- If the internet disappears on both → the problem is router (settings
DHCP,Multicastor hardware failure).
For more accurate diagnosis, use ping:
ping 8.8.8.8 -t
Run the command before entering sleep mode. If the ping continues after waking up, the connection was not lost. If it is interrupted, the problem is confirmed.
Is there a universal solution for all devices?
No, because the reasons are different:
- On Windows guilty adapter driver or
Modern Standby. - On Android — battery optimization.
- On the router - DHCP or Multicast settings.
The only universal rule: Check the power saving settings on all devices in the chain (computer/smartphone → router → provider). For example, some Internet providers (e.g., Rostelecom or Beeline) terminate the connection if the device does not respond to ARP requests for more than 30 minutes. In this case, only ping on a permanent basis (for example, through Tasker on Android).