Skip to content

Commit b49a804

Browse files
committed
Revert no_sleep.pp VIDEOIDLE registry key and associated tests
The existing powercfg -x -monitor-timeout-ac 0 already sets VIDEOIDLE to 0 for the active power scheme. The registry addition wrote to the global PowerSettings path which is not the authoritative location. The PowerMonitorOff theory was also not confirmed as the root cause.
1 parent 72fccbc commit b49a804

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

modules/win_os_settings/manifests/no_sleep.pp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,4 @@
1717
command => 'powercfg.exe -x -monitor-timeout-ac 0',
1818
provider => powershell,
1919
}
20-
21-
# Bug 2026458: Prevent GUID_SESSION_DISPLAY_STATUS from sending
22-
# PowerMonitorOff on headless Azure GPU VMs (25H2 A10-8Q vGPU).
23-
# The VIDEOIDLE subgroup controls display idle timeout behavior.
24-
$power_settings_key = "${power_key}\\PowerSettings"
25-
$display_subgroup = '7516b95f-f776-4464-8c53-06167f40cc99'
26-
$video_idle_setting = '3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e'
27-
$video_idle_key = "${power_settings_key}\\${display_subgroup}\\${video_idle_setting}"
28-
29-
# ACSettingIndex = 0 means "never turn off display" for the active
30-
# power scheme, applied via registry to persist across reboots.
31-
registry_value { "${video_idle_key}\\ACSettingIndex":
32-
ensure => present,
33-
type => 'dword',
34-
data => 0,
35-
}
3620
}

test/integration/win116424h2azure/serverspec/system_profiles_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,4 @@
155155
end
156156
end
157157

158-
# Bug 2026458: VIDEOIDLE ACSettingIndex prevents GUID_SESSION_DISPLAY_STATUS PowerMonitorOff
159-
video_idle_key = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\7516b95f-f776-4464-8c53-06167f40cc99\\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e'
160-
describe registry_value_command(video_idle_key, 'ACSettingIndex') do
161-
its(:exit_status) { should eq 0 }
162-
its(:stdout) { should match(/^0\s*$/) }
163-
end
164158
end

test/integration/win116425h2azure/serverspec/system_profiles_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,4 @@
155155
end
156156
end
157157

158-
# Bug 2026458: VIDEOIDLE ACSettingIndex prevents GUID_SESSION_DISPLAY_STATUS PowerMonitorOff
159-
video_idle_key = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\7516b95f-f776-4464-8c53-06167f40cc99\\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e'
160-
describe registry_value_command(video_idle_key, 'ACSettingIndex') do
161-
its(:exit_status) { should eq 0 }
162-
its(:stdout) { should match(/^0\s*$/) }
163-
end
164158
end

0 commit comments

Comments
 (0)