-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lm_sensors: add fancontrol module #70933
Conversation
cc733c1
to
ef838e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a duplicate of https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/hardware/fancontrol.nix ?
Hah, indeed, fun timing. Do you still want to cherry-pick the test or is this too trivial? |
fancontrol is a small script that checks temperature sensors and adapts fan speeds accordingly. It reads a text config file that can be auto-generated by running the pwmconfig wizard on the live system.
ef838e1
to
3a89c44
Compare
aside from mine being in config.hardware and linking to pwmconfig's man page (as suggested in #69398), explicitly mentioning the need for config in the mkEnableOption (the process of setting up fancontrol is too much yak shaving to not have that in there IMO) and being in services/hardware, |
i merged our work here. defaulting to null will result in an explicit failure if no config is given enable will now show as "whether to enable software fan control" i'm not sure about the |
@evils-devils Thanks for merging in my work! Do you intend to submit the updated version soonish, so I can close that PR? |
@zopieux i'll do so if you want that |
Thanks! |
* lm_sensors: add fancontrol module + nixos test fancontrol is a small script that checks temperature sensors and adapts fan speeds accordingly. It reads a text config file that can be auto-generated by running the pwmconfig wizard on the live system.
* lm_sensors: add fancontrol module + nixos test fancontrol is a small script that checks temperature sensors and adapts fan speeds accordingly. It reads a text config file that can be auto-generated by running the pwmconfig wizard on the live system. (cherry picked from commit 5a78ce3)
Motivation for this change
lm_sensors package provides a
fancontrol
script that regularly checks temperature sensors and adapts fan speeds according to a config file. This PR adds afancontrol
module to enable that feature.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)