Open
Conversation
逻辑层 (SensorMap.cs): 在构建硬件映射 (Rebuild) 的最后阶段,增加了“强制覆盖”逻辑。 如果发现某个监控项配置了 OverrideSensorId,程序会遍历所有硬件传感器,找到 ID 匹配的那一个,并强制将其绑定到该 Key(例如 GPU.Power)上,无视原本的自动匹配规则。
数据层 (Settings.cs): 在 MonitorItemConfig 中增加了 OverrideSensorId 属性用于存储用户强制指定的 ID。
UI 层 (MonitorControls.cs): 在“设置 -> 监控项显示”列表中,为每个监控项增加了一个齿轮图标 ⚙(位于显示复选框左侧)。 点击齿轮图标会弹出一个对话框,允许输入具体的传感器 ID(支持 /gpu-nvidia/0/power/0 这种格式)。 输入框提供了“清空”按钮以便恢复默认自动匹配。
Custom Sensor ID
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.
Uh oh!
There was an error while loading. Please reload this page.