新增锁定风扇转速预设 - #92
Open
ShuiJu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能说明
本次改动新增了一个独立且互斥的预设工作模式:锁定风扇转速模式。
该模式允许用户指定:
启用后,程序会固定所有受控风扇的目标转速,并根据当前 CPU 温度动态调整 CPU 功耗墙。现有硬件接口会同时设置 PL1 和 PL2,因此 PL2 会始终跟随 PL1。
控制逻辑
进入模式时,以当前预设明确设置的 CPU 功耗作为 PL1/PL2 起点。
在正常温度范围内:
如果当前预设没有设置明确的 CPU 功耗数值,程序将提示用户先设置 CPU 功耗墙。
高温保护
继续沿用现有高温状态判断:
在锁定风扇转速模式中进入高温状态后:
预设与设置恢复
“锁定风扇转速模式”作为一个单独的预设加入预设菜单,与其他预设互斥,不会作为附加选项同时作用于其他预设。
进入模式前,程序会保存当前设置的完整快照,包括:
锁定模式运行期间,该快照不会被后续菜单操作覆盖。退出或因过热保护离开模式时,会恢复进入前保存的设置;过热情况下只有降温风扇和自动风扇作为临时安全覆盖,不会改写原预设的持久化内容。
交互方式
其他改动
验证