Add optional 3-stage CPU temperature fan curve#121
Open
kelriclink wants to merge 2 commits into
Open
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.
Summary
This PR adds an optional 3-stage CPU temperature fan curve (simple step curve) to the Dell iDRAC fan controller container.
Behavior (3 stages)
The controller uses the highest detected CPU temperature (CPU1/CPU2) as
T:Cool (Stage 1):
T < CPU_TEMPERATURE_FAN_CURVE_LOW_THRESHOLD→ apply static fan speed
CPU_TEMPERATURE_FAN_CURVE_LOW_FAN_SPEEDWarm (Stage 2):
T > CPU_TEMPERATURE_FAN_CURVE_MID_THRESHOLD→ apply static fan speed
CPU_TEMPERATURE_FAN_CURVE_MID_FAN_SPEEDHot (Stage 3 / Safety):
T > CPU_TEMPERATURE_THRESHOLD→ switch back to Dell default dynamic fan control profile (auto)
Between LOW and MID thresholds, the last applied curve stage is kept to reduce oscillation.
New environment variables
ENABLE_CPU_TEMPERATURE_FAN_CURVE(default:false)CPU_TEMPERATURE_FAN_CURVE_LOW_THRESHOLD(default:60)CPU_TEMPERATURE_FAN_CURVE_LOW_FAN_SPEED(default:12)CPU_TEMPERATURE_FAN_CURVE_MID_THRESHOLD(default:75)CPU_TEMPERATURE_FAN_CURVE_MID_FAN_SPEED(default:20)Fan speeds support decimal (0–100%) or hex (0x00–0x64), same as
FAN_SPEED.Note: when the curve is enabled,
FAN_SPEEDis ignored.Implementation notes
Files changed
Dell_iDRAC_fan_controller.sh: adds curve logic + selectionfunctions.sh: addsapply_user_fan_control_profile_with_speedhelper + small sensor output fixDockerfile: adds default ENV values for the new variablesREADME.md: documents the feature and parametersl have already test it at my dell r730xd ,it works great.
