thinkpad e420编译安装thinkfan控制风扇

我的笔记本是win7+linuxmint双系统,在进入linuxmint长时间运行后会明显感觉发热,我发现笔记本风扇的转数过低,导致热量不能发散出去,解决方法就是安装thinkfan风扇控制软件。

1、下载软件包

https://sourceforge.net/projects/thinkfan/

最新版本是1.0beta2

2、编译安装

编译前确保安装过cmake和g++

tar xf thinkfan-1.0_beta2.tar.gz 
cd thinkfan-1.0_beta2
sudo cmake -D USE_ATASMART:BOOL=ON -D CMAKE_BUILD_TYPE:STRING=Debug .
make && make install


3、修改配置文件

echo  "options thinkpad_acpi fan_control=1" > /etc/modprobe.d/thinkfan.conf
echo "START=yes" > /etc/default/thinkfan
sudo apt-get install lm-sensors
sudo sensors-detect #一路yes
find /sys/devices -type f -name "temp*_input"
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
#设置 /etc/thinkfan
vim /etc/thinkfan
#在最后添加如下字段
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input


(0, 0,  50)
(1, 45, 60)
(2, 50, 65)
(3, 58, 68)
(4, 60, 79)
(5, 61, 70)
(7, 65, 32767)

重启电脑,通过sudo thinkfan -n 查看控制状态

原创文章,作者:realmaster,如若转载,请注明出处:http://www.178linux.com/70823

(1)
上一篇 2017-03-09 14:26
下一篇 2017-03-09 14:41

相关推荐

  • LVM逻辑卷管理器(Logical Volume Manager)

    逻辑卷管理器(Logical Volume Manager) 简介      LVM的做法是将几个物理的分区通过软件组合成为一块看起来是独立的大磁盘(VG),然后将这块大磁盘再分成可以使用的分区(LV),最终就能够挂载使用了。内部通过PE来进行扩展或缩小。 PV(PhysicalVolume)物理卷 用fdisk命令调整系统标识…

    Linux干货 2016-09-01
  • 管道、重定向和用户管理练习

    前面一章学习了硬链接和软链接,回顾上一章节内容:    硬链接:在inode表中记录一个条目,所有的元数据和原始文件元数据相同。        ·相当于两个名字。        ·删除原始文件,另一个条目也能够…

    Linux干货 2016-08-04
  • 第三周博客作业

    who useradd usermod groupadd

    Linux干货 2017-12-17
  • N22-第四周博客作业

    1、复制/etc/skel目录为/home/tuser1,要求/home/tuser1及其内部文件的属组和其它用户均没有任何访问权限。 [root@localhost ~]# ll -d  /etc/skel/drwxr-xr-x. 3 root root 74 3月&…

    Linux干货 2016-09-19
  • Linux第六周学习博客作业

    对第六周学习的内容进行总结

    2018-01-14
  • 文件查找与解压缩

    文件查找 脚本文件名的查询 which(寻找执行文件) which [-a] command -a :将所有由PATH目录中可以找到的命令均列出,而不只是第一个被找到的命令名称 文件名的查找 文件查找:实时查找:遍历所有文件进行条件匹配;(find)非实时查找:根据索引查找;(whereis、locate) whereis whereis [-bmsu] […

    Linux干货 2017-04-08