|
本帖最后由 fulibo 于 2024-12-3 20:14 编辑
又重新修改了一下!提高反应速度!
@echo off
rem scheme_min=高性能
rem scheme_max=节能模式
rem SCHEME_BALANCED=平衡模式
rem -setacvalueindex=插电模式
rem -setdcvalueindex=电池模式
rem 无线节能模式(0=最高性能,1=低节能,2=中等节能,3=最高节能)
Powercfg -setacvalueindex scheme_min 12bbebe6-58d6-4636-95bb-3217ef867c1a 0
Powercfg -setdcvalueindex scheme_min 12bbebe6-58d6-4636-95bb-3217ef867c1a 0
powercfg -setacvalueindex scheme_max 12bbebe6-58d6-4636-95bb-3217ef867c1a 1
Powercfg -setdcvalueindex scheme_max 12bbebe6-58d6-4636-95bb-3217ef867c1a 2
powercfg -setacvalueindex SCHEME_BALANCED 12bbebe6-58d6-4636-95bb-3217ef867c1a 0
Powercfg -setdcvalueindex SCHEME_BALANCED 12bbebe6-58d6-4636-95bb-3217ef867c1a 1
rem 播放视频时(0=优化视频质量,1=平衡,2=优化节能)
Powercfg -setacvalueindex scheme_min 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 0
Powercfg -setdcvalueindex scheme_min 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
powercfg -setacvalueindex scheme_max 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
Powercfg -setdcvalueindex scheme_max 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 2
powercfg -setacvalueindex SCHEME_BALANCED 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 1
Powercfg -setdcvalueindex SCHEME_BALANCED 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 2
rem 处理器性能提升策略,性能倾向从保守到激进的排序为:单一的、理想的、IdealAggressive、Rocket
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFINCPOL 2
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFINCPOL 2
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFINCPOL 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFINCPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL 0
rem 针对第 1 类处理器电源效率的处理器性能提升策略,性能倾向从保守到激进的排序为:单一的、理想的、IdealAggressive、Rocket
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFINCPOL1 2
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFINCPOL1 2
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFINCPOL1 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFINCPOL1 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL1 0
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFINCPOL1 0
rem 处理器性能降低策略,降频积极性从高到底排序为:Rocket、理想的、单一
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 1
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 1
rem 针对第 1 类处理器电源效率的处理器性能降低策略,降频积极性从高到底排序为:Rocket、理想的、单一
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFDECPOL 1
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFDECPOL 2
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 1
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFDECPOL 1
rem 处理器性能内核休止实用工具分配(禁用)
Powercfg -setacvalueindex scheme_min sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex scheme_min sub_processor DISTRIBUTEUTIL 0
powercfg -setacvalueindex scheme_max sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex scheme_max sub_processor DISTRIBUTEUTIL 0
powercfg -setacvalueindex SCHEME_BALANCED sub_processor DISTRIBUTEUTIL 0
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor DISTRIBUTEUTIL 0
rem 开启处理器性能提升模式
rem 性能倾向从保守到激进的排序为:高效率、高效积极且有保障、高性能高效率、积极且有保障、高性能
rem 0=已禁用 - 不选择高于最大频率的目标频率。 1=已启用 - 选择高于最大频率的目标频率。2=高性能 - 总是选择超过标称频率的最高目标频率。
rem 3=高效率 - 选择高于最大频率的目标频率(如果硬件能够如此有效地支持).4= 高性能高效率 - 总是选择超过标称频率的最高目标频率(如果硬件能够提供有效的支持)。
rem 5=积极且有保障 - 总是选择超过保证频率的最高目标频率.6=高效、积极且有保障 - 总是选择超过保证频率的最高目标频率(如果硬件能够提供有效的支持)。
Powercfg -setacvalueindex scheme_min sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex scheme_min sub_processor PERFBOOSTMODE 2
powercfg -setacvalueindex scheme_max sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex scheme_max sub_processor PERFBOOSTMODE 2
powercfg -setacvalueindex SCHEME_BALANCED sub_processor PERFBOOSTMODE 2
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor PERFBOOSTMODE 2
rem 生效的异类策略:
rem 异类策略0="处理器性能放置最小核心数量"负责所有睡眠;睡眠顺序为优先睡眠超线程-小核-大核
rem 异类策略1="处理器性能放置最小核心数量"负责小核睡眠;"针对第1类处理器电源效率的处理器性能核心放置最小核心数量"负责大核+超线程睡眠
rem 异类策略2=大核休眠;异类策略;3=小核休眠;异类策略;4=基于利用率进行随机休眠(Win10默认)
Powercfg -setacvalueindex scheme_min sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex scheme_min sub_processor HETEROPOLICY 0
powercfg -setacvalueindex scheme_max sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex scheme_max sub_processor HETEROPOLICY 0
powercfg -setacvalueindex SCHEME_BALANCED sub_processor HETEROPOLICY 0
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor HETEROPOLICY 0
rem 异类线程调度策略;(默认=自动)0=所有处理器 - 调度至任何可用处理器;1=高性能处理器(只用大核);2=首选高性能处理器(大核忙的时候用小核)。
rem 3=高效处理器(只用小核);4=首选高效处理器(小核忙的时候用大核);5=自动 - 让系统选择合适的策略.
Powercfg -setacvalueindex scheme_min sub_processor SCHEDPOLICY 2
Powercfg -setdcvalueindex scheme_min sub_processor SCHEDPOLICY 2
powercfg -setacvalueindex scheme_max sub_processor SCHEDPOLICY 2
Powercfg -setdcvalueindex scheme_max sub_processor SCHEDPOLICY 2
powercfg -setacvalueindex SCHEME_BALANCED sub_processor SCHEDPOLICY 2
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor SCHEDPOLICY 2
rem 异类短运行线程调度策略:程序刚开启时的大小核调度策略(默认=自动)(0=所有处理器;1=高性能处理器;2首选高性能;3=高效处理器;4首选高效;5=自动)
Powercfg -setacvalueindex scheme_min sub_processor SHORTSCHEDPOLICY 2
Powercfg -setdcvalueindex scheme_min sub_processor SHORTSCHEDPOLICY 2
powercfg -setacvalueindex scheme_max sub_processor SHORTSCHEDPOLICY 2
Powercfg -setdcvalueindex scheme_max sub_processor SHORTSCHEDPOLICY 2
powercfg -setacvalueindex SCHEME_BALANCED sub_processor SHORTSCHEDPOLICY 2
Powercfg -setdcvalueindex SCHEME_BALANCED sub_processor SHORTSCHEDPOLICY 2
rem 处理器性能增强策略, 指定处理器有可能将频率提高到超过当前操作条件允许的最大值的程度。
rem 节能=0,平衡=60,高性能=100
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PERFBOOSTPOL 100
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PERFBOOSTPOL 100
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PERFBOOSTPOL 0
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PERFBOOSTPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFBOOSTPOL 60
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PERFBOOSTPOL 45
echo 最大处理器状态
echo.
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX 100
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX 100
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX 75
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX 75
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX 100
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX 100
echo 第 1 类处理器电源效率的最大处理器状态,节能=75
echo.
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX1 100
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR PROCTHROTTLEMAX1 100
powercfg -setacvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX1 75
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR PROCTHROTTLEMAX1 75
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX1 100
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR PROCTHROTTLEMAX1 100
echo 系统散热方式(0=被动散热;1=主动散热);就是否开启散热风扇!
echo.
Powercfg -setacvalueindex scheme_min SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex scheme_min SUB_PROCESSOR SYSCOOLPOL 1
powercfg -setacvalueindex scheme_max SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex scheme_max SUB_PROCESSOR SYSCOOLPOL 0
powercfg -setacvalueindex SCHEME_BALANCED SUB_PROCESSOR SYSCOOLPOL 1
Powercfg -setdcvalueindex SCHEME_BALANCED SUB_PROCESSOR SYSCOOLPOL 0
rem 电源计划立即生效
powercfg -setactive scheme_current
|
评分
-
查看全部评分
|