|
82 | 82 | ], |
83 | 83 | "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/widgets" |
84 | 84 | }, |
85 | | - "WPFTweaksLaptopHibernation": { |
86 | | - "Content": "Set Hibernation as default (good for laptops)", |
87 | | - "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", |
88 | | - "category": "z__Advanced Tweaks - CAUTION", |
89 | | - "panel": "1", |
90 | | - "registry": [ |
91 | | - { |
92 | | - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0", |
93 | | - "OriginalValue": "1", |
94 | | - "Name": "Attributes", |
95 | | - "Value": "2", |
96 | | - "Type": "DWord" |
97 | | - }, |
98 | | - { |
99 | | - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\\94ac6d29-73ce-41a6-809f-6363ba21b47e", |
100 | | - "OriginalValue": "0", |
101 | | - "Name": "Attributes ", |
102 | | - "Value": "2", |
103 | | - "Type": "DWord" |
104 | | - } |
105 | | - ], |
106 | | - "InvokeScript": [ |
107 | | - " |
108 | | - Write-Host \"Turn on Hibernation\" |
109 | | - powercfg.exe /hibernate on |
110 | | - |
111 | | - # Set hibernation as the default action |
112 | | - powercfg.exe change standby-timeout-ac 60 |
113 | | - powercfg.exe change standby-timeout-dc 60 |
114 | | - powercfg.exe change monitor-timeout-ac 10 |
115 | | - powercfg.exe change monitor-timeout-dc 1 |
116 | | - " |
117 | | - ], |
118 | | - "UndoScript": [ |
119 | | - " |
120 | | - Write-Host \"Turn off Hibernation\" |
121 | | - powercfg.exe /hibernate off |
122 | | - |
123 | | - # Set standby to default values |
124 | | - powercfg.exe change standby-timeout-ac 15 |
125 | | - powercfg.exe change standby-timeout-dc 15 |
126 | | - powercfg.exe change monitor-timeout-ac 15 |
127 | | - powercfg.exe change monitor-timeout-dc 15 |
128 | | - " |
129 | | - ], |
130 | | - "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/laptophibernation" |
131 | | - }, |
132 | 85 | "WPFTweaksLocation": { |
133 | 86 | "Content": "Disable Location Tracking", |
134 | 87 | "Description": "Disables Location Tracking...DUH!", |
|
0 commit comments