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)
realmasterrealmaster
上一篇 2017-03-09
下一篇 2017-03-09

相关推荐

  • 文本处理(1)

    文本处理工具最全整理上半部

    Linux干货 2018-03-15
  • 系统基础之用户,组管理作业题

    、创建testuser uid 1234,主组:bin,辅助组:root,ftp,shell:/bin/csh home:/testdir/testuser 1 2 3 [root@wen-7 ~]# useradd -u 1234 -g bin -G root,ftp&nbsp…

    Linux干货 2016-08-04
  • if、case 语法

    1. 条件选择 if 语句         选择执行:              单分支      &nbs…

    Linux干货 2016-08-22
  • 搭建简单的ftp和http

    搭建简单的ftp和http 我们主要尝试光盘和编译两种方式安装 ftp 首先我们先安装ftp ftp可以用来做文件传输,也可以搭建ftp作为我我们的网络yum源 首先我们要先把镜像连接到我们的Linux中 进入/etc/yum.repos.d/创建一个.repo结尾的文件,在里面配置自己的yum源 [base] baseurl=file:///misc/cd…

    2017-06-15
  • 从shell眼中看世界–展开和引用

    这篇博客的目的在于加深对于展开和引用的理解,阐释展开和引用之间联系。 ‘ ‘ :强引用,其中的变量引用不会被替换为变量值,而保持原字符串       ” “:弱引用,其中的变量引用会被替换为变量值    如果之前对于’ …

    Linux干货 2017-04-16
  • 用户和用户组相关的配置文件

    用户和用户组相关的配置文件 一、与用户相关的配置文件 一般来说,与用户配置相关的几个文件如下: l  /etc/passwd: 最重要的文件,存储着用户的用户名,UID,Shell等信息 l  /etc/shadow: 用户密码文件,使用sha-1算法加密存储(注意该文件的权限) l  /etc/skel/: 用户的模板文件,新…

    Linux干货 2016-10-23