feat: added it87-extras for improved lm-sensors compatibility with some Gigabyte motherboards #261
+21
−0
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.
Description
This recipe installs it87-extras, a packaged version of frankcrawford/it87 adding support for some Gigabyte motherboards. This package does not replace mainline it87 but installs a blacklist file for it as a dependency (contained in copr/grandapres/it87-extras/it87-extras-common).
Usecase
The primary purpose of the controllers this driver enables is PWM control of case fans, which is important for gaming systems. Therefore, this will be useful in Bazzite.
Issues
For most systems unsupported in the mainline, forcing controller ID when modprobing the driver and acpi_enforce_resources=lax are both necessary. Since the chip ID depends on the motherboard, and acpi_enforce_resources=lax is potentially destructive, neither should be set by default. A justfile that looks at the output of setup-sensors and then sets the necessary kargs is a possible solution, although I'm not sure where I could contribute one. However, users on unsupported systems should not experience any degradations compared to the mainline driver if these kargs are not set (their PWM controllers won't work in both cases).
Testing
I have tested that this module builds and installs from copr to akmod in Fedora 40 (mutable). Additionally, it builds from source, loads, and works as expected in aurora:stable. I wasn't sure if the akmods repo build actions are safe to run for testing, but if so, I can verify the image builds before merging. Currently, the copr repo is set to build from my fork of the module while I'm waiting for the upstream to review a PR containing the copr spec files.