TLP+cpufrequtils(linux-cpupower) 延长笔记本电池续航时间
Tofloor
poster avatar
186******60
deepin
2017-11-13 06:59
Author
本帖最后由 deepinlwh 于 2017-11-22 13:10 编辑

一、安装 sudo apt-get install tlp cpufrequtils 或者 linux-cpupower 套件。
二、TLP官方使用说明:http://linrunner.de/en/tlp/docs/tlp-configuration.html
三、cpufrequtils用法:sudo cpufreq-set -g {powersave | ondemand | performance | userspace | conservative}

四、酷睿CPU的用户建议启用Intel_pstate以取代系统默认的cpufreq。修改etc/default/grub文件,修改为GRUB_CMDLINE_LINUX_DEFAULT="quiet     splas  intel_pstate=enable",重启电脑。安装thermald工具防止cpu过热损坏。这两个工具皆为intel官方项目,请放心使用。

五、cpupower套件用法:cpupower frequency-set -g {powersave | performance}  配合 inter_pstate 使用。

六、运行tlp:sudo tlp start , sudo tlp-stat -s 检查tlp是否成功开启。
七、TLP默认配置效果并不是很好,好多参数需要我们手动开启,具体看附件,直接用文本软件打开查看

八、附件下载完成后,去掉后缀,直接用文本软件打开。









Reply Favorite View the author
All Replies
avatar
woodelf
deepin
2017-11-13 07:58
#1
core2以上的CPU建议使用linux-cpupower来替代cpufrequtils,后者在2012年就已经不维护了,无法保证跟目前内核的适配性,前者是kernel.org的子项目,作为后者的替代,目前一直在维护,紧跟最新内核版本发布。
另外需要注意,Intel在3.11版本内核(我记得是)引入了新的电源管理驱动intel_pstate。启用以后,就只剩下powersave和performance两种策略了,用来替代传统的ondemand等策略,一般performance策略就可以了。
Reply View the author
avatar
风吹过的绿洲
deepin
2017-11-22 07:07
#2
上传的文件已损坏。。。。,能再上传一份么
Reply View the author
avatar
132******62
deepin
2017-11-22 17:14
#3
https://bbs.deepin.org/post/148140
上传的文件已损坏。。。。,能再上传一份么

下载后,删除zip后缀名就可以了
Reply View the author
avatar
159******53
deepin
2018-01-04 04:36
#4
好东西收藏了
Reply View the author
avatar
junmoxiao
deepin
2018-02-26 07:39
#5
38行写错了吧,ac情况下也是省电模式了
CPU_SCALING_GOVERNOR_ON_AC=powersave

改成performance
Reply View the author
avatar
deepin4king
deepin
2018-02-26 19:11
#6
powertop,比这个更实用
Reply View the author
avatar
186******60
deepin
2018-02-27 19:04
#7
https://bbs.deepin.org/post/148140
38行写错了吧,ac情况下也是省电模式了
CPU_SCALING_GOVERNOR_ON_AC=powersave

没影响
Reply View the author
avatar
junmoxiao
deepin
2018-02-27 21:53
#8

有影响,明显可以感觉到系统迟钝了
Reply View the author
avatar
186******60
deepin
2018-02-27 22:15
#9
https://bbs.deepin.org/post/148140
有影响,明显可以感觉到系统迟钝了

启用intel_pstate的没事呀,当然使用系统默认调度驱动的话,确实是有影响。
Reply View the author
avatar
lxflhy
deepin
2018-02-27 23:20
#10
本帖最后由 lxflhy 于 2018-2-27 15:21 编辑

~$ cpupower frequency-set -g {powersave | performance}
bash: performance}: 未找到命令
Subcommand frequency-set needs root privileges

这个什么情况?

另:那个配置文件放到哪里?

本人小白,见笑!!!!!
Reply View the author
avatar
186******60
deepin
2018-02-28 03:24
#11
https://bbs.deepin.org/post/148140
~$ cpupower frequency-set -g {powersave | performance}
bash: performance}: 未找到命令
Subcommand fre ...

以管理员权限执行这个命令:1、省电模式执行 sudo  cpupower frequency-set -g powersave    2、火力全开模式执行 sudo cpupower frequency-set -g performance  。  配置文件的位置在 /etc/default/tlp  。
Reply View the author
avatar
junmoxiao
deepin
2018-02-28 04:02
#12
io调度算法我这个默认只有none和mq-deadline
Reply View the author
avatar
HualetWang
deepin
2018-06-10 23:20
#13
使用这个要小心点,可能导致有些可以用的驱动因为省电变得不能用。
Reply View the author