设置CPU模式出错
Tofloor
poster avatar
wyl_deepin
deepin
2017-09-16 08:35
Author
处理器设置

设置CPU的频率需要安装cpufrequtils,因此终端执行:

sudo apt-get install cpufrequtils

查看cpu当前频率信息,终端执行:

sudo cpufreq-info

设置模式,对应于{最省电(最低频率),用户控制,最高或最低,正常,最大性能} ,终端执行:

cpufreq-set -g {powersave, userspace, ondemand, conservative, performance}

以上是wiki上的,我照做了,但是最后一步,cpufreq-set -g conservative就出错了,不管是否用sudo都不行,报错如下:Error setting new values. Common errors:- Do you have proper administration rights? (super-user?)- Is the governor you requested available and modprobed?- Trying to set an invalid policy?- Trying to set a specific frequency, but userspace governor is not available,   for example because of hardware which cannot be set to a specific frequency   or because the userspace governor isn't loaded?

Reply Favorite View the author
All Replies
avatar
wyl_deepin
deepin
2017-09-16 08:46
#1
自问自答了,找到办法了

查看当前的调节器:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

更改使用的调节器,需再更改scaling_governor文件(在sudo su条件下):
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Reply View the author
avatar
justforlxz
deepin
2017-09-16 09:01
#2
也可以装linux-cpupower
Reply View the author