Skip to content

Conversation

@siena-sam
Copy link

Summary

  • OS: Linux
  • Bug fix: yes
  • Type: core
  • Fixes: 2439

Description

Store and clear values for the high and critical temperatures read from thermal_zone#/trip_point_#_temp files. Otherwise, values will be incorrectly divided by 1000 (to account for milidegrees) for each trip point after the first that is of type critical or high.

Fix a bug in how high and critical temperatures are calculated when
using thermal zones. Clear high and critical values each iteration so
they are not divided by 1000 on subsequent iterations. Take the max
value if multiple temperature trips target either high or critical.

Signed-off-by: Siena Richard <[email protected]>
Signed-off-by: Siena Richard <[email protected]>
@siena-sam
Copy link
Author

For confirmation, here are some screenshots of this fix verified on the ARM system we first noticed this on.

Here is the bug seen in 5.9.8 which is the version we are currently using:
image

Here is the bug fixed when running commit 7f705e4b1db4f0b220f84a17a02669a1e3e02eac:
image

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.

1 participant