Skip to content

Commit

Permalink
fix(power saving): remove disabledynamictick
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 4, 2024
1 parent 7b9fb21 commit 4606c60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4606c60

Please sign in to comment.