Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a moving average for temperatures #482

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Jul 8, 2024

Mitigate some fan noise by using a moving average instead of instantaneous points for thermal logic.

When starting a load, CPU will report rapid jumps in temp temperature. These spikes end up getting recorded by the cooldown table, and will cause the fans to run at higher than necessary duties for the actual loads.

Current logic is set to update every 250ms, so use 4 points to average over 1s.

TODO:

  • Evaluate interaction with HEATUP/COOLDOWN, and if that needs to change as well.

Resolves: #480

Base automatically changed from fan2 to master July 17, 2024 22:28
Mitigate some fan noise by using a moving average instead of
instantaneous points for thermal logic.

Current logic is set to update every 250ms, so use 4 points to average
over 1s.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a moving average for temperatures
1 participant