Add Super I/O (motherboard) fan support via hwmon - #2120
Open
Reckless5040 wants to merge 6 commits into
Open
Conversation
Auto-detect Super I/O chips (Nuvoton/ITE/Fintek/Winbond/SMSC) through hwmon in addition to the Steam Deck fan, and add a fan_custom_sensor option to select specific chip,input[,label] sensors (multi-fan capable). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep 'fan' for the Steam Deck APU fan and add a new 'cfan' element for custom / Super I/O chip fans. cfan auto-detects a Super I/O chip or uses fan_custom_sensor; update_fan() now resolves fan_sensors (Steam Deck) and cfan_sensors (Super I/O) separately. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cfan now uses its own cfan_color (default eb5b5b) instead of sharing fan_color. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make the custom-sensor options symmetric: fan_custom_sensor drives the 'fan' element (else Steam Deck auto-detect) and cfan_custom_sensor drives 'cfan' (else Super I/O auto-detect). Both share a parser via a parse_cfan_custom_sensor alias. Also fixes update_fan() so it runs when either fan or cfan is enabled. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
These two were missing from the color fix-up array, so their red and blue channels were swapped when rendered. Add them and bump the array size 24->26. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
cfanoverlay element that auto-detects and reads chassis/CPU/system fan RPM from Super I/O chips (Nuvoton/ITE/Fintek/Winbond/SMSC) via Linuxhwmon, independent of the existing Steam Deck-onlyfanelementfan_custom_sensor/cfan_custom_sensorconfig options (shared parser) to manually pick a specificchip,input[,label]sensor, supporting multiple labelled fanscfan_colorso the new element's label isn't forced to sharefan_colorfan_color/cfan_colorwere missing from the 0xRRGGBB→ImGui color swizzle table (red/blue channels were swapped)Details
See
FAN_SUPERIO.mdfor the full rationale and a before/after table of touched files.Test plan
cfan=1auto-detects and displays a sensible RPMcfan_custom_sensorselects a specific chip/input and supports multiple fansfan(Steam Deck) behavior is unchangedfan_color/cfan_colorrender with correct (non-swapped) RGBDisclosure: This code and PR description were written with the help of an AI coding assistant (Claude).