在最近的例行升级之后,我注意到我无法手动更改 CPU 频率。系统会自动执行此操作,并选择尽可能高的频率,这会导致它运行过热(它已经存在加热问题)。
我发现的大多数修复都是针对 2010 年或更早版本的线程,并且不再适用。
这是输出cpufreq-info
:
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.80 GHz
available frequency steps: 1.80 GHz, 1.80 GHz, 1.20 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.80 GHz and 1.80 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.80 GHz.
cpufreq stats: 1.80 GHz:77.10%, 1.80 GHz:0.01%, 1.20 GHz:22.86%, 800 MHz:0.02% (74)
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.80 GHz
available frequency steps: 1.80 GHz, 1.80 GHz, 1.20 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.80 GHz and 1.80 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.80 GHz.
cpufreq stats: 1.80 GHz:77.09%, 1.80 GHz:0.02%, 1.20 GHz:22.88%, 800 MHz:0.02% (73)
的输出cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
:
1801000
原来问题是
cpufreqd
,当我安装 Ubuntu MATE Desktop 时,它被拉进来了。删除它会将控制权交还给系统,现在我可以使用我的系统而不会出现不必要的过热。似乎没有将 scaling_min_freq 设置为较低的频率,从而阻止调控器访问这些频率。为了尝试查看是否可以对其进行操作,请在终端中输入以下命令:
如果这产生了所需的结果,您可以将脚本中的循环放入 /etc/rc.local。如果没有,那么我将重新启动系统以返回到已知的可操作状态。在我的系统上,我还需要添加
echo 1 > /sys/module/processor/parameters/ignore_ppc
我在循环之前执行的行。