Viewing and setting the display turn off time using powercfg

You can view the current setting for a Microsoft Windows system to turn off the attached screen by typing "power settings" in the Windows "Type here to search" field and selecting "Power & sleep settings".

Power and sleep settings

Settings on a desktop system running Windows 10

Alternatively, you can see the current screen timeout power off settings from a command-line interface (CLI) using the command powercfg /query SCHEME_CURRENT SUB_VIDEO VIDEOIDLE from a PowerShell or command prompt window.

C:\>powercfg /query SCHEME_CURRENT SUB_VIDEO VIDEOIDLE
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced)
  GUID Alias: SCHEME_BALANCED
  Subgroup GUID: 7516b95f-f776-4464-8c53-06167f40cc99  (Display)
    GUID Alias: SUB_VIDEO
    Power Setting GUID: 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e  (Turn off display after)
      GUID Alias: VIDEOIDLE
      Minimum Possible Setting: 0x00000000
      Maximum Possible Setting: 0xffffffff
      Possible Settings increment: 0x00000001
      Possible Settings units: Seconds
    Current AC Power Setting Index: 0x00000258
    Current DC Power Setting Index: 0x0000012c


C:\>

Query Parameters

Output Values

A value of zero for either of the above indexes indicates that Windows will keep the screen on permanently. You can set the values from a command prompt with a powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE x and powercfg /setdcvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE y where x and y are decimal values in seconds. E.g., to change the Plugged In timeout to 15 minutes (900 seconds), you could use the command powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 900 and powercfg /setdcvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 600 to change the On Battery value to 10 minutes (600 seconds). You then need to issue the command powercfg /setactive SCHEME_CURRENT to apply any changes you have made.

Related articles:

  1. Changing PC sleep setting under Windows 10
    Date: June 20, 2016