同步移动端工程、设备控制改进与发布资料

This commit is contained in:
2026-09-26 19:21:12 +08:00
parent 912ba432cf
commit 98eadc5c8b
137 changed files with 9274 additions and 85 deletions
@@ -224,6 +224,11 @@ class PerformanceModeManager:
except OSError as exc:
self._last_error = f"could not read current governors: {exc}"
effective_requested = self._requested if requested is None else requested
error = self._last_error
if not self._policy_paths() and error is None:
error = "当前内核未提供 CPU 调频策略;请检查候选内核是否回退"
elif self._policy_paths() and not self._restore_governors and error is None:
error = "无法读取 CPU 调频策略的原始值"
effective = bool(
effective_requested
and current
@@ -235,7 +240,7 @@ class PerformanceModeManager:
"effective": effective,
"current_governors": current,
"restore_governors": dict(self._restore_governors),
"last_error": self._last_error,
"last_error": error,
}