我试图更改笔记本电脑(运行Linux)上的CPU频率,但没有成功。
以下是一些详细信息:
# uname -a
Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux
# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 800 MHz - 2.60 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 2.60 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency is 2.42 GHz (asserted by call to hardware).
(similar information for cpus 1, 2 and 3)
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
我最初是将用户空间调控器内置到内核中,但后来我也尝试将其构建为模块(具有相同的结果)。它是在运行上述命令时加载的(加载时我找不到任何系统消息):
# lsmod
Module Size Used by
cpufreq_userspace 1525 0
(some other modules)
这是我尝试更改频率的命令:
# cpufreq-set -f 800MHz
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?
# cpufreq-set -g userspace
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?
有任何想法吗?
@don_crissti我对cpupower不了解;它的语法有点令人讨厌,但似乎比cpufreq更好。我现在可以设置频率了:)非常感谢,并记得发布答案(除非您真的不想要分数)。
—
aditsu
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
了一下,立即引起了内核恐慌:p然后我重新启动,intel_pstate=disable
现在它正在使用acpi-cpufreq,但我仍然无法设置频率(尽管我不再收到错误消息了)。顺便说一句,为什么不将您的评论作为答案?