Skip to content

Add temperature-based Auto mode with fixed ranges and 5s debounce#71

Open
shahnshahmalik wants to merge 2 commits intoKarmel0x:masterfrom
shahnshahmalik:master
Open

Add temperature-based Auto mode with fixed ranges and 5s debounce#71
shahnshahmalik wants to merge 2 commits intoKarmel0x:masterfrom
shahnshahmalik:master

Conversation

@shahnshahmalik
Copy link

@shahnshahmalik shahnshahmalik commented Mar 2, 2026

Pre-built release for testing: AsusFanControl v1.0.0-fan-curve — download the zip from Assets and run as Administrator.

Screenshot 2026-03-02 214349

Summary

This PR adds a temperature-based Auto mode alongside the existing Manual mode, with fixed temperature ranges, debouncing, and UI/performance improvements. Manual mode and the existing CLI are unchanged.

Changes

Manual vs Auto mode

  • Manual (unchanged): Fan speed is set by the trackbar.
  • Auto: Fan speed is chosen from fixed temperature ranges; current CPU temp and resulting fan % are shown in the UI.

Fixed temperature ranges (Auto mode)

  • < 35°C → 0% (fans off)
  • 35–55°C → 45%
  • 55–75°C → 80%
  • ≥ 75°C → 100%

"Forbid unsafe settings" (Advanced menu) still applies a 40–99% clamp when enabled.

5-second debounce

In Auto mode, when temperature moves to a new range, the new fan speed is applied only after it has stayed in that range for 5 seconds, to avoid reacting to short spikes.

Performance

  • Hardware reads (CPU temp, fan RPM) run on a background thread so the UI stays responsive.
  • Refresh timer interval increased from 2s to 5s to reduce load.

UI

  • Temp ranges are shown on separate lines to avoid truncation.
  • Window size reduced to fit content; form is fixed single-window (no maximize).
  • Mode selection (Manual / Auto) is clear, and Auto mode shows current temp and fan %.

Documentation

  • README updated with a Modifications section that describes the new behavior.

Testing

  • Manual mode and trackbar behavior unchanged.
  • Auto mode applies the fixed ranges with debounce; invalid temp (e.g. -1) shows "N/A" and does not change fan speed.

Happy to adjust anything based on your feedback.

@atharvshende2008
Copy link

atharvshende2008 commented Mar 6, 2026

@shahnshahmalik
release the file to download.
you haven't done that yet

@shahnshahmalik
Copy link
Author

@shahnshahmalik release the file to download. you haven't done that yet

Hey sorry for the inconvenience, I added the release files now, here's the link Download
download the zip from Assets and run as Administrator.

@atharvshende2008
Copy link

atharvshende2008 commented Mar 6, 2026

@shahnshahmalik
thank you so much sir . its working on my asus v16.
can you add :
auto start
option for 2 or 3 setpoints fan curve for cpu and gpu
Fan still on when sleep mode (it should not)

@shahnshahmalik
Copy link
Author

@shahnshahmalik thank you so much sir . its working on my asus v16. can you add : auto start option for 2 or 3 setpoints fan curve for cpu and gpu Fan still on when sleep mode

thank you so much for your valuable feedback, I'll add that soon, will update here when I do so

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.

2 participants