Files
ergosteurandClaude Opus 5 00384e7463 Make IPMI fan control temperature-aware without Docker
Manual fan mode pins the fans at a fixed duty and never ramps, so a sustained
load had no cooling response until the BMC's own critical-temperature
override stepped in. docker-idrac.sh solved that, but needs Docker, which is
not installed on the host.

ipmi-fancontrol-daemon polls the CPU sensors and switches between the fixed
duty and the BMC's automatic curve around a threshold, which is what that
container did. Measured on the host: 1440 RPM pinned versus roughly 4200 RPM
on the automatic curve at the same 60C.

- Hysteresis, default 5C, stops the fans oscillating at the boundary.
- An unreadable temperature fails safe to automatic rather than staying
  pinned.
- SIGTERM restores the automatic curve, with ExecStopPost as the backstop for
  an outright kill.

Default to the local "open" interface. It needs no credentials and no
network, which matters for the shutdown path, where lanplus to the iDRAC
could fail once networking is down. ipmi-fancontrol-auto and -manual honour
the same setting and stay available for ad-hoc use.

Enable the third-party PCIe cooling response suppression that docker-idrac.sh
was configured with, so the automatic curve is not held to a raised floor by
the aftermarket NICs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 16:31:05 +00:00

20 lines
593 B
Desktop File

[Unit]
Description=Temperature-aware IPMI fan control
Documentation=file:/opt/ergosteur/ipmi-fancontrol-daemon
# Only needed when conf sets IPMI_INTERFACE=lanplus; harmless for the local
# "open" interface.
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/opt/ergosteur/ipmi-fancontrol-daemon
# The daemon restores the automatic curve on SIGTERM. This is the backstop for
# the case where it is killed outright and its trap never runs.
ExecStopPost=/opt/ergosteur/ipmi-fancontrol-auto
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target