NAS
Hard drive temperture monitoring
Use the drivetemp module:
modprobe drivetemp
To start on boot:
echo drivetemp /etc/modules-load.d/drivetemp.conf
Fans
Install external kernel modules:
yay -S it87-dkms-git
Start at boot:
echo it87 > /etc/modules-load.d/it87.conf
pwm3 = system fans pwm2 = CPU fan
hddfancontrol
Method of controlling fan speed by hard drive temperture
https://github.com/desbma/hddfancontrol
yay -S hddfancontrol
nvme tempertures don't seem to be picked up with -d nvme, e.g.
[root@zaphod hwmon1]# hddfancontrol daemon -d /dev/nvme0n1 -p /sys/class/hwmon/hwmon14/pwm3:255:77
Error: Failed to setup drives
Caused by:
Unable to probe for drive state
So we explicity use the underlying device tempertures:
hddfancontrol daemon -d ata -w /sys/class/hwmon/hwmon2/temp1_input:30:50 -w /sys/class/hwmon/hwmon1/temp1_input:30:50 -p /sys/class/hwmon/hwmon14/pwm3:255:77