Ubuntu 18.04安装tlp实现电源管理,解决风扇狂转问题


Ubuntu 18.04系统的风扇管理就没有Windows强大,有些机器的的噪音很影响平时的工作,又不想换风扇,现在整理了这篇文章解决Ubuntu电源管理的一些问题。

更多参考:https://www.linuxboy.net/Linux/2017-12/149232.htm

系统: Ubuntu 18.04.4 LTS

问题:CPU风扇声音大

解决:安装tlp

目前,tlp是我试过的唯一可以在18.04,16.04,14.04完美控制CPU和风扇的软件

[linuxidc@linux:~/www.linuxboy.net]$ sudo add-apt-repository ppa:linrunner/tlp

Ubuntu 18.04安装tlp实现电源管理,解决风扇狂转问题

[linuxidc@linux:~/www.linuxboy.net]$ sudo apt-get install tlp tlp-rdw

Ubuntu 18.04安装tlp实现电源管理,解决风扇狂转问题

配置

sudo gedit  /etc/tlp.conf

会出现配置文件,要使该行生效的意思,就要去掉改行前面的"#"

# Set to 0 to disable, 1 to enable TLP.
TLP_ENABLE=1

Ubuntu 18.04安装tlp实现电源管理,解决风扇狂转问题

设置数值=1,确保TLP是生效的.

以下也是需要修改的地方

# Set Intel P-state performance: 0..100 (%)
# Limit the max/min P-state to control the power dissipation of the CPU.
# Values are stated as a percentage of the available performance.
# Requires an Intel Core i processor with intel_pstate driver.
CPU_MIN_PERF_ON_AC=0
CPU_MAX_PERF_ON_AC=60
CPU_MIN_PERF_ON_BAT=0
CPU_MAX_PERF_ON_BAT=30

Ubuntu 18.04安装tlp实现电源管理,解决风扇狂转问题

这个选项前面原先是有#的,在修改好CPU_MAX_PERF_ON_AC后保存退出。

最后, 在终端输入,启动电源模式

sudo tlp ac

如果你想进一步设置,比如说关闭CPU的睿频功能,改成0即可

# Set the CPU "turbo boost" feature: 0=disable, 1=allow
# Requires an Intel Core i processor.
# Important:
# - This may conflict with your distribution's governor settings
# - A value of 1 does *not* activate boosting, it just allows it
CPU_BOOST_ON_AC=0
CPU_BOOST_ON_BAT=0

如果没效果,请重启电脑,或者看看是不是开启了ac模式,或者是不是#忘记去掉了,这时电脑的声音应该安静下来了。

linuxboy的RSS地址:https://www.linuxboy.net/rssFeed.aspx

本文永久更新链接地址:https://www.linuxboy.net/Linux/2020-03/162592.htm

相关内容