Skip to content

platform/x86: asus-wmi: validate custom fan curves on enable - #10

Closed
Ghoul4500 wants to merge 1 commit into
OpenGamingCollective:masterfrom
Ghoul4500:ghoul/asus-wmi-fan-curve-validation
Closed

platform/x86: asus-wmi: validate custom fan curves on enable#10
Ghoul4500 wants to merge 1 commit into
OpenGamingCollective:masterfrom
Ghoul4500:ghoul/asus-wmi-fan-curve-validation

Conversation

@Ghoul4500

@Ghoul4500 Ghoul4500 commented Aug 28, 2026

Copy link
Copy Markdown
Member

Validate fan curve monotonicity when enabling it. I do this on enable instead of on writing every point because mid-write the data cannot be expected to be consistent

Custom fan curves reach firmware unchecked, so a curve whose temperature
or PWM decreases from one point to the next is accepted. The firmware
does not respect such a curve: a first point of 100% followed by 50%
leaves every point running at 100%. The kernel keeps reporting the
points that were written, so sysfs stops describing what the fans are
actually doing.

Reject the curve when it is enabled. Validate on enable rather than on
write because fan curves are written one point at a time and are
inconsistent mid-write.

Fixes: 0f0ac15 ("platform/x86: asus-wmi: Add support for custom fan curves")
Reported-by: Nir Yehoshua <nir@ciphersecuritylabs.com>
Signed-off-by: Ahmed Yaseen <yaseen@ghoul.dev>
@Ghoul4500 Ghoul4500 self-assigned this Aug 28, 2026
@Ghoul4500
Ghoul4500 requested a review from NeroReflex August 28, 2026 16:00
@Ghoul4500
Ghoul4500 marked this pull request as ready for review August 28, 2026 16:00
@Ghoul4500 Ghoul4500 closed this Aug 31, 2026
@Ghoul4500
Ghoul4500 deleted the ghoul/asus-wmi-fan-curve-validation branch August 31, 2026 19:20
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