mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 22:58:32 +00:00
* Update generated documentation * trigger workflow --------- Co-authored-by: ChrisTitusTech <7896101+ChrisTitusTech@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com>
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
---
|
|
title: "Disable Hibernation"
|
|
description: ""
|
|
---
|
|
|
|
```json {filename="config/tweaks.json",linenos=inline,linenostart=32}
|
|
"WPFTweaksHiber": {
|
|
"Content": "Disable Hibernation",
|
|
"Description": "Hibernation is really meant for laptops as it saves what's in memory before turning the pc off. It really should never be used",
|
|
"category": "Essential Tweaks",
|
|
"panel": "1",
|
|
"registry": [
|
|
{
|
|
"Path": "HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Power",
|
|
"Name": "HibernateEnabled",
|
|
"Value": "0",
|
|
"Type": "DWord",
|
|
"OriginalValue": "1"
|
|
},
|
|
{
|
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings",
|
|
"Name": "ShowHibernateOption",
|
|
"Value": "0",
|
|
"Type": "DWord",
|
|
"OriginalValue": "1"
|
|
}
|
|
],
|
|
"InvokeScript": [
|
|
"powercfg.exe /hibernate off"
|
|
],
|
|
"UndoScript": [
|
|
"powercfg.exe /hibernate on"
|
|
],
|
|
```
|
|
|
|
## 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).
|