Troubleshooting Rdp Sleep Mode In Windows 10

how to wake up windows 10 from sleep when rdp

If you're having trouble waking up your Windows 10 PC from sleep mode when using RDP (Remote Desktop Protocol), there are several methods you can try. One common solution is to enable Wake-on-LAN (WoL) in your BIOS settings and device manager, which allows the PC to be woken up via a local network connection. Additionally, you should ensure that power-saving options like Allow the computer to turn off this device to save power are disabled, as these can interfere with the wake-up process. You can also try changing the RDP port number to something other than the default to avoid being triggered by full port scans. If these suggestions don't work, you may need to explore alternative methods such as sending a WoL magic packet or adjusting your power settings to prevent your PC from entering a deep sleep state.

How to Wake Up Windows 10 from Sleep When RDP

Characteristics Values
Wake-On-Lan Enabled in BIOS and device manager settings
"Allow this device to wake up the PC from sleep" Checked in device manager
"Allow wake-up only by magic packet" Unchecked
"Allow the computer to turn off this device to save power" Unchecked in power management settings
Remote Desktop power management Set to never sleep
Power troubleshooter Run in Settings > Update and Security > Troubleshoot > Additional troubleshooters > Power
Wake-On-Lan app Installed on phone and connected to router
Port Redirected from xxxxx on the router to port 9 on the PC
VPN Connected
WoL request port Allowed over VPN connection

shunsleep

Ensure 'Allow this device to wake up the PC from sleep' is checked in device manager settings

To ensure that the "Allow this device to wake up the PC" checkbox is selected in the Device Manager settings, follow these steps:

  • Open the Start menu by pressing the Windows key or clicking on the Start button.
  • Search for "Device Manager" in the Start menu. You can also press Win + X to open the Power User menu and select Device Manager from the list.
  • In the Device Manager window, locate the device you want to configure. This could be under "`Network Adapters`" for Ethernet or Wi-Fi adapters, or you can find the specific device type, such as a keyboard or mouse, in the list of devices.
  • Right-click on the device and select "Properties."
  • In the Properties window, switch to the "Power Management" tab.
  • In the Power Management tab, check the "Allow this device to wake the computer" checkbox. Ensure that this option is selected.
  • Click "OK" or "Apply" to save the changes.

By following these steps, you can ensure that the selected device is allowed to wake up your Windows 10 PC from sleep mode. This can be useful if you want to remotely access your computer or have specific devices trigger a wake-up event.

Additionally, you can use the command prompt to identify which devices can wake up your PC. Open an elevated command prompt and type the command "powercfg -devicequery wake_from_any" to see a list of all devices that support waking up your computer from sleep mode.

shunsleep

Enable Wake-on-Lan in BIOS and device manager settings

To enable Wake-on-Lan (WoL) in BIOS and device manager settings, follow these steps:

First, ensure that your system supports WoL at the firmware level. Check if your motherboard's BIOS or UEFI (Unified Extensible Firmware Interface) has the WoL option. If it's unavailable, you won't be able to use the feature.

To access BIOS, power on your computer and immediately press and hold the "DELETE" key until the BIOS setup screen appears. Then, use your mouse to select "Advanced." The WoL feature may be found under “Power” or “Wake Up Event Setup." Enable the feature, and then restart your computer.

Next, enable WoL in the Windows 10 network adapter. Right-click the Start button and select "Device Manager." Click on "Network adapters" and select your Ethernet controller or wireless network card. Double-click on the "Advanced" tab, and then click on "Wake on Magic Packet." Use the “Value” drop-down menu and select "Enabled."

Additionally, you may need to disable Fast Startup or Hybrid Startup in Windows 10. This is because WoL is only supported when the computer is in sleep mode (S3) or hibernate mode (S4).

With these steps, you should be able to enable Wake-on-Lan in your BIOS and device manager settings.

shunsleep

Uncheck 'Allow wake-up only by magic packet' in device manager settings

To wake up a Windows 10 PC from sleep when using RDP (Remote Desktop Protocol), you can try unchecking the "Allow wake-up only by magic packet" option in your device manager settings. Here's a step-by-step guide on how to do this:

  • Open the Device Manager: Go to your Start menu, search for "Device Manager", and open it.
  • Navigate to your network adapter: In the Device Manager, expand the "Network adapters" section. Right-click on your specific network adapter (e.g., "Intel(R) Ethernet Connection") and select "Properties".
  • Configure power management settings: In the Properties window, navigate to the Power Management tab. Here, you will find various power management options for your network adapter.
  • Uncheck "Allow wake-up only by magic packet": In the Power Management tab, you will see several checkboxes for different power management settings. Find the option "Allow wake-up only by magic packet" and make sure it is unchecked. This setting allows your computer to be awakened by a specific type of network packet known as a "magic packet".
  • Adjust other power settings: Depending on your preferences, you can also adjust other power management settings in the same window. For example, you can check the box for "Allow this device to wake up the computer" if you want your computer to be able to wake from sleep when it receives incoming network requests.
  • Save your changes: After making your desired changes to the power management settings, click "OK" or "Apply" to save your changes.

By unchecking the "Allow wake-up only by magic packet" option, you are ensuring that your computer can be woken up by RDP access or other incoming network requests, and not just by the specific magic packet data packets. This provides flexibility in how you can wake your computer remotely. However, as one user noted, this may come with the trade-off that the PC no longer goes to sleep by itself. You may need to experiment with different combinations of power management settings to find the optimal configuration for your specific use case.

shunsleep

Change RDP from default to a port between 30000 and 65535

Changing the default RDP port to a custom number can enhance the security of your remote desktop access. It is recommended to change the RDP port to a number between 30000 and 65535. Here is a step-by-step guide on how to do this:

  • Choose a new port number between 30000 and 65535. For example, you could choose the number 45000. Avoid ports that resemble the default port number of 3389, such as 33389, as these are commonly targeted by hackers.
  • Access the Windows Registry by opening the Start menu, searching for "regedit", right-clicking on the Registry Editor application, and selecting "Run as administrator".
  • Navigate to the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.
  • Right-click on "RDP-Tcp", select "Modify", and choose "Decimal".
  • Enter your chosen port number in the "Value data" field and click "OK".
  • Save your changes by clicking "OK" again.
  • Restart the RDP Services to apply the changes without rebooting your system. Open the Command Prompt as an administrator and type the following command: "net stop termservice && net start termservice". This will restart the Terminal Services, which include RDP.
  • Alternatively, you can simply restart your computer to fully apply the changes.
  • Create specific Windows firewall rules for your new RDP port number. Open the Control Panel, go to System and Security, click on Windows Defender Firewall, select Advanced Settings, choose Inbound Rules, and then select New Rule. Ensure that "Port" is selected for Rule Type and that the TCP button is selected. Enter your new port number in the "Specific local ports" input field.

By following these steps, you will have successfully changed your RDP port to a custom number within the specified range, enhancing the security of your remote desktop connections.

shunsleep

Disable 'Allow the computer to turn off this device to save power' in power options

To disable the "Allow the computer to turn off this device to save power" setting in Windows 10, follow these steps:

  • Open the Device Manager: You can do this by pressing the Windows key + X and selecting "Device Manager" from the menu, or by searching for it in the Start menu.
  • Expand the Network Adapters section: Click on the arrow next to "Network Adapters" to view the list of adapters installed on your system.
  • Select your network adapter: Right-click on the adapter you want to configure and select "Properties".
  • Navigate to the Power Management tab: In the adapter properties window, click on the "Power Management" tab.
  • Clear the "Allow the computer to turn off this device to save power" checkbox: Unchecking this option will disable the setting and prevent Windows from turning off the device to save power.
  • Apply and save the changes: Click "OK" or "Apply" to save the changes and exit the window.

Disabling this setting can be useful if you want to prevent Windows from turning off specific devices or adapters to save power. This setting is especially relevant for Remote Desktop Protocol (RDP) access, where you may want to ensure that your computer remains accessible even during periods of inactivity.

It is worth noting that the Power Management tab may not be present for all network adapters or in all versions of Windows. In such cases, you may need to explore alternative methods, such as reinstalling the adapter, checking advanced settings, or making changes in the Windows Registry.

Additionally, when disabling power-saving settings, consider the impact on battery life, especially for laptops or mobile devices. While disabling power-saving options can provide the desired functionality, it may also result in increased power consumption and reduced battery performance.

Frequently asked questions

You can wake up your Windows 10 PC from sleep mode by using the Wake on LAN (WoL) feature. This can be enabled in the BIOS and in the settings of the WiFi card in the device manager, where you should check the option "Allow this device to wake up the PC from sleep".

You can try unchecking the "Allow wake-up only by magic packet" option, which is usually enabled by default.

You can use a Wake-on-Lan app on your phone, and on your router, redirect a port to port 9 on the PC. Then, you can wake up your PC using the public IP address of the router, the port number, and the MAC address of the PC.

Written by
Reviewed by
Share this post
Print
Did this article help you?

Leave a comment