关于Thinkpad在linux下的风扇控制

笔记本/便携移动设备,手机平板等软硬件
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

关于Thinkpad在linux下的风扇控制

#1

帖子 vickycq » 2014-12-23 21:05

怎么都在讨论控制风扇的thinkfan,tpfand等软件,风扇不是主板自动控制的吗?什么时候需要操作系统来干预了。

请问风扇固定在最大转速的问题是否为部分老Thinkpad专属?联想新出的Thinkpad(如Edge系列)安装linux还需要折腾风扇吗?
上次由 vickycq 在 2017-06-08 9:19,总共编辑 2 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
ahwad
帖子: 1116
注册时间: 2009-05-06 0:36

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

#2

帖子 ahwad » 2014-12-23 21:52

thinkfan可以很好的控制风扇速度
33.jpg
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#3

帖子 vickycq » 2014-12-23 22:18

ahwad 写了:thinkfan可以很好的控制风扇速度
33.jpg
请问你的机器型号,如果不启用thinkpad-acpi fan_control=1能靠主板固件调速吗?
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
ahwad
帖子: 1116
注册时间: 2009-05-06 0:36

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

#4

帖子 ahwad » 2014-12-24 12:20

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!!!!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#5

帖子 poloshiao » 2014-12-24 12:40

另外加入温度侦测( 有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 電腦中實作
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

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

#6

帖子 rosynirvana » 2014-12-24 13:54

有些情况下主板不会调节风扇转速,一直在最大转速跑着,这时候就需要操作系统来干预了

下载机为了静音可以考虑一下无风扇的mini-ITX板子,例如这个 http://item.jd.com/1113208.html
一套下来肯定要不了2000块钱的
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#7

帖子 vickycq » 2014-12-24 23:39

之前用过一台神舟低端蓝天模具,不论操作系统,风扇只有三个状态:不转,高转速,全速。个人猜测新出的TP E系列应该不会有此问题。
相关讨论:https://bbs.archlinux.org/viewtopic.php?id=151028
上次由 vickycq 在 2017-06-08 9:19,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#8

帖子 vickycq » 2015-01-02 10:25

紫薯紫薯紫薯紫薯紫薯
上次由 vickycq 在 2017-06-08 9:20,总共编辑 2 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
onlylove
论坛版主
帖子: 5369
注册时间: 2007-01-14 16:23

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

#9

帖子 onlylove » 2015-01-02 15:07

你还真信EDGE啊……tp的话我觉得能买的就 T X W
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#10

帖子 vickycq » 2015-01-03 22:43

下面轮到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
上次由 vickycq 在 2015-01-11 13:50,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
yxcy
帖子: 418
注册时间: 2011-02-28 19:26

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

#11

帖子 yxcy » 2015-01-04 18:02

嗯,某宝的无风扇迷你主机是你的首选
头像
jackness
帖子: 353
注册时间: 2010-08-02 8:19
系统: windows7旗舰版 ubuntu

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

#12

帖子 jackness » 2015-01-04 18:33

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程序啊?求大神们帮忙,谢谢!
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#13

帖子 vickycq » 2015-01-04 21:04

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)'
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#14

帖子 vickycq » 2015-01-04 21:08

yxcy 写了:嗯,某宝的无风扇迷你主机是你的首选
搞上网本就是为了少折腾,结果折腾的比啥都多。早知道搞个raspberry pi不比这强! :em20
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#15

帖子 vickycq » 2015-01-10 18:41

发现kabini的apu功耗相当低。用python满速下载,cpu占用7-10,整机功耗6W以下。
上次由 vickycq 在 2017-06-08 9:24,总共编辑 2 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复