如何强制禁用 intel_pstate? intel_pstate 在重新启动时启用,即使在 grub 中使用 intel_pstate=disable 选项

HOW TO FORCEFULLY DISABLE intel_pstate? intel_pstate is enabled on reboot even with intel_pstate=disable option in grub

我正在尝试使用 cpu 频率缩放来设置 cpu 频率。在我的系统中,只支持 powersave 、 performance frequency-scaling-governor 。在其他文档中有解释,默认情况下,intel_pstate 是启用的,它只支持 powersave , performance frequency-scaling-governor 和解决方案是禁用 intel_pstate 。 所以我尝试禁用如下

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"
sudo update-grub

重新启动后,intel_pstate 已启用。

所以,我再次在 grub

中做了以下更改
sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable acpi=force"
sudo update-grub

重新启动后,它仍然显示 intel_pstate 已启用。

当我执行以下命令时,

$ cpupower -c all frequency-info

    analyzing CPU 7:
      driver: intel_pstate
      CPUs which run at the same hardware frequency: 7
      CPUs which need to have their frequency coordinated by software: 7
      maximum transition latency:  Cannot determine or is not supported.
      hardware limits: 1.60 GHz - 3.90 GHz
      available cpufreq governors: performance powersave
      current policy: frequency should be within 1.60 GHz and 3.90 GHz.
                      The governor "powersave" may decide which speed to use
                      within this range.
      current CPU frequency: 1.72 GHz (asserted by call to hardware)
      boost state support:
        Supported: yes
        Active: yes
        25500 MHz max turbo 4 active cores
        25500 MHz max turbo 3 active cores
        25500 MHz max turbo 2 active cores
        25500 MHz max turbo 1 active cores

     $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
     intel_pstate


   $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
    performance powersave

由于用户空间调控器不可用,我无法使用cpu-频率缩放(cpupower)。

我正在使用 Intel Core-i7 @3.40GHZ,Linux debian-8.0(内核- 3.16.35)。

如果你能帮我解决这个问题,那将是一个很大的帮助。 提前谢谢你。

编辑 1:

根据 Peter Cordes 的建议,我在启动时手动输入,现在 intel_pstate 被禁用,但没有 cpu 频率调节器或 acpi cpu频率驱动器未激活。

root@debian:~# cpupower -c 0 frequency-info
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: yes
    Active: yes
    25500 MHz max turbo 4 active cores
    25500 MHz max turbo 3 active cores
    25500 MHz max turbo 2 active cores
    25500 MHz max turbo 1 active cores

由于没有可用的 cpu 频率调节器,我无法设置 cpu 频率。当我尝试设置 cpu 频率时收到以下错误消息。

root@debian:~# cpupower -c 0 frequency-set -f 2000000
Setting cpu: 0
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?

抱歉post这是一个答案,但我没有post作为评论的声誉:/

我在尝试禁用我的英特尔酷睿 i7 中的 intel_pstate 驱动程序时遇到了同样的问题。在设法禁用它时,acpi-cpufreq 没有​​正确加载,问题是 SpeedStep 被禁用了。 SpeedStep 允许通过这些微处理器中的软件更改频率,如果禁用它,则只能由硬件触及。您可以通过 BIOS 设置访问此选项。希望对您有所帮助!