我有一个
Processor Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Memory 16305MB (2531MB used)
Machine Type Laptop
Operating System Ubuntu 20.04.3 LTS
在我的/etc/default/grub文件中,我有一行
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=enable"
更改后我做了sudo update-grub但是当我做 cpupower frequency-info 或 cpufreq-info --driver它说使用的驱动程序是intel_cpufreq
rt@sys76:~$ cpufreq-info --driver
intel_cpufreq
rt@sys76:~$ cpupower frequency-info
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us
hardware limits: 800 MHz - 3.40 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1.70 GHz and 3.40 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 798 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
rt@sys76:~$
如何让cpufreq-info --driver 使用intel_pstate驱动程序?
您的处理器 i7-4700MQ 早于 HWP(硬件 Pstate)控制。由内核电源管理组确定的迁移路径,对于这些 Intel 处理器,默认为使用 schedutil 缩放调控器处于被动模式的 intel_pstate CPU 频率缩放驱动程序。为此,完成了此提交:
您实际上正在使用 intel_pstate CPU 频率缩放驱动程序,但它处于被动模式。尝试这个:
然后检查:
如果按预期工作,则将您的 grub 行更改为:
看看它是否以你想要的方式启动。
请注意,CPU 频率缩放驱动程序
intel_cpufreq
只是intel_pstate
被动模式下的驱动程序。例子: