How to change CPU frequency (cannot change with cpufreq-set :-(

Hello

On win7 if cpu’s are not used frequency goes to 800MHz instead of 1.8GHz on my laptop (i7-2670QM)
On Opensuse 12.1 this is not so even agressive power save is selected…

I cannot set CPU clock to 800MHz even supported (in fact opensuse should do that for me…)

Module acpi_cpufreq is loaded
I cannot change with
cpufreq-set -f 800MHz
even scaling_governor is set to userspace (I have set it with echo userspace > /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor)
nor with
cpufreq-set -c 0 -u 800MHz
There is no error message but cpufreq-info gives still 1.8GHz
Nobody has this issue?

For this reason my fans are always heavily on :frowning:

Thanks for any hints

So I guess I would ask if you tried this bash script to see what it can do: C.F.U. - CPU Frequency Utilitiy - Version 1.10 - For use with the cpufrequtils package - Blogs - openSUSE Forums

I have a blog on how to set the overall CPU speed method to use in YaST: YaST Power Management - Control Your CPU Energy Usage How To & FAQ - Blogs - openSUSE Forums

It is possible to set the default CPU speed Govornor in your kernel, before you compile your own. See my bash script here: S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.62 - Blogs - openSUSE Forums

Thank You,

The cpf util gives me a value of current cpu speed which is wrong.
CPU Speed: 800 GHz
but cpufreq-info and i7z_GUI gives 1.8-2.3GHz which is true …
I cannot lower the speed to 800GHz :frowning:

It was not clear to me if you installed cfu or not. When I run this on my PC. here is what I get:

http://paste.opensuse.org/view/download/3965887

Can you say what you get? I used SuSE Paste to post this image: SUSE Paste AND selected the Image option in the top right corner as it defaults to Code.
In your message, select the Insert Image option & copy the Download Link location (top right corner), after your image is posted in SuSE Paste.

Thank You,

Yes I have installed cfu. I set gobernador and frequency with
for i in 0 1 2 3 4 5 6 7;do cpufreq-set -g powersave -c $i;done
cpufreq-set -f 800MHz
and
for i in 0 1 2 3 4 5 6 7;do cpufreq-set -u 800MHz -c $i;done

cpu-info gives right limits but current cpu is still 1.8GHz not 800MHz
even limit are 800-800MHz. Here output of cpu-info of cpu7
 
analyzing CPU 7:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
  CPUs which need to have their frequency coordinated by software: 7
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 800 MHz and 800 MHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.80 GHz (asserted by call to hardware).
 
i7z shows too that current cpu speed is 1.8GHz

cfu shows the following which is what i set but not what’s really used …

http://paste.opensuse.org/15625789

Here is what i7z shows

SUSE Paste

Yes I have installed cfu. I set gobernador and frequency with
for i in 0 1 2 3 4 5 6 7;do cpufreq-set -g powersave -c $i;done
cpufreq-set -f 800MHz
and
for i in 0 1 2 3 4 5 6 7;do cpufreq-set -u 800MHz -c $i;done

cpu-info gives right limits but current cpu is still 1.8GHz not 800MHz
even limit are 800-800MHz. Here output of cpu-info of cpu7
 
analyzing CPU 7:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
  CPUs which need to have their frequency coordinated by software: 7
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 800 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 800 MHz and 800 MHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.80 GHz (asserted by call to hardware).
 
i7z shows too that current cpu speed is 1.8GHz

cfu shows the following which is what i set but not what’s really used …

http://paste.opensuse.org/images/59258403.jpg

Here is what i7z shows

http://paste.opensuse.org/images/73154298.jpg

BTW: The same done in the post above with cpu-set on opensuse 11.4 does work right i.e. cpu is set to 800MHz and stays with this frequency!!

In order to use the same speed, ie 800 MHZ all of the time, you must set the Governor to USERSPACE, not POWERSAVE as shown above else, the speed can be changed based on the Governor used. Change your selection to USERSPACE with a speed of 800 MHZ and then see what you get.

Thank You,

Thanks that did the job!! I used several comninations of max cpu frequ. etc. with differente governors
but because on os 11.4 it did work with powersave I thought this is the right way :frowning:
Nevertheless my fan is still working to much but this seems to be an other problem…
Thanks again!!

That is great news to hear. I just made another post on CPU heat build up. It might not hurt to read through that as well I suggest.

http://forums.opensuse.org/english/get-technical-help-here/laptop/473122-cpu-fan-control-acer-aspire-5715z-heat-problem.html

Thank You,

Ok will read it, thanks.
What I have already tried was to set pcie_aspm=force as kernel boot args but this does not change anything …
sensors give my low tempratures

acpitz-virtual-0
Adapter: Virtual device
temp1: +65.0°C (crit = +99.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1: +65.0°C

but the fan is really noisy and disturbing …
It seems that i915 driver is active not radeon one (have AMD Radeon HD 6700M card)…

Greetings

try -g option
cpufreq-set -g performance
cpufreq-set -g powersave

I have the exactly same problem with my Ubuntu 12.04!!! I thought I would never find someone having the same issue. How did you solve this problem? cpu-set made it right for you?

So it’s a hybrid system, very likely it’s the discret ATI card’s fan you hear, have you tried the latest ATI catalyst driver?
Linux Hybrid Graphics: Improved support for AMD hybrid graphics users

Now the frequencies match!add the kernel boot options: i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 pcie_aspm=force

With kernel 3.4 this issue doesn’t happen and it’s not needed to put those boot options. You can set frequency to 800MHz without problems. I compiled, myself, the 3.4.3 kernel and proved it. If you do a cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq, you’ll see that both frequencies will be 800000 and not 1800000 and 800000 as it was before. You can use powertop or i7z to check it out too.