LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 418|回复: 4

还是风扇问题,生成不了配置文件呀。(fancontrol)

[复制链接]
发表于 2012-2-2 09:47:34 | 显示全部楼层 |阅读模式
tpfand太旧了,编译不了(水平有点低)

装了lm sensors

[root@myhost xavier]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +37.0°C  (crit = +127.0°C)
temp2:        +37.0°C  (crit = +104.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        3757 RPM
temp1:        +37.0°C  
temp2:        +48.0°C  
temp3:            N/A  
temp4:        +38.0°C  
temp5:            N/A  
temp6:            N/A  
temp7:            N/A  
temp8:            N/A  
temp9:        +43.0°C  
temp10:       +37.0°C  
temp11:           N/A  
temp12:           N/A  
temp13:           N/A  
temp14:           N/A  
temp15:           N/A  
temp16:           N/A  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +36.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +37.0°C  (high = +105.0°C, crit = +105.0°C)

# pwmconfig
# pwmconfig revision 5857 (2010-08-22)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is acpitz
   hwmon1/device is thinkpad
   hwmon2/device is coretemp

Found the following PWM controls:
   hwmon1/device/pwm1
hwmon1/device/pwm1 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) yes
There are no usable PWM outputs.
[root@myhost xavier]#

无法生成fancontrol文件,fancontrol没有意义呀
[root@myhost xavier]# fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon3/device/pwm1:
  Depends on hwmon2/temp1_input
  Controls hwmon1/device/fan1_input
  MINTEMP=50
  MAXTEMP=60
  MINSTART=40
  MINSTOP=30
  MINPWM=0
  MAXPWM=255

Device path of hwmon3 has changed
Device name of hwmon3 has changed
Configuration appears to be outdated, please run pwmconfig again
[root@myhost xavier]#

或都这个文件应该怎么写呢?# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0= hwmon3=devices/platform/thinkpad_hwmon
DEVNAME=hwmon0=acpitz hwmon3=thinkpad
FCTEMPS=hwmon3/device/pwm1=hwmon2/temp1_input
FCFANS= hwmon3/device/pwm1=hwmon1/device/fan1_input
MINTEMP=hwmon3/device/pwm1=50
MAXTEMP=hwmon3/device/pwm1=60
MINSTART=hwmon3/device/pwm1=40
MINSTOP=hwmon3/device/pwm1=30
MINPWM=hwmon3/device/pwm1=0
MAXPWM=hwmon3/device/pwm1=255
/etc/fancontrol (END)
发表于 2012-2-2 13:21:53 | 显示全部楼层
用thinkfan试试,这个好像是有效的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-2 14:17:23 | 显示全部楼层
谢谢。试了一下,好像也不行。yaourt安装 ,某一行,make不了。

我还是试着改了一下/etc/fancontrol,但就是感觉多磨,还是不太行。
通过ls /sys/class/hwmon/hwmon1/device/的文件,手工改了下配置文件,
如下:

# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon1=devices/platform/thinkpad_hwmon hwmon2=devices/platform/coretemp.0
DEVNAME=hwmon1=thinkpad hwmon2=coretemp
FCTEMPS=hwmon1/device/pwm1=hwmon1/device/temp1_input
FCFANS= hwmon1/device/pwm1=hwmon1/device/fan1_input
MINTEMP=hwmon1/device/pwm1=50
MAXTEMP=hwmon1/device/pwm1=60
MINSTART=hwmon1/device/pwm1=40
MINSTOP=hwmon1/device/pwm1=30
MINPWM=hwmon1/device/pwm1=0
MAXPWM=hwmon1/device/pwm1=255
/etc/fancontrol (END)

路径问题解决了,但出现了一个新问题:

# fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon1/device/pwm1:
  Depends on hwmon1/device/temp1_input
  Controls hwmon1/device/fan1_input
  MINTEMP=50
  MAXTEMP=60
  MINSTART=40
  MINSTOP=30
  MINPWM=0
  MAXPWM=255

Enabling PWM on fans...
Error enabling PWM on /sys/class/hwmon/hwmon1/device/pwm1
Aborting, restoring fans...
hwmon1/device/pwm1_enable stuck to 2
Verify fans have returned to full speed
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-2 14:22:17 | 显示全部楼层
不能安装thinkfan,是缺少make命令。真晕。

先试试thinkfan吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-2 15:42:31 | 显示全部楼层

基本上解决了

Post by ahuzhxl;2159437
用thinkfan试试,这个好像是有效的


谢谢。经过反复试验,终于解决了风扇的问题:

1,新建文件:/etc/modprobe.d/thinkfan.conf ,添加如下内容:
options thinkpad_acpi fan_control=1
2,/etc/thinkfan.conf

#for x200
sensor /proc/acpi/ibm/thermal (0, 3, 3, 2, 10, 0, 10, 0, 2, 2)

(0, 0, 45)

(1, 45, 52)

(2, 52, 60)

(3, 60, 65)

(4, 65, 68)

(5, 68, 70)

(6, 70, 75)

(7, 75, 32767)
[color="Red"]
不过貌似文件写得不太对?第一行?温度好像控制不住 。

3,不如直接
#echo level1 | tee /proc/acpi/ibm/fan
风扇转速立马可以即下来,就是不能持续,一会儿又转回来了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表