我正在尝试设置运行ubuntu 14.04的x86双核系统的频率。根据这个命令,
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2333000 2000000
我只有2和2.33Ghz可用。但是,我想将频率设置为1GHz以观察一些基准测试。命令
sudo cpupower frequency-set -u 1000000
给出错误。
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?
我还尝试将缩放调控器从ondemand更改为用户空间。我仍有相同的可用频率。如何将频率设置为1GHz?
答案 0 :(得分:1)
请查看解决方案:
CPU Frequency Scaling In Ubuntu
插入p4_clockmod模块:
sudo modprobe p4_clockmod
sudo modprobe p4_clockmod,现在,将以下行添加到/etc/modules
以确保CPU时钟缩放模块从系统启动。
p4_clockmod
最后,如果你(就像我一样)对笔记本电脑感到厌烦 需要快速增加功率时“滞后”,您可以手动设置 你希望它运行的频率。有时250Mhz不是 够!
sudo cpufreq-selector -f 1000000
将CPU频率设置为1GHz - 简单吗?