无法更改英特尔睿频加速(/sys/devices/system/cpu/intel_pstate/no_turbo/无法访问)

无法更改英特尔睿频加速(/sys/devices/system/cpu/intel_pstate/no_turbo/无法访问)

尝试跟随这个答案在下面在 ubuntu 中禁用 Intel Turbo Boost

为了看到驱动程序:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
intel_pstate
intel_pstate
intel_pstate
intel_pstate

然后,查询涡轮增压启用或禁用状态:

cat /sys/devices/system/cpu/intel_pstate/no_turbo
1

这就意味着它已开启。

要禁用它,我收到“操作不允许”:

echo "0" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
[sudo] password for cipeos: 
0
tee: /sys/devices/system/cpu/intel_pstate/no_turbo: Operation not permitted

尝试在答案 ( sudo echo "0" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo) 下的评论中提出建议,我得到了相同的结果。甚至sudo su在此之前也得到了相同的结果。

尝试手动查找文件:

sudo gedit /sys/devices/system/cpu/intel_pstate/no_turbo

它只有一行:

1

当我尝试将其更改为 0 并保存时,系统显示:“无法保存文件“/sys/devices/system/cpu/intel_pstate/no_turbo”。”和“您没有保存文件所需的权限。请检查您是否正确输入了位置,然后重试。”

在此处输入图片描述

答案1

turbo 启用或禁用标志可能会产生误导。摘自Documentation/cpu-freq/intel-pstate.txt源代码:

Sysfs will show :
        max_perf_pct:100, which corresponds to 1 core ratio
        min_perf_pct:24, max_efficiency_ratio / max 1 Core ratio
        no_turbo:0, turbo is not disabled
        num_pstates:26 = (max 1 Core ratio - Max Efficiency Ratio + 1)
        turbo_pct:39 = (max 1 core ratio - max non turbo ratio) / num_pstates

因此,在这种情况下,“1”表示 turbo 已禁用。对于大多数计算机,可以在 BIOS 中禁用 turbo,在这种情况下,无法覆盖 Sysfs 中的指示标志。示例 1(在 BIOS 中禁用 turbo):

$ echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
0
tee: /sys/devices/system/cpu/intel_pstate/no_turbo: Operation not permitted

示例 2(在 BIOS 中启用了 turbo):

$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
1
$ echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
0
$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
0

相关内容