Update-WPFTweaksLaptopHibernation (#3786)

* Update WPFTweaksLaptopHibernation's InvokeScript

* Update WPFTweaksLaptopHibernation's Script
This commit is contained in:
Gabi 2025-12-11 22:01:16 +02:00 committed by GitHub
parent aba3d786bc
commit 5a6b1ef086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,25 +85,25 @@
"InvokeScript": [ "InvokeScript": [
" "
Write-Host \"Turn on Hibernation\" Write-Host \"Turn on Hibernation\"
Start-Process -FilePath powercfg -ArgumentList \"/hibernate on\" -NoNewWindow -Wait powercfg.exe /hibernate on
# Set hibernation as the default action # Set hibernation as the default action
Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-ac 60\" -NoNewWindow -Wait powercfg.exe \"/change standby-timeout-ac 60\"
Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-dc 60\" -NoNewWindow -Wait powercfg.exe \"/change standby-timeout-dc 60\"
Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-ac 10\" -NoNewWindow -Wait powercfg.exe \"/change monitor-timeout-ac 10\"
Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-dc 1\" -NoNewWindow -Wait powercfg.exe \"/change monitor-timeout-dc 1\"
" "
], ],
"UndoScript": [ "UndoScript": [
" "
Write-Host \"Turn off Hibernation\" Write-Host \"Turn off Hibernation\"
Start-Process -FilePath powercfg -ArgumentList \"/hibernate off\" -NoNewWindow -Wait powercfg.exe /hibernate off
# Set standby to default values # Set standby to default values
Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-ac 15\" -NoNewWindow -Wait powercfg.exe \"/change standby-timeout-ac 15\"
Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-dc 15\" -NoNewWindow -Wait powercfg.exe \"/change standby-timeout-dc 15\"
Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-ac 15\" -NoNewWindow -Wait powercfg.exe \"/change monitor-timeout-ac 15\"
Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-dc 15\" -NoNewWindow -Wait powercfg.exe \"/change monitor-timeout-dc 15\"
" "
], ],
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/laptophibernation" "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/laptophibernation"