Resolving the "Sleep is enabled" warning in RealVNC Server

Follow

RealVNC Server will detect if Windows has any sleep settings enabled, and if so will display the following message in the Information Center.

 

Please note, RealVNC Server does not actively put the device to sleep.  This is a notification that the Windows settings are configured to allow the device to sleep.

If you are seeing this message and have set your device to not sleep in Windows' Power settings, please do the following.

Open a CMD window and run the following command.

powercfg /query SCHEME_CURRENT SUB_SLEEP

This command queries and displays ALL sleep-related power settings for your currently active power scheme, rather than just one specific setting.

You will see the results similar to this.

Powercfg.jpg

This indicates that the device is  using the Balanced Power plan and that there are Sleep settings that are active.

Note that the last two entries do not show 0x00000000 which is the Never or 0 value.

To change the settings to disable any Sleep commands, please run the following in a PowerShell window.

# Disable all timeouts for maximum "always on" configuration
powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0
powercfg /change monitor-timeout-ac 0
powercfg /change monitor-timeout-dc 0
powercfg /change disk-timeout-ac 0
powercfg /change disk-timeout-dc 0
powercfg /change hibernate-timeout-ac 0
powercfg /change hibernate-timeout-dc 0

After changing these settings confirm that RealVNC Server is not displaying the "Sleep is enabled" warning in the Information Center.

It may be necessary to restart the RealVNC Server service for the changes to reflect.

Note: Setting all these to 0 means:

  • System never sleeps
  • Display never turns off
  • Hard disks never spin down
  • System never hibernates

This maximizes performance but increases power consumption, especially on battery.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.