-
Notifications
You must be signed in to change notification settings - Fork 0
/
PowerCFTweaks.txt
253 lines (209 loc) · 13.6 KB
/
PowerCFTweaks.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
powercfg -attributes sub_processor PERFINCTHRESHOLD -ATTRIB_HIDE
powercfg -attributes sub_processor PERFDECTHRESHOLD -ATTRIB_HIDE
powercfg -attributes sub_processor PERFINCTIME -ATTRIB_HIDE
powercfg -attributes sub_processor PERFINCPOL -ATTRIB_HIDE
powercfg -attributes sub_processor PERFBOOSTMODE -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR CPMINCORES -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR CPMAXCORES -ATTRIB_HIDE
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Powercfg -setacvalueindex scheme_current sub_processor PERFINCTHRESHOLD 10
Powercfg -setdcvalueindex scheme_current sub_processor PERFINCTHRESHOLD 10
Powercfg -setacvalueindex scheme_current sub_processor PERFDECTHRESHOLD 8
Powercfg -setdcvalueindex scheme_current sub_processor PERFDECTHRESHOLD 8
Powercfg -setacvalueindex scheme_current sub_processor PERFINCTIME 1
Powercfg -setdcvalueindex scheme_current sub_processor PERFINCTIME 1
Powercfg -setacvalueindex scheme_current sub_processor PERFINCPOL 2
Powercfg -setdcvalueindex scheme_current sub_processor PERFINCPOL 2
Powercfg -setacvalueindex scheme_current sub_processor PERFDECPOL 1
Powercfg -setdcvalueindex scheme_current sub_processor PERFDECPOL 1
Powercfg -setacvalueindex scheme_current sub_processor PERFBOOSTMODE 4
Powercfg -setdcvalueindex scheme_current sub_processor PERFBOOSTMODE 4
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
Powercfg -setacvalueindex scheme_current sub_processor DISTRIBUTEUTIL 0
powercfg -h off
Powercfg -setactive scheme_current
HIGHPERFORMANCE
Powercfg -setacvalueindex scheme_current sub_processor DISTRIBUTEUTIL 0
COREPARKING ON
powercfg -attributes SUB_PROCESSOR CPMINCORES -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR CPMAXCORES -ATTRIB_HIDE
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES 0
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES 0
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 0
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 0
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 0
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 0
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 0
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 0
powercfg -setactive scheme_current
COREPARKING OFF
powercfg -attributes SUB_PROCESSOR CPMINCORES -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR CPMAXCORES -ATTRIB_HIDE
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 100
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 100
powercfg -setactive scheme_current
powercfg -attributes SUB_PROCESSOR CPMINCORES -ATTRIB_HIDE
powercfg -attributes SUB_PROCESSOR CPMAXCORES -ATTRIB_HIDE
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES 50
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES 50
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 50
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 50
powercfg -setDCvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
powercfg -setACvalueindex scheme_current SUB_PROCESSOR CPMAXCORES1 100
powercfg -setactive scheme_current
Powercfg -setacvalueindex scheme_current sub_processor PERFINCPOL 2
Powercfg -setacvalueindex scheme_current sub_processor PERFDECPOL 1
Powercfg -setacvalueindex scheme_current sub_processor PERFINCTHRESHOLD 10
Powercfg -setacvalueindex scheme_current sub_processor PERFDECTHRESHOLD 8
Powercfg -setacvalueindex scheme_current sub_processor PERFBOOSTMODE 4
Powercfg -setactive scheme_current
NETWORK TUNING
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 0x0000001E /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 0x0000FFFE /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v StrictTimeWaitSeqCheck /t REG_DWORD /d 0x00000001 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v DisableTaskOffload /t REG_DWORD /d 0x1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v EnableTCPChimney /t REG_DWORD /d 0x0 /f
DISABLE PREFETCH REG
sc config superfetch start=disabled
sc config sysmain start=disabled
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f
PREFER IPV4
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 32
DISABLE DEFENDER
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /t REG_DWORD /v DisableAntiSpyware /f /d 1
ALTOGETHER
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 0x0000001E /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 0x0000FFFE /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v StrictTimeWaitSeqCheck /t REG_DWORD /d 0x00000001 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v DisableTaskOffload /t REG_DWORD /d 0x1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v EnableTCPChimney /t REG_DWORD /d 0x0 /f
sc.exe config superfetch start=disabled
sc.exe config sysmain start=disabled
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /t REG_DWORD /v DisableAntiSpyware /f /d 1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 0x0000001E /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 0x0000FFFE /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v StrictTimeWaitSeqCheck /t REG_DWORD /d 0x00000001 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v DisableTaskOffload /t REG_DWORD /d 0x1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v EnableTCPChimney /t REG_DWORD /d 0x0 /f
ALL VALUES
PowerCfg: CPMINCORES, CPMINCORES1
PowerCfg: CPMAXCORES, CPMAXCORES1
PowerCfg: LATENCYHINTUNPARK, LATENCYHINTUNPARK1
PowerCfg: PROCTHROTTLEMAX, PROCTHROTTLEMAX1
PowerCfg: PROCTHROTTLEMIN, PROCTHROTTLEMIN1
PowerCfg: PERFINCTHRESHOLD, PERFINCTHRESHOLD1
PowerCfg: PERFINCTIME, PERFINCTIME1
PowerCfg: PERFDECTHRESHOLD, PERFDECTHRESHOLD1
PowerCfg: PERFDECTIME, PERFDECTIME1
PowerCfg: LATENCYHINTPERF, LATENCYHINTPERF1
PowerCfg: PERFAUTONOMOUS
PowerCfg: PERFEPP
@echo off
REM ### Windows 10 def power scheme is Balanced, reset and select it (updated to version W10 1803)
REM powercfg /restoredefaultschemes
REM powercfg /restoreindividualdefaultscheme scheme_balanced
powercfg /setactive scheme_balanced
REM ### Brightness screen ac=100 dc=80 (No alias?)
powercfg /setACvalueindex scheme_current SUB_VIDEO aded5e82-b909-4619-9949-f5d71dac0bcb 100
powercfg /setDCvalueindex scheme_current SUB_VIDEO aded5e82-b909-4619-9949-f5d71dac0bcb 80
powercfg /setactive scheme_current
REM ### Network conn in Standby mode 0=off 1=on 2=lidclosed
powercfg /setACvalueindex scheme_current SUB_NONE CONNECTIVITYINSTANDBY 1
powercfg /setDCvalueindex scheme_current SUB_NONE CONNECTIVITYINSTANDBY 1
REM ### Don't sleep CPU with open file connections. They will be disconnected!!!
powercfg /setACvalueindex scheme_current SUB_SLEEP REMOTEFILESLEEP 0
powercfg /setDCvalueindex scheme_current SUB_SLEEP REMOTEFILESLEEP 0
REM ### Don't allow standby mode on AC!!! Above setting is not applicable then!
powercfg /setACvalueindex scheme_current SUB_SLEEP ALLOWSTANDBY 0
powercfg /setDCvalueindex scheme_current SUB_SLEEP ALLOWSTANDBY 1
REM ### Sleep AC=never DC=30 minutes
powercfg /setACvalueindex scheme_current SUB_SLEEP STANDBYIDLE 0
powercfg /setDCvalueindex scheme_current SUB_SLEEP STANDBYIDLE 1800
REM ### No Hybrid Sleep on AC
powercfg /setACvalueindex scheme_current SUB_SLEEP HYBRIDSLEEP 0
powercfg /setDCvalueindex scheme_current SUB_SLEEP HYBRIDSLEEP 1
REM ### Make the CPU freq more responsive to load in current scheme
REM ### Ideal/Single/Rocket/IdealAggressive = 0/1/2/3
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFINCPOL 3
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFDECPOL 1
REM ### deal with pci irq steering only 5=on only CPU0 0=standard
powercfg /setACvalueindex scheme_current SUB_INTSTEER MODE 5
powercfg /setDCvalueindex scheme_current SUB_INTSTEER MODE 5
REM ### PCI Pwr save Off normal max
powercfg /setACvalueindex scheme_current SUB_PCIEXPRESS ASPM 0
powercfg /setDCvalueindex scheme_current SUB_PCIEXPRESS ASPM 1
REM ### CPU Perf Boost mode: 0..6 Disabled/Enabled/Aggressive/Efficient Enabled/Efficient Aggressive/Aggressive At Guaranteed/Efficient Aggressive At Guaranteed
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFBOOSTMODE 2
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR PERFBOOSTMODE 2
REM ### CPU Cores minimum 25% on AC 10% on battery
powercfg /setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES 25
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES 10
powercfg /setACvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 25
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR CPMINCORES1 10
REM ### Allow CPU to Throttle/PARK
powercfg /setACvalueindex scheme_current SUB_PROCESSOR IDLEDISABLE 0
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR IDLEDISABLE 0
REM ### Allow CPU throttle states AC 2=automatic Battery 1=On
powercfg /setACvalueindex scheme_current SUB_PROCESSOR THROTTLING 1
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR THROTTLING 1
REM ### When park CPU what is lowest state (0..2) No Pref/Deepest/Lightest
powercfg /setACvalueindex scheme_current SUB_PROCESSOR CPPERF 1
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR CPPERF 1
powercfg /setACvalueindex scheme_current SUB_PROCESSOR CPPERF1 1
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR CPPERF1 1
REM ### Minimum/Maximum CPU state when not parked
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PROCTHROTTLEMIN 5
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PROCTHROTTLEMIN1 5
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PROCTHROTTLEMAX 100
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PROCTHROTTLEMAX1 100
REM ### Proc Thread Scheduling policy (0..5) 5=Prefer efficient CPU 3=Prefer performant CPU
powercfg /setACvalueindex scheme_current SUB_PROCESSOR SCHEDPOLICY 3
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR SCHEDPOLICY 5
powercfg /setACvalueindex scheme_current SUB_PROCESSOR SHORTSCHEDPOLICY 3
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR SHORTSCHEDPOLICY 5
REM ### System Cooling policy 0=passive 1=active
powercfg /setACvalueindex scheme_current SUB_PROCESSOR SYSCOOLPOL 1
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR SYSCOOLPOL 0
REM ### GPU graphics card turn down on battery 0=none 1=Low Power
powercfg /setDCvalueindex scheme_current SUB_GRAPHICS GPUPREFERENCEPOLICY 1
REM ### Number of history time intervals for avarage
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFHISTORY 3
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR PERFHISTORY 3
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFHISTORY1 3
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR PERFHISTORY1 3
REM ### Pref for new threads 0=all cpu 1=fast cpu 2=pref fast cpu 3=effic cpu 4=pref effic cpu 5=auto
powercfg /setACvalueindex scheme_current SUB_PROCESSOR SCHEDPOLICY 2
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR SCHEDPOLICY 4
REM ### Time intervals for dec perf
powercfg /setACvalueindex scheme_current SUB_PROCESSOR PERFDECTIME 2
powercfg /setDCvalueindex scheme_current SUB_PROCESSOR PERFDECTIME 2
REM ### Screen minutes Dim ac=5 dc=2 Off ac=30 dc=15
powercfg /setACvalueindex scheme_current SUB_VIDEO VIDEODIM 300
powercfg /setDCvalueindex scheme_current SUB_VIDEO VIDEODIM 120
powercfg /setACvalueindex scheme_current SUB_VIDEO VIDEOIDLE 1800
powercfg /setDCvalueindex scheme_current SUB_VIDEO VIDEOIDLE 900
REM ### Auto Lock the screen after... disable
powercfg /setACvalueindex scheme_current SUB_VIDEO VIDEOCONLOCK 0
powercfg /setDCvalueindex scheme_current SUB_VIDEO VIDEOCONLOCK 0
REM ### reset perf slider for battery in systray (ver 1803) slider in the middle
powercfg /OverlaySetActive OVERLAY_SCHEME_NONE
REM ### Activate new settings!!!
powercfg /setactive scheme_current