Thursday, May 16, 2024
24
rated 0 times [  24] [ 0]  / answers: 1 / hits: 13024  / 3 Years ago, sat, september 25, 2021, 8:10:47

I have observed a problem with Ubuntu 13.04. The problem was not there on 11.10 I used earlier. The maximum CPU frequency is stuck at 2GHzon my Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz (Dell Lattitude E6320)



# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 
2000000

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2701000 2700000 2400000 2200000 2000000 1800000 1600000 1400000 1200000 1000000 800000

# echo 2700000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
2000000


I can set scaling_max_freq to a lower value and that works. I can also go back to 2GHz, but not more than that:



# echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
800000

# echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
2000000

# echo 2200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
2000000


Nothing I do seems to help - I have installed TLP, uninstalled it, checked different kernel versions available in 13.04. I have attached and removed the power supply. I have changed the governors and also used the userspace. Regardless of whether I am on AC or battery, the above problem persists.



I have seen people having similar problems before (here, or here), but that was related to a kernel bug back in 2008 and does not seem to be relevant.



Does anyone know how to fix this?


More From » power-management

 Answers
4

The problem was identical to that described on this blog - the BIOS was limiting my CPU frequency, or at least suggested that Linux limits it:



# cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit 
2000000


To override that you need to type



# echo 1 > /sys/module/processor/parameters/ignore_ppc
# echo -n 2710000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
# cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
2710000


However, in my case the bios_limit seems to be on regardless of whether I run on batteries, or AC. Overriding this limitation works as charm.



You may also need to update grub to force Ubuntu to ignore the bios limiting.
This can be achieved by:



Opening the grub file:



sudo vim /etc/default/grub


Replace GRUB_CMDLINE_LINUX_DEFAULT line:



- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
+ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable processor.ignore_ppc=1"


Update grub:



sudo update-grub


Reboot


[#30884] Sunday, September 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jokaned

Total Points: 315
Total Questions: 116
Total Answers: 119

Location: Somalia
Member since Mon, Feb 27, 2023
1 Year ago
jokaned questions
;