From 4606c60506dd5076c806d62432c5b6f7c0e63b10 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 5 Oct 2024 00:15:28 +0100 Subject: [PATCH] fix(power saving): remove disabledynamictick --- .../Scripts/ScriptWrappers/DefaultPowerSaving.ps1 | 3 --- .../Scripts/ScriptWrappers/DisablePowerSaving.ps1 | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1 b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1 index 45a5821255..e24f7a9007 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1 +++ b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DefaultPowerSaving.ps1 @@ -77,9 +77,6 @@ Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Para # Reset power throttling to default # Reference: https://blogs.windows.com/windows-insider/2017/04/18/introducing-power-throttling Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" -Name "PowerThrottlingOff" -ErrorAction SilentlyContinue -# Enable the kernel being tickless -# Reference: https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/bcdedit--set#additional-settings -bcdedit /deletevalue disabledynamictick *> $null # Finish Read-Pause "`nCompleted.`nPress Enter to exit" \ No newline at end of file diff --git a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 index 31df8fee48..28e1287ba2 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 +++ b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 @@ -127,10 +127,6 @@ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Paramet $powerKey = "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" if (!(Test-Path $powerKey)) { New-Item $powerKey | Out-Null } New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" -Name "PowerThrottlingOff" -Value 1 -PropertyType DWORD -Force | Out-Null -# Disable the kernel from being tickless -# It's power saving -# https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/bcdedit--set#additional-settings -bcdedit /set disabledynamictick yes | Out-Null if ($Silent) { exit } Read-Pause "`nCompleted.`nPress Enter to exit"