Fan Control

From Briki
Jump to: navigation, search

Stopping fans

Run `pwmconfig` to create a basic /etc/fancontrol and set the min temps to something >40. For example:

INTERVAL=10
DEVPATH=hwmon0=devices/platform/nct6775.672
DEVNAME=hwmon0=nct6798
FCTEMPS=hwmon0/pwm6=hwmon0/temp1_input hwmon0/pwm7=hwmon0/temp1_input
FCFANS=hwmon0/pwm6=hwmon0/fan6_input hwmon0/pwm7=hwmon0/fan7_input
MINTEMP=hwmon0/pwm6=40 hwmon0/pwm7=40
MAXTEMP=hwmon0/pwm6=60 hwmon0/pwm7=60
MINSTART=hwmon0/pwm6=140 hwmon0/pwm7=140
MINSTOP=hwmon0/pwm6=90 hwmon0/pwm7=90

Then just run `fancontrol` to stop the relevant fans (in this case pwm6 and pwm7).

Resetting automatic BIOS/OS fan control

Set the relevant pwm files to "2" (for automatic fan control):

 for file in /sys/class/hwmon/hwmon0/device/hwmon/hwmon0/pwm?_enable; do echo 2 > $file; done

Note: On ASRock this may differ - it seems to be "5" when set to customized fan curves in BIOS.

Notes for nct6775-compatible chipsets (including nct6798): https://www.kernel.org/doc/Documentation/hwmon/nct6775.rst.