linux省电模式
Tofloor
poster avatar
gavin21
deepin
2017-03-01 20:29
Author
windows有省电模式,使用电池时限制限制cpu主频,linux什么时候也能加上这个功能,感觉linux下cpu一直以高性能模式运行,续航能力差。
Reply Favorite View the author
All Replies
avatar
159******54
deepin
2017-03-01 20:41
#1
这个感觉有时挺有用的,希望什么时候能有这个功能
Reply View the author
avatar
Guumi
deepin
2017-03-01 20:54
#2
https://bbs.deepin.org/post/135359
这个感觉有时挺有用的,希望什么时候能有这个功能

是很有用好不!这样带本本出去工作就有可以提升工作时间了
Reply View the author
avatar
DebuggerX
deepin
2017-03-01 21:05
#3
我是小米13.3,开启了Intel_pstate,参考地址:http://tieba.baidu.com/p/3063982429

并写了个脚本利用crontab每分钟执行一次用于在使用电池时自动切换到powersave模式:
  1. #!/bin/sh

  2. flag=`cat /sys/class/power_supply/ADP1/online`
  3. status=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
  4. if [ $flag -eq 1 ]
  5.         then
  6.                 if [ $status = "performance" ]
  7.                         then
  8.                                 echo "keep performance"
  9.                         else
  10.                                 echo "dx" | sudo -S cpufreq-set -g performance
  11.                                 echo "switch performance"
  12.                 fi
  13.         else
  14.                 if [ $status = "powersave" ]
  15.                         then
  16.                                 echo "keep powersave"
  17.                         else
  18.                                 echo "dx" | sudo -S cpufreq-set -g powersave
  19.                                 echo "switch powersave"
  20.                 fi

  21. fi
Copy the Code


现在一般写代码上网续航5个小时多一点,比win下还差一点点,比原本延长了大约半个多小时,有需要的可以参考下……
Reply View the author
avatar
MeowSprite
deepin
2017-03-01 22:03
#4
linux默认的其实会自动调频的,但是不靠谱。如果deepin官方加入用户空间控制工具,那是再好不过了。但是硬件有差异性,感觉最省电还是自己写脚本,在使用电池的时候,关掉不要的硬件。
Reply View the author