分页: 1 / 2

关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-23 21:05
vickycq
怎么都在讨论控制风扇的thinkfan,tpfand等软件,风扇不是主板自动控制的吗?什么时候需要操作系统来干预了。

请问风扇固定在最大转速的问题是否为部分老Thinkpad专属?联想新出的Thinkpad(如Edge系列)安装linux还需要折腾风扇吗?

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-23 21:52
ahwad
thinkfan可以很好的控制风扇速度
33.jpg

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-23 22:18
vickycq
ahwad 写了:thinkfan可以很好的控制风扇速度
33.jpg
请问你的机器型号,如果不启用thinkpad-acpi fan_control=1能靠主板固件调速吗?

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-24 12:20
ahwad
14.04 12.04 amd64 w530 x200 通过。。。。。

1:安装thinkfan
代码: sudo apt-get install thinkfan sysfsutils
2:管理员身份在 /etc/modprobe.d 下面增加一个配置文件 thinkfan-acpi.conf ,
sudo gedit /etc/modprobe.d/thinkfan-acpi.conf
内容: options thinkpad_acpi experimental=1 fan_control=1
3:管理员身份打开 /etc/default/thinkfan
START=no
改为:
START=yes

注:w530 没有/proc/acpi/ibm/thermal文件。(如果有thermal文件,就跳过这部分),继续下面:
参考:http://thinkwiki.de/Thinkfan
sudo apt-get install lm-sensors
sudo sensors-detect # 一路yes,最后有个提示,就是下面的命令
sudo start module-init-tools

find /sys/devices -type f -name "temp*_input"
我的w530显示如下:
/sys/devices/platform/coretemp.0/temp1_input
/sys/devices/platform/coretemp.0/temp2_input
/sys/devices/platform/coretemp.0/temp3_input
/sys/devices/platform/coretemp.0/temp4_input
/sys/devices/platform/coretemp.0/temp5_input
/sys/devices/virtual/hwmon/hwmon0/temp1_input

4:编辑 /etc/thinkfan.conf ,另外加入温度侦测( 有thermal文件,就不需要这部分),我的内容如下:
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/platform/coretemp.0/temp4_input
sensor /sys/devices/platform/coretemp.0/temp5_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

(0, 0, 55)
(1, 45, 62)
(2, 61, 64)
(3, 63, 66)
(4, 65, 68)
(5, 67, 70)
(7, 69, 32767)
重启,OK!!!!

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-24 12:40
poloshiao
另外加入温度侦测( 有thermal文件,就不需要这部分),我的内容如下:
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/platform/coretemp.0/temp4_input
sensor /sys/devices/platform/coretemp.0/temp5_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
(0, 0, 55)
(1, 45, 62)
(2, 61, 64)
(3, 63, 66)
(4, 65, 68)
(5, 67, 70)
(7, 69, 32767)
http://www.phoronix.com/scan.php?page=n ... px=MTc0Njg
The Bang-bang thermal governor
As explained in the patch, the Bang-bang thermal governor is intended to control simple cooling fans that can only be on or off but not scale to a given load or boast other functionality.
正在發展的 Bang-bang 溫度管理器 回到只能
http://www.phoronix.com/scan.php?page=n ... px=MTg2ODU
Linux 3.19: ..., Acer Is Banging
將在 Linux 3.19 Acer 電腦中實作

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-24 13:54
rosynirvana
有些情况下主板不会调节风扇转速,一直在最大转速跑着,这时候就需要操作系统来干预了

下载机为了静音可以考虑一下无风扇的mini-ITX板子,例如这个 http://item.jd.com/1113208.html
一套下来肯定要不了2000块钱的

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2014-12-24 23:39
vickycq
之前用过一台神舟低端蓝天模具,不论操作系统,风扇只有三个状态:不转,高转速,全速。个人猜测新出的TP E系列应该不会有此问题。
相关讨论:https://bbs.archlinux.org/viewtopic.php?id=151028

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-02 10:25
vickycq
紫薯紫薯紫薯紫薯紫薯

Re: [上当了!]关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-02 15:07
onlylove
你还真信EDGE啊……tp的话我觉得能买的就 T X W

Re: [上当了!]关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-03 22:43
vickycq
下面轮到thinkpad_acpi出场了!
1)启用thinkpad_acpi fan_control,用thinkfan控制风扇65度启动,54度停止;
2)cpufreq/scaling_governor设为powersave,强制处理器800MHz运行,被动散热温度基本不会超过64度;
3)到bios-mod找大神求助,制作无白名单的BIOS;
4)买了一张Atheros无线网卡换上。

经过以上折腾可勉强做下载机使用。同时运行transmission、115pan和bcloud,下载速度~3MiB/s,风扇几乎不启动。 :em09

Re: [上当了!]关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-04 18:02
yxcy
嗯,某宝的无风扇迷你主机是你的首选

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-04 18:33
jackness
ahwad 写了:14.04 12.04 amd64 w530 x200 通过。。。。。

1:安装thinkfan
代码: sudo apt-get install thinkfan sysfsutils
2:管理员身份在 /etc/modprobe.d 下面增加一个配置文件 thinkfan-acpi.conf ,
sudo gedit /etc/modprobe.d/thinkfan-acpi.conf
内容: options thinkpad_acpi experimental=1 fan_control=1
3:管理员身份打开 /etc/default/thinkfan
START=no
改为:
START=yes

注:w530 没有/proc/acpi/ibm/thermal文件。(如果有thermal文件,就跳过这部分),继续下面:
参考:http://thinkwiki.de/Thinkfan
sudo apt-get install lm-sensors
sudo sensors-detect # 一路yes,最后有个提示,就是下面的命令
sudo start module-init-tools

find /sys/devices -type f -name "temp*_input"
我的w530显示如下:
/sys/devices/platform/coretemp.0/temp1_input
/sys/devices/platform/coretemp.0/temp2_input
/sys/devices/platform/coretemp.0/temp3_input
/sys/devices/platform/coretemp.0/temp4_input
/sys/devices/platform/coretemp.0/temp5_input
/sys/devices/virtual/hwmon/hwmon0/temp1_input

4:编辑 /etc/thinkfan.conf ,另外加入温度侦测( 有thermal文件,就不需要这部分),我的内容如下:
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/platform/coretemp.0/temp4_input
sensor /sys/devices/platform/coretemp.0/temp5_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

(0, 0, 55)
(1, 45, 62)
(2, 61, 64)
(3, 63, 66)
(4, 65, 68)
(5, 67, 70)
(7, 69, 32767)
重启,OK!!!!
我照操作做了一遍,为什么我没有出现thinkfan程序啊?求大神们帮忙,谢谢!

Re: 关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-04 21:04
vickycq
jackness 写了: 我照操作做了一遍,为什么我没有出现thinkfan程序啊?求大神们帮忙,谢谢!

代码: 全选

3:管理员身份打开 /etc/default/thinkfan
   START=no
  改为:
  START=yes
这开机自启,使用upstart/systemd的发行版实测不好用。我都是手动开启。配合几个不同的配置文件,方便不同场景的风扇控制:

代码: 全选

alias tf0='thinkfan -c /home/simon/etc/thinkfan.conf.0'
alias tf1='thinkfan -c /home/simon/etc/thinkfan.conf.1'
alias tf2='thinkfan -c /home/simon/etc/thinkfan.conf.2'
alias ktf='kill -TERM $(</var/run/thinkfan.pid)'

Re: [上当了!]关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-04 21:08
vickycq
yxcy 写了:嗯,某宝的无风扇迷你主机是你的首选
搞上网本就是为了少折腾,结果折腾的比啥都多。早知道搞个raspberry pi不比这强! :em20

Re: [上当了!]关于Thinkpad在linux下的风扇控制

发表于 : 2015-01-10 18:41
vickycq
发现kabini的apu功耗相当低。用python满速下载,cpu占用7-10,整机功耗6W以下。