No title

Fan control Linux Debian: Fancontrol

Excerpt

After I installed a fan in my NAS, it always ran at top speed. In the BIOS I could set the speed, but the automatic mode did not work properly. Using the service fancontrol the speed of the fan can be linked to any sensor and any threshold and controlled automatically.


After I installed a fan in my NAS, it always ran at top speed. In the BIOS I could set the speed, but the automatic mode did not work properly. Using the service fancontrol the speed of the fan can be linked to any sensor and any threshold and controlled automatically.

Installing fancontrol

1
2
sudo apt-get install fancontrol lm-sensors
sudo service fancontrol start

Reading out the temperatures

Command:

1
sensors

Setting the threshold values

1
sudo pwmconfig

Ubuntu 20.04: There are no pwm-capable sensor modules installed

1
2
sudo sensors-detect

Do you want to scan for them? This is totally safe. (YES/no): YES
Do you want to scan for Super I/O sensors? (YES/no): YES
Do you want to probe the I2C/SMBus adapters now? (YES/no): YES

..

To load everything that is needed, add this to /etc/modules: 
#—-cut here—- 
# Chip drivers 
coretemp 
nct6775 
#—-cut here—- 
If you have some drivers built into your kernel, the list above will 
contain too many modules. Skip the appropriate ones!
..

Do you want to add these lines automatically to /etc/modules? (yes/NO)yes

sudo pwmconfig

The script tests the individual fans and can then assign them to a temperature sensor with corresponding threshold values:

then still:

1
sudo service fancontrol restart