Author Topic: cpufreq problems.  (Read 4134 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: cpufreq problems.
« Reply #15 on: June 23, 2011, 04:08:04 PM »
Well I guess my laptop will continue to run at full blast cause noones knows how to fix this.  That sux.    ??? ??? :-\ :'(

Hi,

I have been told some cpu nowadays have it all set inside, and trying to manage it logically is not possible. I suggest you look at the bios settings, and check if there is any update available for it.

I suppose you also tried the command lines which have been suggested to add in the /etc/rc.local file ?

Have you told us what brand and model machine is your's ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #16 on: June 23, 2011, 05:45:14 PM »
yea I have tried everything posted in here.  I have a post in the laptop section also and nothing has fixed this.  its strange cause in Windows I don't have this problem.  I hate Windows and almost refuse to use it but at the same time my lap top is wide open and eventually its gonna over heat and take a dump on me, I need to fix this.

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: cpufreq problems.
« Reply #17 on: June 23, 2011, 06:15:41 PM »
I guess I will use it. I like my laptop to use 100% of it's power but... heat is mighty ;)

I ran cpufreq-set -g ondemand as root and it lowered the temp about 10 degrees Celsius.

Quote
[andrzejl@wishmasbell ~]$ su
Password:
[root@wishmasbell andrzejl]# cpufreq-set -g ondemand
[root@wishmasbell andrzejl]# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 109 us.
  hardware limits: 800 MHz - 1.80 GHz
  available frequency steps: 1.80 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 800 MHz and 1.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
[root@wishmasbell andrzejl]#

So I will add it to the /etc/rc.local ;).

Regards.

Andy

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #18 on: June 23, 2011, 06:24:14 PM »


I guess I will use it. I like my laptop to use 100% of it's power but... heat is mighty ;)

I ran cpufreq-set -g ondemand as root and it lowered the temp about 10 degrees Celsius.

Quote
[andrzejl@wishmasbell ~]$ su
Password:
[root@wishmasbell andrzejl]# cpufreq-set -g ondemand
[root@wishmasbell andrzejl]# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 109 us.
  hardware limits: 800 MHz - 1.80 GHz
  available frequency steps: 1.80 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 800 MHz and 1.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
[root@wishmasbell andrzejl]#

So I will add it to the /etc/rc.local ;).

Regards.

Andy

I have tried this setting and it does absolutely nothing.

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #19 on: June 23, 2011, 06:27:38 PM »
Code: [Select]
[brian@localhost ~]$ su
Password:
[root@localhost brian]# cpufreq-set -g ondemand
[root@localhost brian]# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: p4-clockmod
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.00 ms.
  hardware limits: 233 MHz - 1.87 GHz
  available frequency steps: 233 MHz, 467 MHz, 700 MHz, 933 MHz, 1.17 GHz, 1.40 GHz, 1.63 GHz, 1.87 GHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 700 MHz and 1.87 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.87 GHz (asserted by call to hardware).
[root@localhost brian]#
As you can see it changes nothing.  The only governor thats chenges the settings is the powersave one and for some reason it lags the comp down.

Code: [Select]
[root@localhost brian]# cpufreq-set -g powersave
[root@localhost brian]# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: p4-clockmod
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.00 ms.
  hardware limits: 233 MHz - 1.87 GHz
  available frequency steps: 233 MHz, 467 MHz, 700 MHz, 933 MHz, 1.17 GHz, 1.40 GHz, 1.63 GHz, 1.87 GHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 700 MHz and 1.87 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 700 MHz (asserted by call to hardware).
[root@localhost brian]#
See!!

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: cpufreq problems.
« Reply #20 on: June 23, 2011, 06:28:33 PM »
Quote
current CPU frequency is 700 MHz (asserted by call to hardware).

Powersave works for You. Good.

Ondemand is not being modprobed... Weird.

Try

Code: [Select]
modprobe cpufreq_ondemand
as root. See what this gives You.

Andy
« Last Edit: June 23, 2011, 06:32:41 PM by AndrzejL »

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #21 on: June 23, 2011, 06:34:26 PM »
yes the powersave works but lags the comp down and i cant seem to get it to load at boot up.  Ill try the modrobe ondemand, i think i already did earlier but ill try again.

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #22 on: June 23, 2011, 06:40:27 PM »
Code: [Select]
root@localhost brian]# modprobe cpufreq_ondemand
[root@localhost brian]# cpufreq-set -g ondemand
[root@localhost brian]# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: p4-clockmod
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.00 ms.
  hardware limits: 233 MHz - 1.87 GHz
  available frequency steps: 233 MHz, 467 MHz, 700 MHz, 933 MHz, 1.17 GHz, 1.40 GHz, 1.63 GHz, 1.87 GHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 700 MHz and 1.87 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.87 GHz (asserted by call to hardware).
[root@localhost brian]#
Still ending with the same result

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: cpufreq problems.
« Reply #23 on: June 23, 2011, 06:45:11 PM »
I would also need some more info:

Did You tried modprobing any other cpu driver?

What kernel are You running?

The available cpu drivers are:

Quote
[root@wishmasbell andrzejl]# ls --full /lib/modules/2.6.38.8-pclos1.a64/kernel/arch/x86/kernel/cpu/cpufreq/
total 84
-rw-r--r-- 1 root root 5505 2011-06-04 09:58:41.000000000 +0100 acpi-cpufreq.ko.gz
-rw-r--r-- 1 root root 3306 2011-06-04 09:58:41.000000000 +0100 cpufreq-nforce2.ko.gz
-rw-r--r-- 1 root root 3240 2011-06-04 09:58:41.000000000 +0100 e_powersaver.ko.gz
-rw-r--r-- 1 root root 3206 2011-06-04 09:58:41.000000000 +0100 gx-suspmod.ko.gz
-rw-r--r-- 1 root root 7975 2011-06-04 09:58:41.000000000 +0100 longhaul.ko.gz
-rw-r--r-- 1 root root 2368 2011-06-04 09:58:41.000000000 +0100 longrun.ko.gz
-rw-r--r-- 1 root root 1544 2011-06-04 09:58:41.000000000 +0100 mperf.ko.gz
-rw-r--r-- 1 root root 3106 2011-06-04 09:58:41.000000000 +0100 p4-clockmod.ko.gz
-rw-r--r-- 1 root root 3364 2011-06-04 09:58:41.000000000 +0100 pcc-cpufreq.ko.gz
-rw-r--r-- 1 root root 2563 2011-06-04 09:58:41.000000000 +0100 powernow-k6.ko.gz
-rw-r--r-- 1 root root 5426 2011-06-04 09:58:41.000000000 +0100 powernow-k7.ko.gz
-rw-r--r-- 1 root root 9636 2011-06-04 09:58:41.000000000 +0100 powernow-k8.ko.gz
-rw-r--r-- 1 root root 4068 2011-06-04 09:58:41.000000000 +0100 speedstep-centrino.ko.gz
-rw-r--r-- 1 root root 3150 2011-06-04 09:58:41.000000000 +0100 speedstep-ich.ko.gz
-rw-r--r-- 1 root root 3288 2011-06-04 09:58:41.000000000 +0100 speedstep-lib.ko.gz
-rw-r--r-- 1 root root 3296 2011-06-04 09:58:41.000000000 +0100 speedstep-smi.ko.gz
[root@wishmasbell andrzejl]#

Also... do You have powernowd apmd acpi acpid installed?

Also - are You fully upgraded?

Also what version are You running?

Also did You tried booting up from the PCLinuxOS 2011.6 test 2 livecd and see what module is used for Your CPU and is ondemand working on the LiveCD?

Regards.

Andy
« Last Edit: June 23, 2011, 06:53:38 PM by AndrzejL »

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #24 on: June 23, 2011, 06:49:41 PM »
No i didnt try to modprobe another cpu driver.  I am fully updated.  Im using the latest kernel available 2.6.38.8.  I just found out that the p4-clockmod driver only supports the performance and powersave governors. Had all installed but the powernowd
« Last Edit: June 23, 2011, 06:56:05 PM by redjama »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: cpufreq problems.
« Reply #25 on: June 23, 2011, 06:52:24 PM »
No i didnt try to modprobe another cpu driver.  I am fully updated.  Im using the latest kernel available 2.6.38.8.  I just found out that the p4-clockmod driver only supports the performance and powersave governors.

This is why You could not used ondemand correct. This is why i was asking did You tried modprobing any other cpu driver.

Andy

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #26 on: June 23, 2011, 06:57:46 PM »
Code: [Select]
[root@localhost brian]# ls --full /lib/modules/2.6.38.8-pclos1.a64/kernel/arch/x86/kernel/cpu/cpufreq/
ls: cannot access /lib/modules/2.6.38.8-pclos1.a64/kernel/arch/x86/kernel/cpu/cpufreq/: No such file or directory
[root@localhost brian]#

How do i modprobe another driver???

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #27 on: June 23, 2011, 06:59:55 PM »
and once i do the moprobe how do i get it to load al the time and not the p4-clockmod driver??

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: cpufreq problems.
« Reply #28 on: June 23, 2011, 07:04:34 PM »
Modprobe just the name of it.

The path will be:

Quote
/lib/modules/YourKernel/kernel/arch/x86/kernel/cpu/cpufreq/

Keep in mind that not to many of them will actually work with Your CPU.

You modprobe them by running

Code: [Select]
modprobe nameofthemodulewithouttheextension
as root lets say

Code: [Select]
modprobe p4-clockmod
If any of them works without errors - (also test by using cpufreq-info) edit the /etc/modprobe.preload.d/cpufreq file and replace p4-clockmod entry there with the other module's name.

Chances are p4-clockmod is the only one for Your CPU then You must stick to it and live with 100% or lag...

Regards.

Andy
« Last Edit: June 23, 2011, 07:07:01 PM by AndrzejL »

Offline redjama

  • Sr. Member
  • ****
  • Posts: 350
Re: cpufreq problems.
« Reply #29 on: June 23, 2011, 07:06:32 PM »
Code: [Select]
[root@localhost home]# ls --full /lib/modules/2.6.38.8-pclos1.bfs/kernel/arch/x86/kernel/cpu/cpufreq/
total 88
-rw-r--r-- 1 root root 5570 2011-06-04 04:14:53.000000000 -0500 acpi-cpufreq.ko.gz
-rw-r--r-- 1 root root 3287 2011-06-04 04:14:53.000000000 -0500 cpufreq-nforce2.ko.gz
-rw-r--r-- 1 root root 3254 2011-06-04 04:14:53.000000000 -0500 e_powersaver.ko.gz
-rw-r--r-- 1 root root 3226 2011-06-04 04:14:53.000000000 -0500 gx-suspmod.ko.gz
-rw-r--r-- 1 root root 8269 2011-06-04 04:14:53.000000000 -0500 longhaul.ko.gz
-rw-r--r-- 1 root root 2391 2011-06-04 04:14:53.000000000 -0500 longrun.ko.gz
-rw-r--r-- 1 root root 1554 2011-06-04 04:14:53.000000000 -0500 mperf.ko.gz
-rw-r--r-- 1 root root 3117 2011-06-04 04:14:53.000000000 -0500 p4-clockmod.ko.gz
-rw-r--r-- 1 root root 3396 2011-06-04 04:14:53.000000000 -0500 pcc-cpufreq.ko.gz
-rw-r--r-- 1 root root 2566 2011-06-04 04:14:53.000000000 -0500 powernow-k6.ko.gz
-rw-r--r-- 1 root root 5443 2011-06-04 04:14:53.000000000 -0500 powernow-k7.ko.gz
-rw-r--r-- 1 root root 9668 2011-06-04 04:14:53.000000000 -0500 powernow-k8.ko.gz
-rw-r--r-- 1 root root 4087 2011-06-04 04:14:53.000000000 -0500 speedstep-centrino.ko.gz
-rw-r--r-- 1 root root 3157 2011-06-04 04:14:53.000000000 -0500 speedstep-ich.ko.gz
-rw-r--r-- 1 root root 3289 2011-06-04 04:14:53.000000000 -0500 speedstep-lib.ko.gz
-rw-r--r-- 1 root root 3253 2011-06-04 04:14:53.000000000 -0500 speedstep-smi.ko.gz
[root@localhost home]#