Controlling fan headers on an ASUS Maximus VIII Formula?

Solution 1:

I've done this with the Z97 and it looks like the Z170 should work similarly. You will need to configure the /etc/sensors3.conf and /etc/modules to utilize the nct6775 drivers. I was able to get the main fans controlled with the following:

/etc/modules

# Chip drivers
coretemp
nct6775

Append this to the end of /etc/sensors3.conf

chip "nct6791-*"
    # For the Asus Z97-A. Based on:
    # http://www.spinics.net/lists/lm-sensors/msg42249.html

    label in0 "CPU Vcc"
        # 'CPU Input Voltage' in UEFI
        compute in0  @ * 2, @ / 2

    label in1 "+5V"
        compute in1 @ * 5, @ / 5
        set in1_min 5 * 0.95
        set in1_max 5 * 1.05

        # From driver: label in2 "AVCC"
        set in3_min 3.3 * 0.95
        set in3_max 3.3 * 1.05

    # From driver: label in3 "+3.3V"
        set in3_min 3.3 * 0.95
        set in3_max 3.3 * 1.05

    label in4 "+12V"
        compute  in4  @ * 12, @ / 12
        set in4_min 12 * 0.95
        set in4_max 12 * 1.05

    # in5: unknown

    label in6 "core 3"
        compute in6 @ * 2, @ / 2

    # From driver: label in7 "3VSB"
    # From driver: label in8 "Vbat"
    # From driver: label in9 "Vcore"

    label in10 "GPU"

    label in11 "sys agent"
        # 'CPU System Agent Voltage Offset Mode Sign' in UEFI

    label in12 "core 2"
        compute in12 @ * 2, @ / 2

    label in13 "core 1"
        compute in13 @ * 2, @ / 2

    label in14 "core 0"
        compute in14 @ * 2, @ / 2

    label fan1 "Fan 1"
    label fan2 "CPU fan"
        # The correponding pwm also controls the 'CPU Opt' fan

    label fan3 "Fan 2"
    label fan4 "Fan 3"
    label fan5 "Fan 4"
    label fan6 "CPU fan 2"
        # 'CPU Opt' header

You can also try utilizing sensors-detect, it will generate the /etc/modules file.

Add the following to the GRUB_CMDLINE_LINUX_DEFAULT variable in the /etc/default/grub file: acpi_enforce_resources=lax then rebuild the grub config grub-mkconfig -o /boot/grub/grub.cfg

Again, that was for the Z97, it may need some tweaking for the Z170.