-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
pine64-rockpro64: add fancontrol #770
Conversation
b8a4b2c
to
f40197b
Compare
rk3399's operating temps are -20 to 80°C. It has sensors for CPU and GPU. The MINSTART/-STOP values are a result of empirical testing.
With these settings, the fan doesn't run in idle for me. With |
Thanks! |
It's great to see this, since I stopped using the fan since the lack of fancontrol was annoying. To test this PR/functionality, I plugged a fan into my rockpro64, but the fan is continuously running, even when the CPU is idle.
I'm not familiar with fancontrol, sadly! @samtinel, thoughts? |
FYI:
|
Thanks for reaching out, @tomfitzhenry! It's good to see somebody else making use (or trying to :D) one's contribution.
Could be wrong about the path of the last one, if it's incorrect I'll check this evening. Additionally if they exist:
Since they'll likely not match, what's your board revision (printed on the device afaik, newest is 2.1) and kernel? Do you use a different (i.e. not the default one) device tree? |
Thanks for looking into this! :)
Board revision: RockPro64 V2.1 2018-07-02 Kernel is pkgs.linuxPackages_5_15 to avoid recent NVMe-on-boot issues I experience with later kernels. I've been meaning to report this upstream...
I use Tow Boot on SPI flash, and the upstream kernel's DT. |
Since you have an nvme drive installed (which apparently has a thermal sensor), and that one is hwmon0, every other hwmon is increased by one.
So if you wanted to get this to work, you'd just need to replace the following words in the fancontrol config:
- hwmon0 -> hwmon1
- hwmon1 -> hwmon2
- hwmon3 -> hwmon4
It'd be nice if you could test that?
|
There's an upstream issue about not being able to use better identifiers than the number:
lm-sensors/lm-sensors#227
I don't know what's the best way forward, maybe a different package? I used fancontrol because that's what some other board in this repo used.
|
This works perfectly, thanks! I observe the fan off while idle, and then on during a stress test.
Ah, that's a shame that lm-sensors seems so dependent on module load order. Thanks for looking into this. I will keep my overridden |
Description of changes
Controls the fan so it doesn't spin at full force after installation.
rk3399's operating temps are -20 to 80°C. It has sensors for CPU and GPU. The MINSTART/-STOP values are a result of my own testing.
Tested my fork without any changes and with
hardware.fancontrol.enable = false;
to disable it.Things done
nixos-hardware
andimporting it via
<nixos-hardware>
or Flake input