From 20046d4b73069fd6743a5d313dbaad0a8193145b Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Wed, 11 Feb 2026 17:31:05 +0200 Subject: [PATCH] Delete-WPFTweaksLaptopHibernation (#4031) * Update tweaks.json * Delete docs/content/dev/tweaks/Essential-Tweaks/LaptopHibernation.md --------- Co-authored-by: Chris Titus --- config/tweaks.json | 47 --------------- .../Essential-Tweaks/LaptopHibernation.md | 57 ------------------- 2 files changed, 104 deletions(-) delete mode 100644 docs/content/dev/tweaks/Essential-Tweaks/LaptopHibernation.md diff --git a/config/tweaks.json b/config/tweaks.json index fb04d648..45331bd1 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -82,53 +82,6 @@ ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/widgets" }, - "WPFTweaksLaptopHibernation": { - "Content": "Set Hibernation as default (good for laptops)", - "Description": "Most modern laptops have connected standby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0", - "OriginalValue": "1", - "Name": "Attributes", - "Value": "2", - "Type": "DWord" - }, - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\\94ac6d29-73ce-41a6-809f-6363ba21b47e", - "OriginalValue": "0", - "Name": "Attributes ", - "Value": "2", - "Type": "DWord" - } - ], - "InvokeScript": [ - " - Write-Host \"Turn on Hibernation\" - powercfg.exe /hibernate on - - # Set hibernation as the default action - powercfg.exe change standby-timeout-ac 60 - powercfg.exe change standby-timeout-dc 60 - powercfg.exe change monitor-timeout-ac 10 - powercfg.exe change monitor-timeout-dc 1 - " - ], - "UndoScript": [ - " - Write-Host \"Turn off Hibernation\" - powercfg.exe /hibernate off - - # Set standby to default values - powercfg.exe change standby-timeout-ac 15 - powercfg.exe change standby-timeout-dc 15 - powercfg.exe change monitor-timeout-ac 15 - powercfg.exe change monitor-timeout-dc 15 - " - ], - "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/laptophibernation" - }, "WPFTweaksLocation": { "Content": "Disable Location Tracking", "Description": "Disables Location Tracking...DUH!", diff --git a/docs/content/dev/tweaks/Essential-Tweaks/LaptopHibernation.md b/docs/content/dev/tweaks/Essential-Tweaks/LaptopHibernation.md deleted file mode 100644 index 65ab6c6b..00000000 --- a/docs/content/dev/tweaks/Essential-Tweaks/LaptopHibernation.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: "Set Hibernation as default (good for laptops)" -description: "" ---- -```json -"WPFTweaksLaptopHibernation": { - "Content": "Set Hibernation as default (good for laptops)", - "Description": "Most modern laptops have connected standby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399", - "category": "z__Advanced Tweaks - CAUTION", - "panel": "1", - "Order": "a030_", - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0", - "OriginalValue": "1", - "Name": "Attributes", - "Value": "2", - "Type": "DWord" - }, - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\\94ac6d29-73ce-41a6-809f-6363ba21b47e", - "OriginalValue": "0", - "Name": "Attributes ", - "Value": "2", - "Type": "DWord" - } - ], - "InvokeScript": [ - " - Write-Host \"Turn on Hibernation\" - powercfg.exe /hibernate on - - # Set hibernation as the default action - powercfg.exe change standby-timeout-ac 60 - powercfg.exe change standby-timeout-dc 60 - powercfg.exe change monitor-timeout-ac 10 - powercfg.exe change monitor-timeout-dc 1 - " - ], - "UndoScript": [ - " - Write-Host \"Turn off Hibernation\" - powercfg.exe /hibernate off - - # Set standby to default values - powercfg.exe change standby-timeout-ac 15 - powercfg.exe change standby-timeout-dc 15 - powercfg.exe change monitor-timeout-ac 15 - powercfg.exe change monitor-timeout-dc 15 - " - ], -``` - -## Registry Changes -Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. - -You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).