mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-12-17 17:55:28 +00:00
Update-WPFTweaksLaptopHibernation (#3786)
* Update WPFTweaksLaptopHibernation's InvokeScript * Update WPFTweaksLaptopHibernation's Script
This commit is contained in:
parent
aba3d786bc
commit
5a6b1ef086
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user