Skip to content

Quarantine sensors that jump between the same two values - #119

Open
mews-se wants to merge 1 commit into
Shuzhengz:mainfrom
mews-se:sensor-guard
Open

mews-se wants to merge 1 commit into
Shuzhengz:mainfrom
mews-se:sensor-guard

Conversation

@mews-se

@mews-se mews-se commented Sep 2, 2026

Copy link
Copy Markdown

This is the sensor guard from #117 ported onto main. A sensor that jumps twenty degrees or more between the same two exact values three times stops driving the fan, and a log line names it. ErraticSensorGuard=0 in the ini turns it off, the config dump in the log shows the setting next to IgnoreSensors.

Same logic as da9d817 and 70d72a9 in my branch, verified there on an X13 Gen 3 where pwr flips between 1 and 66: it gets quarantined after a couple of minutes and the switch temp follows cpu again. Single spikes like the 100 and 110 readings in the issue won't trigger it, those never repeat the same endpoints, but it's easy to extend if a csv capture shows a pattern.

I can't run this exact build on my machine, TVicPort doesn't load with memory integrity on (that's what pushed my branch onto PawnIO), so it's compile checked with the same analysis flags as the workflow, no new warnings, and the runtime proof is from the same code in my branch.

Some EC offsets on newer machines multiplex other data and read as a
temperature that leaps tens of degrees back and forth, dragging smart
mode with it. Track the endpoints of each sensor's last big leap and
drop the sensor after three round trips between the same two values,
with a log line naming it. A real sensor never repeats the exact
endpoints of a twenty degree jump, load spikes included, so a working
cpu sensor cannot get caught. ErraticSensorGuard=0 turns it off.
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