feat(scripts): Add custom hybrid-architecture thermal-tune & fan control suite (P/E-cores)#196
Open
lavacano wants to merge 4 commits into
Open
feat(scripts): Add custom hybrid-architecture thermal-tune & fan control suite (P/E-cores)#196lavacano wants to merge 4 commits into
lavacano wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces a highly optimized, modular thermal tuning and fan control suite under the
/scripts/thermal-tune/directory.Designed specifically for hybrid-architecture Intel systems (e.g., P-cores + E-cores on the i7-13700HX) and integrated alongside the
DAMXdaemon, this suite addresses the unique thermal-throttling and latency challenges of running modern gaming laptops on Linux.Key Features Included:
1. Dual-Mode Fan Control Daemon (
fan-curve-daemon.py)Provides an advanced two-mode cooling mechanism for shared-heatpipe laptop architectures:
max(CPU_temp, GPU_temp)target to balance shared copper heatpipes and avoid one-sided heat saturation.2. Advanced Velocity-Form PI Power Governor
Rather than waiting for the CPU to hit hard thermal throttling (TJMax) under load, the governor monitors temperatures in real-time using a continuous-time feedback loop:
3. Dynamic EPP Scheduler Asymmetry
Maintains quiet, energy-efficient idle operation without sacrificing responsiveness:
performance.power(aggressive low-latency sleep) and E-cores tobalance_power. This naturally guides the Linux scheduler to run background OS tasks on E-cores first.4. Hardware Interrupt Affinity Isolation
Freezes out interrupt-induced context switches on gaming threads. In combination with
irqbalance, it guides users to ban P-cores (0-15) from interrupt handling, routing major hardware interrupts (GPU, Wi-Fi queues, USB controllers) strictly to E-cores (16-23).5. Telemetry Web Dashboard (
fan-dashboard.html)A single-file, highly responsive web dashboard using Chart.js to visualize the
/var/log/acer_fan_telemetry.csvlogs. It highlights coupled zones, power-capped zones, fan speeds, active power limits, and temperature curves in real-time.6. Hysteresis Auto-Tuner (
hysteresis-analyzer.py)A post-processing diagnostics utility that reads$^\circ\text{C}/\text{s}$ ), idle fan bouncing events, and active fan oscillations per hour, and automatically recommends or hot-applies optimized floor/ceiling constraints, zero-RPM silent zone temperatures, and hysteresis parameters to the daemon.
/var/log/acer_fan_telemetry.csv, calculates real-world cooling rates (Folder Structure Added: