You are not logged in.

#1 2012-12-09 16:24:35

moneytoo
Member
From: Czech Republic
Registered: 2012-04-04
Posts: 20

Configuration workaround for fancontrol when hwmon order changes

I run Arch Linux on Asus P8Z77-V Pro Thunderbolt motherboard. I used nct677x-git module with lm_sensors and created configuration for fancontrol and everything worked until some of the next reboots. hwmon[0-3] order on my machine is not persistant, sometimes it was...

   hwmon0 is acpitz
   hwmon1 is asus
   hwmon2/device is coretemp
   hwmon3/device is nct6779

other times...

   hwmon0/device is nct6779
   hwmon1 is acpitz
   hwmon2/device is coretemp
   hwmon3 is asus

or...

   hwmon0/device is nct6779
   hwmon1 is acpitz
   hwmon2 is asus
   hwmon3/device is coretemp

Since I'm no expert it took me while to figure out that the best way is to reference devices directly instead of hwmon. Another thing is that in 2009 there was a patch that introduced DEVPATH and DEVNAME (they are expected to be hwmon's). It checks for symlinks and will exit if fails so the easiest workaround is to enter empty values in DEVPATH.

This is my working hwmon order independent setup.

# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=/sys/devices/platform/nct6775.656= /sys/devices/platform/coretemp.0=
DEVNAME=/sys/devices/platform/nct6775.656=nct6779 /sys/devices/platform/coretemp.0=coretemp
FCTEMPS=/sys/devices/platform/nct6775.656/pwm1=/sys/devices/platform/nct6775.656/temp1_input /sys/devices/platform/nct6775.656/pwm2=/sys/devices/platform/coretemp.0/temp1_input /sys/devices/platform/nct6775.656/pwm3=/sys/devices/platform/nct6775.656/temp1_input /sys/devices/platform/nct6775.656/pwm4=/sys/devices/platform/nct6775.656/temp1_input
FCFANS=/sys/devices/platform/nct6775.656/pwm1=/sys/devices/platform/nct6775.656/fan1_input /sys/devices/platform/nct6775.656/pwm2=/sys/devices/platform/nct6775.656/fan2_input /sys/devices/platform/nct6775.656/pwm3=/sys/devices/platform/nct6775.656/fan3_input /sys/devices/platform/nct6775.656/pwm4=/sys/devices/platform/nct6775.656/fan4_input
MINTEMP=/sys/devices/platform/nct6775.656/pwm1=20 /sys/devices/platform/nct6775.656/pwm2=20 /sys/devices/platform/nct6775.656/pwm3=20 /sys/devices/platform/nct6775.656/pwm4=20
MAXTEMP=/sys/devices/platform/nct6775.656/pwm1=60 /sys/devices/platform/nct6775.656/pwm2=60 /sys/devices/platform/nct6775.656/pwm3=60 /sys/devices/platform/nct6775.656/pwm4=60
MINSTART=/sys/devices/platform/nct6775.656/pwm1=152 /sys/devices/platform/nct6775.656/pwm2=64 /sys/devices/platform/nct6775.656/pwm3=152 /sys/devices/platform/nct6775.656/pwm4=90
MINSTOP=/sys/devices/platform/nct6775.656/pwm1=32 /sys/devices/platform/nct6775.656/pwm2=34 /sys/devices/platform/nct6775.656/pwm3=32 /sys/devices/platform/nct6775.656/pwm4=60

I spent a lot of time searching but I just didn't find anything like that so my intention is to link to this sample config from wiki.

Offline

Board footer

Powered by FluxBB