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

Closed
wants to merge 1 commit into from
Closed

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>
@crawfxrd
Copy link
Member Author

crawfxrd commented Sep 4, 2024

Included in #500.

@crawfxrd crawfxrd closed this Sep 4, 2024
@crawfxrd crawfxrd deleted the moving-average branch September 4, 2024 18:53
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