• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
code_edu
TO BE THE TOP 2 AT EDU CODE .
博客园    首页    新随笔    联系   管理    订阅  订阅

对linux的硬件(风扇)协调

这PC运行了一天,风扇太安静了,明明摸上去是热的!看来需要改进硬件智能化。

(1)sudo apt-get install thinkfan

(2)sudo sh -c 'echo coretemp >> /etc/modules' (后面改为/etc/modules-load.d )

(3)sudo modprobe coretemp 

(4)root身份编辑/etc/thinkfan.conf ,添加

 hwmon /sys/devices/virtual/thermal/thermal_zone0/temp  #配置传感器

tp_fan /proc/acpi/ibm/fan  #配置风扇控制接口

(0, 0, 42)

(1, 40, 47)

(2, 45, 52)

(3, 50, 57)

(4, 55, 62)

(5, 60, 66)

(6, 64, 70)

(7, 68, 74) # 电脑风扇最高84摄氏度,低个10度不触线!

(127, 72, 32767) #在默认的相似语句前加#。

(5)

touch /etc/modprobe.d/thinkfan.conf 

sudo sh -c 'echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkfan.conf'  

(6)

sudo modprobe -r thinkpad_acpi 

sudo modprobe thinkpad_acpi 

(7)

root权限修改/etc/default/thinkfan中no 为yes
(8)

sudo /etc/init.d/thinkfan start
(9)

sudo cat /proc/acpi/ibm/fan

(10)

sensors

——————————————————————————
  

REF:

https://forum.thinkpads.com//viewtopic.php?t=119546

https://zhidao.baidu.com/question/511693705.html

posted @ 2017-07-30 21:57  code_edu  阅读(354)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3