Linux: 如何以编程方式停止风扇?

分享于 

5分钟阅读

电脑

  繁體 雙語

问题:

我的系统不会在写入值 below 255到/sys/class/hwmon/hwmon0/device/pwm(2,3)的情况下React,它对应于m/b ( ga-890gpa-ud3h ) 头连接的3-wire。 这个想法是从 http://www.thinkwiki.org/wiki/How_to_control_fan_speed 获取的。


ls/sys/class/hwmon/hwmon0/device/



alarms fan1_min fan3_beep fan5_min in0_min in2_alarm in3_beep in4_beep in5_input in6_max in7_max power/pwm2_auto_channels_temp pwm3_freq temp1_min temp2_min temp3_min


cpu0_vid fan2_alarm fan3_input hwmon/in1_alarm in2_beep in3_input in4_input in5_max in6_min in7_min pwm1 pwm2_enable subsystem@ temp1_type temp2_type temp3_type


driver@ fan2_beep fan3_min in0_alarm in1_beep in2_input in3_label in4_max in5_min in7_alarm in8_input pwm1_auto_channels_temp pwm2_freq temp1_alarm temp2_alarm temp3_alarm uevent


fan1_alarm fan2_input fan5_alarm in0_beep in1_input in2_max in3_max in4_min in6_alarm in7_beep in8_label pwm1_enable pwm3 temp1_beep temp2_beep temp3_beep vrm


fan1_beep fan2_min fan5_beep in0_input in1_max in2_min in3_min in5_alarm in6_beep in7_input modalias pwm1_freq pwm3_auto_channels_temp temp1_input temp2_input temp3_input


fan1_input fan3_alarm fan5_input in0_max in1_min in3_alarm in4_alarm in5_beep in6_input in7_label name pwm2 pwm3_enable temp1_max temp2_max temp3_max



它确实显示了实际速度:


cat/sys/class/hwmon/hwmon0/device/fan5_input 


5769



但拒绝写入 fanX_input: 权限拒绝 ( 即使是 root )"。

更多规格:内核 2.6.38.4,sensors 输出为:


it8720-isa-0228


Adapter: ISA adapter



我不运行风扇控制的任何守护进程,但假设内核调控器中的CPU可以设置速度。 如何在不做硬件戏法的情况下停止风扇?

更新: pwmconfig输出部分:

设备:


Found the following devices:


 hwmon0/device is it8720


 hwmon1/device is k10temp



Found the following PWM controls:


 hwmon0/device/pwm1


 hwmon0/device/pwm2


hwmon0/device/pwm2 is currently setup for automatic speed control.


In general, automatic mode is preferred over manual mode, as


it is more efficient and it reacts faster. Are you sure that


you want to setup this output for manual control? (n) y


 hwmon0/device/pwm3


hwmon0/device/pwm3 is currently setup for automatic speed control.


In general, automatic mode is preferred over manual mode, as


it is more efficient and it reacts faster. Are you sure that


you want to setup this output for manual control? (n) y



测试:


Warning!!! This program will stop your fans, one at a time,


for approximately 5 seconds each!!!


This may cause your processor temperature to rise!!!


If you do not want to do this hit control-C now!!!


Hit return to continue: 



Testing pwm control hwmon0/device/pwm1.. .


 hwmon0/device/fan1_input.. . speed was 4326 now 2136


 It appears that fan hwmon0/device/fan1_input


 is controlled by pwm hwmon0/device/pwm1


Would you like to generate a detailed correlation (y)? y



这停止了CPU风扇。 还有:


hwmon0/device/fan3_input.. . speed was 1997 now 1997


 no correlation


 hwmon0/device/fan5_input.. . speed was 5720 now 5720


 no correlation



Testing pwm control hwmon0/device/pwm2.. .


 hwmon0/device/fan1_input.. . speed was 4326 now 4383


 no correlation


 hwmon0/device/fan3_input.. . speed was 1997 now 1997


 no correlation


 hwmon0/device/fan5_input.. . speed was 5720 now 5720


 no correlation



No correlations




回答 1:

风扇在主板上连接的header 可能不支持风扇节流。 我有一个带有 6风扇头的主板,4支持速度控制,另一个 2不支持。


回答 2:

好,似乎 3-pin 标头完全无法控制旋转,但只能报告: 请参见 http://www.overclock.net/air-cooling/727121-motherboard-only-controls-2-4-fans.html



相关文章