Understanding the Power Management Conflict
Windows 11 is designed aggressively to conserve battery life and reduce heat output by putting unused hardware components into a low-power state. When you lock your screen, the system often interprets this as a signal to begin powering down non-essential services. Your VPN client relies on a continuous, stable data stream between your machine and the remote server. If the underlying network interface card (NIC) enters a suspended state, the TCP/IP handshake fails, and the VPN software registers a disconnect.
This behavior is not necessarily a bug in your VPN application but rather a feature of the Windows power profile interacting with hardware drivers. The solution involves overriding these default power-saving settings specifically for the network adapter used by your VPN connection. This ensures that the hardware remains fully operational regardless of screen activity or user presence.
Locating Your Network Adapter
The first step is to identify which network interface is handling your internet traffic. You might be using a Wi-Fi card or an Ethernet controller depending on your setup. To find it, press the Windows key + X and select Device Manager from the quick access menu. Alternatively, you can search for "Device Manager" in the Start menu.
In the Device Manager window, look for the section labeled Network adapters. Click the arrow next to it to expand the list. You will see several entries here. Identify the one corresponding to your current connection. For Wi-Fi, look for names containing "Wireless," "Wi-Fi," "Intel Wireless," or "Realtek RTL8822CE." For wired connections, look for "Ethernet," "GbE," or similar terms. Right-click on the correct adapter and choose Properties.
Disabling Sleep Mode for the Adapter
Once you have opened the Properties window for your specific network adapter, navigate to the Power Management tab. This tab controls how the operating system handles energy states for this specific piece of hardware. You will likely see a checkbox that says Allow the computer to turn off this device to save power.
Uncheck this box. This action tells Windows that this specific network interface is critical and should never be powered down, even if the system is idle or the screen is locked. After unchecking the option, click OK to save the changes. You may need to restart your computer for the changes to take full effect, although many modern systems apply them immediately.
If you do not see a Power Management tab, the driver may not expose this setting directly. In that case, proceed to the Advanced tab within the same Properties window. Look for a property named Power Saving Mode, Green Ethernet, or Energy Efficient Ethernet. Set this value to Disabled or Maximum Performance. These driver-specific settings achieve the same goal of preventing the hardware from entering a low-power state.
Adjusting System-Wide Power Settings
While fixing the adapter is usually sufficient, global power settings can sometimes override local configurations. Go to Settings > System > Power & battery (or Power & sleep on desktops). Ensure that your screen timeout is set to a reasonable duration, but more importantly, check the Sleep settings. If your PC is set to sleep after 5 minutes, the entire system suspends, which will definitely kill your VPN connection.
You can set the PC to never sleep when plugged in, or extend the time significantly. However, simply locking the screen does not put the PC to sleep; it only turns off the display. Therefore, ensuring the screen turns off while the PC remains awake is the ideal configuration for maintaining a VPN session. If you are on a laptop, also check the Battery settings to ensure that aggressive battery-saving modes are not enabled for background apps or network connections.
Verifying the Fix
To confirm that the issue is resolved, reconnect your VPN client. Lock your screen by pressing Windows key + L. Wait for the maximum amount of time allowed before your PC would normally enter sleep mode, or wait at least ten minutes. While the screen is black, try to ping a public DNS server like 8.8.8.8 by unlocking the screen and opening Command Prompt. If you receive replies, your network connection remained active, and your VPN should now stay connected through screen lock events.
If the issue persists, consider reviewing our guide on Resetting Network Configuration in Windows 11 using VPN Software: A Troubleshooting Guide to rule out deeper protocol errors. Sometimes, corrupted network stacks can mimic power management issues.
Frequently Asked Questions
Does disabling power saving affect my battery life?
Yes, keeping your network adapter always active will slightly increase power consumption, particularly on laptops. However, if you are running a VPN, you are likely already consuming significant resources for encryption and decryption. The trade-off is necessary to maintain connectivity, and the impact is usually minimal compared to the cost of re-establishing a secure tunnel.
Why does my VPN work on Wi-Fi but not Ethernet?
Different network adapters have different drivers and power management capabilities. The Wi-Fi adapter might have its own separate power settings in Device Manager that still allow sleep mode. You must repeat the process of disabling power saving for each adapter type you use, whether it is wireless or wired.
Can I fix this without touching Device Manager?
Most VPN clients have their own "Keep Alive" or "Auto-Reconnect" features. Enabling these can help you recover quickly after a disconnect, but they cannot prevent the initial drop caused by hardware suspension. Disabling the power saving setting in Windows is the only way to prevent the network interface from physically going offline.
What if the Power Management tab is missing?
This often happens with generic Microsoft drivers or older hardware. Try updating your network driver from the manufacturer's website, such as Intel or Realtek. Newer drivers frequently expose more granular power control options in the Advanced tab, allowing you to disable Energy Efficient Ethernet or similar power-saving protocols.
Will this setting survive a Windows Update?
Generally, no. Major Windows updates or driver updates can reset custom hardware configurations to their defaults. It is good practice to verify these settings periodically, especially after a large feature update. If the problem returns, simply reapply the change to the Power Management tab.