You are not logged in.
Hi, I can change the default auto config fan variable by next commands:
echo 30000 > /sys/class/hwmon/hwmon3/pwm1_auto_point1_temp
echo 35000 > /sys/class/hwmon/hwmon3/pwm1_auto_point2_temp
echo 40000 > /sys/class/hwmon/hwmon3/pwm1_auto_point3_temp
echo 45000 > /sys/class/hwmon/hwmon3/pwm1_auto_point4_temp
echo 70000 > /sys/class/hwmon/hwmon3/pwm1_auto_point5_temp
echo 200 > /sys/class/hwmon/hwmon3/pwm1_auto_point1_pwm
echo 200 > /sys/class/hwmon/hwmon3/pwm1_auto_point2_pwm
echo 220 > /sys/class/hwmon/hwmon3/pwm1_auto_point3_pwm
echo 240 > /sys/class/hwmon/hwmon3/pwm1_auto_point4_pwm
echo 255 > /sys/class/hwmon/hwmon3/pwm1_auto_point5_pwmI need to change the input temperature sensor which it take the value from, currently it is motherboard sensor, but I'd like to make it use cpu.
Does anyone know how to do that?
[v@v ~]$ ls /sys/class/hwmon/hwmon0/
name power subsystem temp1_crit temp1_input temp2_crit temp2_input uevent
[v@v ~]$ ls /sys/class/hwmon/hwmon1/
device fan1_input fan1_label name power pwm1_enable subsystem uevent
[v@v ~]$ ls /sys/class/hwmon/hwmon2/
device subsystem temp1_input temp2_crit temp2_label temp3_crit_alarm temp3_max temp4_input temp5_crit temp5_label
name temp1_crit temp1_label temp2_crit_alarm temp2_max temp3_input temp4_crit temp4_label temp5_crit_alarm temp5_max
power temp1_crit_alarm temp1_max temp2_input temp3_crit temp3_label temp4_crit_alarm temp4_max temp5_input uevent
[v@v ~]$ ls /sys/class/hwmon/hwmon3/
beep_enable fan4_min in3_min intrusion0_alarm pwm1_temp_sel pwm2_stop_time pwm3_step_down_time temp2_label
device fan4_pulses in4_alarm intrusion0_beep pwm1_temp_tolerance pwm2_target_temp pwm3_step_up_time temp2_max
fan1_alarm fan5_alarm in4_beep intrusion1_alarm pwm1_weight_duty_base pwm2_temp_sel pwm3_stop_time temp2_max_hyst
fan1_beep fan5_beep in4_input intrusion1_beep pwm1_weight_duty_step pwm2_temp_tolerance pwm3_target_temp temp2_offset
fan1_input fan5_input in4_max name pwm1_weight_temp_sel pwm2_weight_duty_base pwm3_temp_sel temp2_type
fan1_min fan5_min in4_min power pwm1_weight_temp_step pwm2_weight_duty_step pwm3_temp_tolerance temp3_alarm
fan1_pulses fan5_pulses in5_alarm pwm1 pwm1_weight_temp_step_base pwm2_weight_temp_sel pwm3_weight_duty_base temp3_beep
fan1_target in0_alarm in5_beep pwm1_auto_point1_pwm pwm1_weight_temp_step_tol pwm2_weight_temp_step pwm3_weight_duty_step temp3_input
fan1_tolerance in0_beep in5_input pwm1_auto_point1_temp pwm2 pwm2_weight_temp_step_base pwm3_weight_temp_sel temp3_label
fan2_alarm in0_input in5_max pwm1_auto_point2_pwm pwm2_auto_point1_pwm pwm2_weight_temp_step_tol pwm3_weight_temp_step temp3_max
fan2_beep in0_max in5_min pwm1_auto_point2_temp pwm2_auto_point1_temp pwm3 pwm3_weight_temp_step_base temp3_max_hyst
fan2_input in0_min in6_alarm pwm1_auto_point3_pwm pwm2_auto_point2_pwm pwm3_auto_point1_pwm pwm3_weight_temp_step_tol temp3_offset
fan2_min in1_alarm in6_beep pwm1_auto_point3_temp pwm2_auto_point2_temp pwm3_auto_point1_temp subsystem temp3_type
fan2_pulses in1_beep in6_input pwm1_auto_point4_pwm pwm2_auto_point3_pwm pwm3_auto_point2_pwm temp10_input temp7_beep
fan2_target in1_input in6_max pwm1_auto_point4_temp pwm2_auto_point3_temp pwm3_auto_point2_temp temp10_label temp7_crit
fan2_tolerance in1_max in6_min pwm1_auto_point5_pwm pwm2_auto_point4_pwm pwm3_auto_point3_pwm temp1_alarm temp7_input
fan3_alarm in1_min in7_alarm pwm1_auto_point5_temp pwm2_auto_point4_temp pwm3_auto_point3_temp temp1_beep temp7_label
fan3_beep in2_alarm in7_beep pwm1_crit_temp_tolerance pwm2_auto_point5_pwm pwm3_auto_point4_pwm temp1_input temp7_max
fan3_input in2_beep in7_input pwm1_enable pwm2_auto_point5_temp pwm3_auto_point4_temp temp1_label temp7_max_hyst
fan3_min in2_input in7_max pwm1_floor pwm2_crit_temp_tolerance pwm3_auto_point5_pwm temp1_max temp8_input
fan3_pulses in2_max in7_min pwm1_mode pwm2_enable pwm3_auto_point5_temp temp1_max_hyst temp8_label
fan3_target in2_min in8_alarm pwm1_start pwm2_floor pwm3_crit_temp_tolerance temp1_offset temp9_input
fan3_tolerance in3_alarm in8_beep pwm1_step_down_time pwm2_mode pwm3_enable temp1_type temp9_label
fan4_alarm in3_beep in8_input pwm1_step_up_time pwm2_start pwm3_floor temp2_alarm uevent
fan4_beep in3_input in8_max pwm1_stop_time pwm2_step_down_time pwm3_mode temp2_beep
fan4_input in3_max in8_min pwm1_target_temp pwm2_step_up_time pwm3_start temp2_inputlist of all pwms/fans...
http://www.datasheet4u.com/datasheet-pd … ?id=936990
Last edited by vitaliy.kuzmich (2017-05-07 09:33:03)
Offline
Hi,
you can look up the pwm-setting in the driver-documentation:
https://www.kernel.org/doc/Documentation/hwmon/nct6775
It seems you have to set pwm_temp_sel to the desired tempX-number.
On my hardware, CPU-fan is on pwm2, casefan on pwm1. The cpu-sensor is reportet through PECI, perhaps check if the returned value is correct, for my system its temp7.
You'll also have to set the right "mode" with pwm1_enable, check documentation above for the right mode to get the behaviour you desire.
Offline
thanks a lot, will try
Offline