Turn off adaptive display timeout (on battery)
Désactiver le délai de l’affichage adaptatif (sur batterie)
Explanation
This policy setting allows you to manage how long a computer must be inactive before Windows turns off the computer’s display.
If you enable this policy setting, Windows automatically adjusts the setting based on what users do with their keyboard or mouse to keep the display on.
If you disable this policy setting, Windows uses the same setting regardless of users’ keyboard or mouse behavior.
If you do not configure this policy setting, users control this setting.
Ce paramètre de stratégie vous permet de gérer la durée d’inactivité d’un ordinateur avant que Windows ne désactive l’affichage de l’ordinateur.
Si vous activez ce paramètre de stratégie, Windows ajuste automatiquement le paramètre en fonction des actions qu’effectuent les utilisateurs avec le clavier ou la souris.
Si vous désactivez ce paramètre de stratégie, Windows utilise le même paramètre, quelle que soit l’utilisation du clavier ou de la souris.
Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs contrôlent ce paramètre.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\90959D22-D6A1-49B9-AF93-BCE885AD335B- Value name
DCSettingIndex
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: Power/VideoAdaptivePowerDownTimeOutDC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\90959D22-D6A1-49B9-AF93-BCE885AD335B'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 1 -Type DWordDisable
# Disable: Power/VideoAdaptivePowerDownTimeOutDC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\90959D22-D6A1-49B9-AF93-BCE885AD335B'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Power/VideoAdaptivePowerDownTimeOutDC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\90959D22-D6A1-49B9-AF93-BCE885AD335B'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinue