-
HOWTO: CPU Frequency Scaling w/ Kernel Module
I thought I would write a little howto on how to get cpu frequency scaling to work directly with the kernel modules. These modules are generally more efficient for performance computing and battery life.
Prerequisites
kernel >= 2.6.9
Step 1: Enable BIOS Support
Enter your BIOS at boot and make sure Cool'n'Quiet (AMD) or SpeedStep (Intel) is enable for you CPU. Some BIOS may not have option at all. If that is the case it is probably enabled by default. Other BIOS may have the option but it is listed as another name altogether. If that is the case check your BIOS manual for more info.
Step 2: Remove Userspace Scaling Software
powernowd
Code:
sudo apt-get remove powernowd
cpudyn
Code:
sudo apt-get remove cpudyn
Step 3: Install CPU Module
Identify your cpu type by runnig the command
You can also Check the following links
AMD CPU Chart - http://www.tomshardware.com/2005/11/...05/page20.html
Intel CPU Chart - http://www.tomshardware.com/2005/11/...05/page21.html
AMD Sempron/Athlon/MP ( K7 )
Socket Types: A, Slot A
Code:
sudo modprobe powernow-k7
AMD Duron/Sempron/Athlon/Opteron 64 ( K8 )
Socket Types: 754, 939, 940, S1 ( 638 ), AM2 ( 940 ), F ( 1207 )
Code:
sudo modprobe powernow-k8
Intel Core Duo
Code:
sudo modprobe speedstep-centrino
Intel Pentium M
Code:
sudo modprobe speedstep-centrino
Others (Unknown)
I'm not entirely sure which cpus are supported using this module. If your cpu doesn't work with one of the above methods try this one.
Code:
sudo modprobe acpi-cpufreq
Step 4: Scaling Modules
Code:
sudo modprobe cpufreq_conservative
sudo modprobe cpufreq_ondemand
sudo modprobe cpufreq_powersave
sudo modprobe cpufreq_stats
sudo modprobe cpufreq_userspace
Step 5: Testing/Configuration
Show Available Governors
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
You should see output similar to
Code:
powersave conservative ondemand performance
conservative
Description: CPU frequency is scaled based on load in incremental steps up and down.
Code:
sudo -s
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Advanced Configuration Options
Code:
cd /sys/devices/system/cpu/cpu0/cpufreq/conservative
ondemand
Description: CPU frequency is scaled based on load.
Code:
sudo -s
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Advanced Configuration Options
Code:
cd /sys/devices/system/cpu/cpu0/cpufreq/ondemand
performance
Description: CPU only runs at max frequency regardless of load.
Configuration Dir: N/A
Code:
sudo -s
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
Description: CPU only runs at min frequency regardless of load.
Configuration Dir: N/A
Code:
sudo -s
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Step 6: Load Modules at Boot
Add the following lines to the end of /etc/modules
Code:
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
[Module from Step 3]
Step 7: Configure Modules at Boot
This step needs to be done in order for the modules to retain your settings.
Make sure you have sysfsutils installed
Code:
sudo apt-get install sysfsutils
Then add the following lines to /etc/sysfs.conf
Code:
devices/system/cpu/cpu0/cpufreq/scaling_governor=ondemand
Where ondemand can be changed to another governor type (i.e. conservative, powersave, etc.). You can also add other configuration options that are specific to the governor selected.
Useful Links
http://ubuntu.wordpress.com/2005/11/...uency-scaling/
http://martin.ankerl.org/category/linux/
http://gentoo-wiki.com/HOWTO_Undervolt_a_Pentium_M_CPU
http://wejp.k.vu/projects/howto_cnq_athlon_64_x2/
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi, I was trying to follow your "How To" because, since yesterday, the cpu governors stoped working for me and I get always the maximum frequency, regardless of the load.
When I got to step 4, however, I got this error:
FATAL: Error inserting speedstep_centrino (/lib/modules/2.6.15-26-386/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.ko): Device or resource busy
I have no idea what I am doing wrong and I would apreciate any help.
Thanx a lot
gumbeto
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Step 4) Intel CPU Module
Code:
sudo modprobe speedstep-centrino
I have an Intel CPU, but it uses acpi_cpufreq instead of speedstep-centrino. I am not sure if it is important.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
do u know how can I check if my cpu is like yours in that aspect?
thanks
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
do u know how can I check if my cpu is like yours in that aspect?
thanks
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Athlon user should use powernow-k7
Athlon 64 users powernow-k8
Doesn't work for me tho. Probably because I have a Mobile CPU on an old desktop board
Code:
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): No such device
Frequency scaling worked under *******.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks for replies guys. I've updated the how-to with better information related to different devices. I only have a AMD64 k8 and Intel Pentium M Centrino. These two work for me with the methods I've outlined here in Breezy 32bit and 6.06 64bit installs. I will try to update it with more information related to other AMD and Intel chips once I have more info from others.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
hi again. In my case, the contents of /proc/cpuinfo is the following:
Code:
gumbeto@gumbeto-laptop:/lib/modules/2.6.15-26-386/kernel/arch/i386/kernel/cpu/cpufreq$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 2.00GHz
stepping : 8
cpu MHz : 798.116
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe est tm2
bogomips : 1598.35
As I said, the module speedstep-centrino didn't work for me so I tried
Code:
sudo modprobe acpi-cpufreq
It didn't complain and I continued with the tutorial but unfortunatly it didn't solve my problem. I think I'll post my problem in a separate thread when I have time, after searching for any related posts.
Anyway, thanks for the tutorial and for the replies
Gumbeto
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi friends,
for my centrino i use this utility on winxp
http://www.pbus-167.com/, to control not only cpu multipler, but also CPU multipler, and bus of ati card. =D> =D>
and i find this for linux
http://gentoo-wiki.com/HOWTO_Undervolt_a_Pentium_M_CPU
of course ... i'm very noobye....of linux, so i'm waiting for your comments. :-\" :-\"
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I have Asus K8V-MX mobo with Sempron 2600+ which does support Cool 'n Quiet in Windows, but apparently it doesn't work well with Powernowd in Linux.
I tried modprobe powernow-k8, modprobe acpi-cpufreq and even modprobe powernow-k7 but they all give the same error:
Code:
# modprobe powernow-k8
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): No such device
Guess I'm out of luck here, or what?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
nolodude
I have Asus K8V-MX mobo with Sempron 2600+ which does support Cool 'n Quiet in Windows, but apparently it doesn't work well with Powernowd in Linux.
I tried modprobe powernow-k8, modprobe acpi-cpufreq and even modprobe powernow-k7 but they all give the same error:
Code:
# modprobe powernow-k8
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): No such device
Guess I'm out of luck here, or what?
it should be k8 as far as I know.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Yes the Sempron 2600+, is actually a K8 device.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 9
model name : Intel(R) Pentium(R) M processor 1500MHz
stepping : 5
cpu MHz : 598.145
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe est tm2
bogomips : 1197.64
Everything goes fine until step 5:
Quote:
$ echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
bash: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Permission denied
Any Ideas?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
rannyman
Everything goes fine until step 5:
Any Ideas?
do the following
Code:
sudo -s
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
foxy123
do the following
Code:
sudo -s
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
That did it.
Still getting use to using sudo. I moved from debian to I am use to 'su' to do what I need.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks!
Like a charm...
Now I can do folding@#home at 100% CPU ....
AvatarX@FAH (Ubuntu Team)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Pharcyde,
I wonder if Step6 should refer to Step3 rather than Step2 (see below).
Am I wrong ?
Cheers
---Quote --
Step 6: Load Modules at Boot
Add the following lines to the end of /etc/modules
Code:
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
[Module from Step 2] <--------- Step3 maybe !?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks proclamar. You are quite right! I will fix this immediately.
Quote:
Originally Posted by
pcolamar
Pharcyde,
I wonder if Step6 should refer to Step3 rather than Step2 (see below).
Am I wrong ?
Cheers
---Quote --
Step 6: Load Modules at Boot
Add the following lines to the end of /etc/modules
Code:
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
[Module from Step 2] <--------- Step3 maybe !?
-
Any GUI to switch configuration ???
Is there any graphic application to switch among the different freq.scaling config's ?
"cat xxxxx >/......" is not very practical
I used to use Kpowersave but it work with cpufreqd and powersaved !
How can I replace it ?
Thanks
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks for the tutorial, seems very helpful, but I'm sad to say that I'm getting stumped.
I'm running a Sempron 2600+ (slot 757), my BIOS settings say that Cool'n'Quiet is enabled, and there's another CPU setting enabled along the lines of 'CPU stepping'. I've removed Powernowd.
When I run 'cat /proc/cpuinfo', it reads:
Code:
# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 28
model name : AMD Sempron(tm) Processor 2600+
stepping : 0
cpu MHz : 1608.050
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt 3dnowext 3dnow
bogomips : 3217.83
Now, when I try to install the CPU module, I get:
Code:
# modprobe powernow-k8
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.15-26-server/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): No such device
It's the same story for the generic ACPI and the K7. I see that others are having the same issue, same processor.
Has anyone got the Sempron 2600+ to work? Is there something obvious I'm missing? I guess that I should point out I'm attemtping this is Ubuntu-Server-6.06.
Thanks
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
thanks for the howto! awesome now my machine feels like it should with all the speed i have under the hood. noticed such a huge difference, no lagging now. whew... using the performance option. great stuff.
thanks,
ephman
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
I'm running a Sempron 2600+ (slot 757), my BIOS settings say that Cool'n'Quiet is enabled, and there's another CPU setting enabled along the lines of 'CPU stepping'. I've removed Powernowd.
AFAIK any (non-mobile) Sempron less than 3000+ does not have Cool'n'Quiet.
Check AMD Athlon™ 64 Processor Power and Thermal Data Sheet [PDF] to be sure. The datasheet for the CPU needs to show at least Min P-State to be a Cool'n'Quiet CPU. The more P-States the better.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Now this may sound like a n00b question but Im running an AMD64 3200+ on a K7 kernel so under /ect/modules I know I have to put
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
[Module from Step 3]
But how should the last line look ie:
[powernow-k8]
or
powernow-k8
Do you see what I mean....I've done everything else I'm just a bit confused about how the last line should be formatted...
Thanks in advance
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Just as an FYI, in Edgy Eft ondemand will be automatically loaded in favor of powernowd by the powernowd startup script, if your CPU can use ondemand without choking (SpeedSteps and other older-generation CPU's had considerable delays on frequency switches, so they will be using powernowd instead)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
No [], just
powernow-k8
PC
---------------
Quote:
Originally Posted by
Pootas
Now this may sound like a n00b question but Im running an AMD64 3200+ on a K7 kernel so under /ect/modules I know I have to put
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
[Module from Step 3]
But how should the last line look ie:
[powernow-k8]
or
powernow-k8
Do you see what I mean....I've done everything else I'm just a bit confused about how the last line should be formatted...
Thanks in advance
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
pcolamar
No [], just
powernow-k8
PC
---------------
I've tried that but my CPU remains at 2.2Ghz....
CPU scaling was working with Powernowd till I changed from a 386 kernel to K7... Maybe there is some issue there but I just cannot get it to work...
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Well, actually I have got similar problem too.
No matter what I was choosing in Step7, the laptop was always going back to Performance configuration after a while.
Furthermore, I have not be able to find an other GUI to the scaling_governor.
I prefered to go back to powersaved in order to use Kpowersave GUI even if I have the impression that powernow-k8 (my cpu is Turion 64) reacts faster and better in ondemand mode.
I'll check this Thread periodically to see if there is any change
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Problems: with Athlon XP mobile 2000+ on Desktop-PC (mobo: ECS K7S5A chipset: SiS735)
I get the same errors as some of you:
Code:
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): No such device
I tried to get proper CPU scaling on FC5 some time ago, but did not succeed.
- I read somewhere that i had to recompile my kernel with cpufreq support.
- I read that i had to manually edit the freq_tables because my CPU would not be properly detected
nevertheless, here's some output:
Code:
juve@juve:~$ cat /proc/cpuinfo processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 2000+
stepping : 1
cpu MHz : 1673.940
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3349.70
Does anybody know if it is possible to get cpu-freq support (without kernel recompiling) for my setup
Thx,
Juve
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
This could be of interest:
http://www.yggdrasl.demon.co.uk/code/
We need someone to compile the powernow-k7 module with this patch for the Ubuntu kernel. I'm looking into this, but don't expect anything yet.
btw, I don't have the "no such device errors" anymore. Now I get this:
Code:
#modprobe powernow-k7; dmesg | tail -n 4
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): Unknown symbol in module, or unknown parameter (see dmesg)
[17580497.260000] powernow_k7: disagrees about version of symbol cpu_data
[17580497.260000] powernow_k7: Unknown symbol cpu_data
[17580549.700000] powernow_k7: disagrees about version of symbol cpu_data
[17580549.700000] powernow_k7: Unknown symbol cpu_data
edit: Should've rebooted after kernel update.
Code:
# modprobe powernow_k7; dmesg | tail -n 7
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): No such device
[17179674.576000] powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
[17179674.580000] powernow: No PST tables match this cpuid (0x7a0)
[17179674.580000] powernow: This is indicative of a broken BIOS.
[17179674.580000] powernow: Trying ACPI perflib
[17179674.580000] powernow: ACPI perflib can not be used in this platform
[17179674.580000] powernow: ACPI and legacy methods failed
[17179674.580000] powernow: See http://www.codemonkey.org.uk/projects/cpufreq/powernow-k7.shtml
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I believe a lot of you are having problems because the bios does not have a processor state table available. If that is the case, then the kernel modules will not work.
There are a few options.
1) Try to get an updated bios with support with ptable support for your cpu.
2) Recompiling the kernel as suggested by others. Look at the following links.
http://www.yggdrasl.demon.co.uk/code/ (Provided by HAARP)
http://wejp.k.vu/projects/howto_cnq_athlon_64_x2/ (At the bottom of the howto instructions)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
pharcyde
I believe a lot of you are having problems because the bios does not have a processor state table available. If that is the case, then the kernel modules will not work.
Yup. That's exactly it.
Quote:
1) Try to get an updated bios with support with ptable support for your cpu.
No can do, my BIOS isn't being maintained anymore. Too old.
Quote:
2) Recompiling the kernel as suggested by others. Look at the following links.
Wouldn't a kernel module suffice?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
This may help some people. I'm running an Athlon 64 X2 dual core machine and finally got Cool 'n' Quiet working (not sure about the 'Quiet' bit but that's probably because of my cheapo PSU!)
I installed the K8 SMP kernel using Synaptic and followed the instructions in this howto. However I, like others, got the following error:
PHP Code:
# modprobe powernow-k8
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.15-26-k7/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): No such device
I was pretty sure that I had enabled the Cool'n'Quiet in the BIOS of my motherboard (ASUS A8V-VM). However, being a bit of a noob, I had only enabled 'Power Management' thinking this was the name for Cool'n'Quiet.
After rooting around in the BIOS interface, I found the real Cool'n'Quiet option, so I enabled it and this solved all the problems.
Incidentally, because I have two CPUs, I have a line for each in my /etc/sysfs.conf. I assume this is correct.
PHP Code:
devices/system/cpu/cpu0/cpufreq/scaling_governor=ondemand
devices/system/cpu/cpu1/cpufreq/scaling_governor=ondemand
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I have Ondemad set up per this HOW TO. It works when I first boot up switching frequencies fine. After a short time it seems to stick at the highest frequency setting when I do not seem to have any load. I have AMD64 X2 processor.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
ondemand is working fine - turnsout BEAGLED somehow is getting in a state that it uses 100% of cpu for long periods of time
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Why is this entry of all modules in /ets/modules necessary?
I know, it's necessary because without this entries the powersaved doesn't work during system startup (edgy) but it works when restarting it manualy...
I want to understand that... what is the difference?
Because the modules will be loaded in both cases otherwise a manualy restart auf powersaved would also fail or not?
Nabor
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
jdong
Just as an FYI, in Edgy Eft ondemand will be automatically loaded in favor of powernowd by the powernowd startup script, if your CPU can use ondemand without choking (SpeedSteps and other older-generation CPU's had considerable delays on frequency switches, so they will be using powernowd instead)
Does this imply that either the speedstep or powernow module is also loaded?
I have a Core 2 Duo T5600 and I'm having trouble with the cpu freq being locked at maximum after resume from suspend.
I tried following this howto (removing powernowd and installing modules) but the max. cpufreq continued and it broke network manager after resume from suspend.
So then, I tried reinstalling powernowd and removing the modules, but I can't remove the speedstep-centrino or the cpufreq-ondemand modules because they are in use. Is this because powernowd is calling both of them?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I'm wondering if the voltage is also being lowered. I don't want to use Cool & Quiet because I have overclocked my CPU and when the voltage drops, it gets a bit unstable
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I believe that in "Step 5" for Dual Core processors it should be
Quote:
sudo -s
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo conservative > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
and again the same in /etc/sysfs.conf
Code:
devices/system/cpu/cpu0/cpufreq/scaling_governor=ondemand
devices/system/cpu/cpu1/cpufreq/scaling_governor=ondemand
Thanks for the how to=D>
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I tired this and my cpu freq is stuck a 1 ghz what gives?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi
thanks for a wonderfull howto, mi problem is that when I restart the computer it seems like it somehow doest remember this settings, and I need to run all the commands again.
And I am not using a live cd...
Anybody has an idea about how to solve this?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hey guys..
IS this how-to the best way to get my AMD X2 4600+ up to speed on my EDGY AMD64 install?
She's running at half pace :(
Quote:
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
stepping : 2
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 2011.80
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
stepping : 2
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 2011.80
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
Lomz
Hi
thanks for a wonderfull howto, mi problem is that when I restart the computer it seems like it somehow doest remember this settings, and I need to run all the commands again.
And I am not using a live cd...
Anybody has an idea about how to solve this?
Nobody knows?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
If I use this method for frequency scaling, instead of the default use of powernowd, is there a way to automatically have different settings when on ac and when on battery? I want to use ondemand for ac and conservative for battery.
Also, does this method mean that the settings in the Power Management Preferences window no longer do anything? Should those settings, especially "prefer power savings over performance," be turned off in order not to conflict with the frequency governor set up in this how-to?
Thanks.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I used this when I had dapper on my machine, and it worked. I was able to throttle my cpu from 300 MHz, up to 2.8 GHz. I found that going lower than 1 GHz didn't increase battery life, but I used 1.4 when I was on batteries. I used the instructions from the Ubuntu document storage facility, but that site no longer comes up.
I upgraded to edgy, but now when I try to modprobe speedstep-centrino, it give me there error (not found). I tried the acpi one too, but no luck.
I know frequency scaling works on this computer, but with the upgrade to edgy, I can't get it going.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
bodycoach2
I used this when I had dapper on my machine, and it worked. I was able to throttle my cpu from 300 MHz, up to 2.8 GHz. I found that going lower than 1 GHz didn't increase battery life, but I used 1.4 when I was on batteries. I used the instructions from the Ubuntu document storage facility, but that site no longer comes up.
I upgraded to edgy, but now when I try to modprobe speedstep-centrino, it give me there error (not found). I tried the acpi one too, but no luck.
I know frequency scaling works on this computer, but with the upgrade to edgy, I can't get it going.
Ubuntu Document Storage Facility is back up. I found the answer:
Quote:
sudo modprobe p4_clockmod
Frequency scaling is working. Most excellent.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I am having the same problem with the clock speed being stuck at 1Ghz. I followed the steps and everything was working great until I restarted. After I restarted the CPU freq was stuck at 1Ghz. I ran through the steps again with no success. I tried to run $sudo modprobe p4_clockmod and got the following error "FATAL: Error inserting p4_clockmod (/lib/modules/2.6.17-11-386/kernel/arch/i386/kernel/cpu/cpufreq/p4-clockmod.ko): Device or resource busy" Do I need to kill some process before I attempt to run that command? Thanks for any help you guys have.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I should have posted this above, this is my CPU information:
Intel Core Duo
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 14
model name: Genuine Intel(R) CPU T2400 @ 1.83GHz
stepping: 8
cpu MHz: 1000.000
cache size: 2048 KB
fdiv_bug: no
hlt_bug: no
f00f_bug: no
coma_bug: no
fpu: yes
fpu_exception: yes
cpuid level: 10
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc up pni monitor vmx est tm2 xtpr
bogomips: 3661.77
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
pharcyde,
You might also want to point out to your duller readers that if they have dual cores, they should repeat the governor setting for each core. (Would have helped me.)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Yeah I have instances of the scaling_governor for each cpu, so that's not the problem. Still need input on how to fix the scaling support.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi
I'm a super-noob, and I don't quite understand step 6. Could someone maybe explain it a little better for me, perhaps with an example of what to type in at the kernel?
Thanks in advance!
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
With Feisty Fawn (updated from edgy), step 6 (Add modules in /etc/modules) is not necessary, at least on my PC (amd athlon 64 with powernow-k8). So, pharcyde, maybe you should precise for which release it's necessary.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi!
I tried to follow your HOWTO and everything seemed to be alright, but when I restarted my computer I got a message:
Code:
CPU frequency scaling unsupported
You will not be able to modify the frequency of your machine. Your machine might be misconfigured or not have hardware support for CPU frequency scaling.
and now my CPU freq is always on it's maximum. Could someone help me with either changing it back to how it used to be or fixing this problem?
Processor is Intel Centrino and I have dapper drake.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
Lomz
Hi
thanks for a wonderfull howto, mi problem is that when I restart the computer it seems like it somehow doest remember this settings, and I need to run all the commands again.
And I am not using a live cd...
Anybody has an idea about how to solve this?
I have the same problem here hmz
Nevermind, i placed something wrong in modules.conf hehe, works fine now, nice tutorial
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks for the great HOWTO!
I tried doing this with my Pentium 4 (1.4 GHz; family 15 model 0 stepping 7) running Edgy Server.
I used the "p4_clockmod" module. I checked the CPU freq with 3 methods:
Code:
cat /proc/cpuinfo
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cpufreq-info
Before loading module, freq was 1406.274 (seems normal, right?)
After loading module, was 2200.000
Is my CPU really running at 2.2 GHz? If so, that could be a bad (overheating) thing, right? And how did that happen?
Output of cpufreq-info:
Code:
analyzing CPU 0:
driver: p4-clockmod
CPUs which need to switch frequency at the same time: 0
hardware limits: 550 MHz - 2.20 GHz
available frequency steps: 550 MHz, 825 MHz, 1.10 GHz, 1.38 GHz, 1.65 GHz, 1.93 GHz, 2.20 GHz
available cpufreq governors: performance
current policy: frequency should be within 550 MHz and 2.20 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.20 GHz.
Should I just use "cpufreq-set --max 1375000" to limit the top speed, or do I have an unusual problem?
I've also tried loading the generic "acpi-cpufreq" module, but I get "FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.17-11-server/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device"
Thanks for any help/advice! (Just trying to reduce power consumption/heat buildup on my lightly-used home server. I intend to use "ondemand" governor.)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I posted earlier in this forum about a problem I was having after I followed the steps listed in the howto. Basically my CPU scaling was unsupported after I rebooted and was locked at 1.83ghz (I have an Intel Core Duo processor). To fix the problem I installed the powernowd package from synaptic package manager. Rebooted Gnome (Ctrl-Alt-Backspace) and now my CPU scaling support is working again. I hope this helps people with a similar problem.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Thanks for this most helpful post. I screwed around for days trying to get powernowd or cpudyn working with absolutely no success.
With your tutorial, I now have CPU scaling functioning on my Toshiba Satellite, and running in demand mode. I am running a Parsix distro (Knoppix based), and knew that CPU scaling should work, as it worked by default in Ubuntu.
Great job!
Bob Reeves
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
when I attempt to 'sudo modprobe powernow-k8' I get this error:
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.20-15-generic/kernel/arch/x86_64/kernel/cpufreq/powernow-k8.ko): No such device
I get a similar error with modprobe acpi-cpufreq
this: cpufreq-info
gets me this: no or unknown cpufreq driver is active on this CPU
anyideas?
I'm running a mobile athlon64 in a desktop board. Scaling works fine in windows.
tony@tony-desktop:~$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 36
model name : Mobile AMD Athlon(tm) 64 Processor 3400+
stepping : 2
cpu MHz : 910.719
cache size : 1024 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm
bogomips : 1822.84
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I followed this tutorial,
But when i got to part my CPU0 does not have the directory. So instead i just finished the tutorial with CPU1. But when i restarted the computer, i still got the "CPU Scaling unsupported" message.
Could it not be working because i am missing this directory from my CPU0 folder. Where can i get the necessary files to replace it?
I also tried this:
I installed cpufreqd. And in the details this is what i got. (just the last 2 lines)
Quote:
:Setting up cpufreqd 2.2.1-2 ...
No cpufreq interface installed, not starting cpufreqd
So then i installed powernowd which automatically uninstalled cpufreqd. And this is was it said at the end of the details
Quote:
* Starting powernowd...
/etc/init.d/powernowd: 156: cannot create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Directory nonexistent
* CPU frequency scaling not supported
...done.
So i think that this missing directory i have in CPU0 in the cause of the whole problem. What can i do!? CPU Scaling works fine in windows, so i know its not my hardware.
Here are the details of my processor:
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
stepping : 6
cpu MHz : 1828.859
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3661.16
clflush size : 64
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
stepping : 6
cpu MHz : 1828.859
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3657.81
clflush size : 64
Please help me! thanks guys
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
My T5600 works out of box, on 1000mhz and 1800mhz. i use kubuntu
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hey,
I'm using Feisty and want to set my governor to conservative at boot. But everything I try doesn't seem to work.
I made a script that runs with run level 2 that did either
Code:
sudo cpufreq-selector -g conservative
or
Code:
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
But both didn't work and swapping from run level 2, down to 1 and back up to 2 showed that the governor was just set back to ondemand whatever it was previously.
Then I tried installing and using sysfsutils by changing /etc/sysfs.conf but that had no effect either.
Is Feisty different?
How do I set the default governor in feisty?
Thanks, Mat
Edit:
I fixed my problem. I had a look at how powernowd starts in /etc/init.d and edited the script slightly to always set the governor to conservative.
I quick sudo /etc/init.d/powernowd restart confirmed that this worked ;)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
i get that same error!!
i got Intel Core 2
and i tried all of em, no luck!!!!
puzzling.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I'm getting the error about /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor too.
I've got an HP Pentium M laptop (dv1325EA).
Anyone know why this isn't working?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
Adahn
when I attempt to 'sudo modprobe powernow-k8' I get this error:
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.20-15-generic/kernel/arch/x86_64/kernel/cpufreq/powernow-k8.ko): No such device
I get a similar error with modprobe acpi-cpufreq
this: cpufreq-info
gets me this: no or unknown cpufreq driver is active on this CPU
anyideas?
I'm running a mobile athlon64 in a desktop board. Scaling works fine in windows.
tony@tony-desktop:~$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 36
model name : Mobile AMD Athlon(tm) 64 Processor 3400+
stepping : 2
cpu MHz : 910.719
cache size : 1024 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm
bogomips : 1822.84
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
.
I have the same problem
# sudo modprobe powernow-k8
FATAL: Error inserting powernow_k8 (/lib/modules/2.6.20-16-generic/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): No such device
# dmesg | grep AMD
[ 14.329800] CPU0: AMD Turion(tm) 64 X2 Mobile Technology TL-50 stepping 02
[ 14.420697] CPU1: AMD Turion(tm) 64 X2 Mobile Technology TL-50 stepping 02
[ 1.964000] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[ 439.392000] powernow-k8: Found 2 AMD Turion(tm) 64 X2 Mobile Technology TL-50 processors (version 2.00.00)
[ 826.332000] powernow-k8: Found 2 AMD Turion(tm) 64 X2 Mobile Technology TL-50 processors (version 2.00.00)
[ 829.912000] powernow: This module only works with AMD K7 CPUs
I can start powernowd with out any error message.
I installed kubuntu 7.04 32 bit version and found the this problem does not occur in the amd64 version. But I want the 32 bit version. Is there a way to get the powernow working ?
Regards jcdx
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Greetings fellow Ubuntu users struggling with frequency scaling.
I'm having a devil of a time with my Gateway SOLO 5300. The specs. as per Gateways site claims acpi 1.1 support and apm support. I have initially tried powernowd, but switched to cpufreqd upon reading this thread. I get and error messages when cpufreqd tries to start:
stating to the effect that /sys/devices/system/cpu/cpu0/cpufreq/scaling_govenor doesn't exist and frequency scaling is not supported. When I tried to create the folder myself:
root@tzlaptop:~# mkdir /sys/devices/system/cpu/cpu0/cpufreq
mkdir: cannot create directory `/sys/devices/system/cpu/cpu0/cpufreq': Operation not permitted
root@tzlaptop:~#
I'm running Feisty 7.04:
terry@tzlaptop:~$ uname -a
Linux tzlaptop 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
root@tzlaptop:~# modprobe acpi-cpufreq
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.20-16-generic/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device
But locate finds it:
root@tzlaptop:~# locate acpi-cpufreq.ko | grep generic
/lib/modules/2.6.20-15-generic/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko
/lib/modules/2.6.20-16-generic/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko
root@tzlaptop:~#
terry@tzlaptop:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 1
cpu MHz : 501.181
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up
bogomips : 1003.33
clflush size : 32
modules loaded:
terry@tzlaptop:~$ lsmod
Module Size Used by
speedstep_lib 6148 0
ppdev 10116 0
savage 34048 2
drm 81044 3 savage
sony_acpi 6284 0
tc1100_wmi 8068 0
dev_acpi 12292 0
pcc_acpi 13184 0
dock 10268 0
container 5248 0
button 8720 0
video 16388 0
sbs 15652 0
i2c_ec 6016 1 sbs
asus_acpi 17308 0
backlight 7040 1 asus_acpi
battery 10756 0
ac 6020 0
ipv6 268960 8
af_packet 23816 2
cpufreq_userspace 5408 0
cpufreq_stats 7360 0
cpufreq_powersave 2688 0
cpufreq_ondemand 9228 0
freq_table 5792 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 8200 0
ACPI messages:
terry@tzlaptop:~$ dmesg | grep ACPI
[ 0.000000] BIOS-e820: 000000001fff0000 - 000000001ffffc00 (ACPI data)
[ 0.000000] BIOS-e820: 000000001ffffc00 - 0000000020000000 (ACPI NVS)
[ 0.000000] ACPI: RSDP (v000 PTLTD ) @ 0x000f6a90
[ 0.000000] ACPI: RSDT (v001 PTLTD RSDT 0x06040001 LTP 0x00000000) @ 0x1fff9b81
[ 0.000000] ACPI: FADT (v001 GATEWA SOLO5300 0x06040001 PTL 0x000f4240) @ 0x1ffffb65
[ 0.000000] ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x06040001 LTP 0x00000001) @ 0x1ffffbd9
[ 0.000000] ACPI: DSDT (v001 GATEWA SOLO5300 0x06040001 MSFT 0x0100000b) @ 0x00000000
[ 0.000000] ACPI: PM-Timer IO Port: 0x8008
[ 17.160097] ACPI: Core revision 20060707
[ 17.161337] ACPI: Looking for DSDT in initramfs... file /DSDT.aml not found, using machine DSDT.
[ 17.168269] ACPI: setting ELCR to 0200 (from 0e00)
[ 17.170877] ACPI: bus type pci registered
[ 17.189927] ACPI: Interpreter enabled
[ 17.189942] ACPI: Using PIC for interrupt routing
[ 17.190812] ACPI: PCI Root Bridge [PCI0] (0000:00)
[ 17.190888] ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
[ 17.195703] PCI quirk: region 8000-803f claimed by PIIX4 ACPI
[ 17.196578] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[ 17.207941] ACPI: PCI Interrupt Link [LNKA] (IRQs *10)
[ 17.208776] ACPI: PCI Interrupt Link [LNKB] (IRQs *10)
[ 17.209558] ACPI: PCI Interrupt Link [LNKC] (IRQs *11)
[ 17.210364] ACPI: PCI Interrupt Link [LNKD] (IRQs 11) *9
[ 17.372052] pnp: PnP ACPI init
[ 17.489851] pnp: PnP ACPI: found 12 devices
[ 17.489867] PnPBIOS: Disabled by ACPI PNP
[ 17.490041] PCI: Using ACPI for IRQ routing
[ 17.498812] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[ 17.498834] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
[ 17.499446] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
[ 17.499457] ACPI: PCI Interrupt 0000:00:08.1[B] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 20.312122] ACPI: (supports S0 S3 S4 S5)
[ 22.213265] ACPI: CPU0 (power states: C1[C1] C2[C2])
[ 22.213285] ACPI: Processor [CPU0] (supports 8 throttling states)
[ 10.648000] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 10.648000] ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
[ 24.460000] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 24.460000] ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
[ 25.128000] ACPI: PCI Interrupt 0000:06:00.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 38.480000] ACPI: AC Adapter [AC0] (on-line)
[ 38.512000] ACPI: Battery Slot [BAT0] (battery present)
[ 38.516000] ACPI: Battery Slot [BAT1] (battery absent)
[ 38.748000] ibm_acpi: IBM ThinkPad ACPI Extras v0.13
[ 38.848000] ACPI: Power Button (CM) [PWRB]
[ 38.872000] ACPI: Sleep Button (CM) [SLPB]
[ 39.308000] ACPI: ACPI Dock Station Driver
[ 73.172000] ACPI: EC: acpi_ec_wait timeout, status = 0, expect_event = 1
I could use some help here!
TIA
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
I followed all the instructions and got no errors anywhere.
I tried setting everything to ondemand for both cpu0 and cpu1 and and according to boot messages, cpu frequency scaling was set to ondemand.
Next I tried setting everything (/etc/sysfs.conf, devices/system/cpu/cpu0/cpufreq/scaling_governor, devices/system/cpu/cpu1/cpufreq/scaling_governor) to performance to see if there was any difference in performance.
I've double checked it all but the boot message still says both cpu's are set to ondemand.
AMD 64 Athlon X2 3800+
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hey this was a great post. I recently switched motherboards and went from an Intel P4 3ghz to AMD Athlon X2 4000. Didn't reinstall Kubuntu Feisty, just swapped motherboards and booted up. (Windows had a hissy fit, but that's why I rarely use it) But none of the power management functions were working.
It was just stuck at 2100MHz all the time. Followed the steps in the OP and it's working great now. Idles down to 1000MHz just like it should.
cat /proc/cpuinfo
Code:
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
stepping : 1
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc [6]
bogomips : 2001.70
clflush size : 64
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
stepping : 1
cpu MHz : 1000.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc [6]
bogomips : 2001.70
clflush size : 64
cat /etc/sysfs.conf
Code:
devices/system/cpu/cpu0/cpufreq/scaling_governor=ondemand
devices/system/cpu/cpu1/cpufreq/scaling_governor=ondemand
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
Code:
userspace powersave ondemand conservative performance
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /etc/modules
Code:
lp
fuse
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_stats
cpufreq_userspace
powernow-k8
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
does anyone know how to use frequency scaling with an overclocked processor? my core2duo is clocked @ 3ghz, but with cpu scaling turned on it just varies between 1.6ghz and 2.4ghz (stock values).
i tested it on winxp too, cpu scaling there does use overclocked values of 2ghz and 3ghz.
thanks for any tips. ;)
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
litemotiv
does anyone know how to use frequency scaling with an overclocked processor? my core2duo is clocked @ 3ghz, but with cpu scaling turned on it just varies between 1.6ghz and 2.4ghz (stock values).
i tested it on winxp too, cpu scaling there does use overclocked values of 2ghz and 3ghz.
thanks for any tips. ;)
I have this issue with my athlon 3600x2. It scales down/up with powernowd normally but only to the stock speeds.
Installing cpufreq as per this thread gives the 'cpu scaling not supported' error. Clock speed stays at the maximum (overclocked) speed of 2.95 GHz. Strangely, system power usage (measured at the outlet with a kill-a-watt meter) is roughly the same idling at 2.95GHz in Ubuntu as it is downclocked/undervolted in Windows with rmclock.
I looked into editing the module files for cpufreq and powernow in Ubuntu to add the overclocked speeds but don't have permission to open the files.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
This guide says to use the speedstep-centrino module with Core Duo processors, but it doesn't work for me on my ThinkPad T60. Instead I have to use the acpi-cpufreq module.
Strangely, in Edgy I followed the same instructions on this laptop and the speedstep-centrino module worked. But not now in Feisty.
Is something wrong here?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
Adahn
I have this issue with my athlon 3600x2. It scales down/up with powernowd normally but only to the stock speeds.
Installing cpufreq as per this thread gives the 'cpu scaling not supported' error. Clock speed stays at the maximum (overclocked) speed of 2.95 GHz. Strangely, system power usage (measured at the outlet with a kill-a-watt meter) is roughly the same idling at 2.95GHz in Ubuntu as it is downclocked/undervolted in Windows with rmclock.
I looked into editing the module files for cpufreq and powernow in Ubuntu to add the overclocked speeds but don't have permission to open the files.
i submitted a launchpad entry for it:
https://bugs.launchpad.net/ubuntu/+s...22/+bug/132403
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Guys, Check out my cpu-freq info
Quote:
cpufreq-infocpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to
linux@brodo.de, please.
analyzing CPU 0:
driver: centrino
CPUs which need to switch frequency at the same time: 0
hardware limits: 600 MHz - 1.80 GHz
available frequency steps: 600 MHz, 800 MHz, 1000 MHz, 1.20 GHz, 1.40 GHz, 1.60 GHz, 1.80 GHz
available cpufreq governors: userspace, powersave, ondemand, conservative, performance
current policy: frequency should be within 1.40 GHz and 1.40 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 1.40 GHz.
can someone help asap? its a dothan centrino, and im going on a plane soon and need max batt.
THANKS IN ADVANCE!
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Hi there,
I have a Dell Inspiron 9400 Centrino Duo 1.6Ghz.
I followed the tutorial and ething was perfect till the time I rebooted.
The governor policy went back to performance instead of the one Ive set before, powersave.
Is there a way of me telling Ubuntu to every time on reboot set to powersave instead of performance ?
Thanks.
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
Quote:
Originally Posted by
Rhawi Dantas
bump ?
I wonder what
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
gives you?
-
Re: HOWTO: CPU Frequency Scaling w/ Kernel Module
After rebooting performance.
But when i already configured everything its powersave. And everytime i need to reconfigure to be powersave and then after reboot it becomes performance.