cpudyn, SuSE and Pentium 4 Mobile
(20179 lectures)
Por Benjamí Villoslada
Benjami
(http://weblog.bitassa.net)
Creado el 28/12/2003 21:30 modificado el 28/03/2004 22:01
|
cpudyn is a KISS (Keep
It Simple, Stupid) utility designed to save laptop --and desktop--
computers power and heat. The latest cpudyn version works fine with
SuSE (see
changelog).
- New 0.99.0 version
- SuSE 9.0 update: Is necessary to remove the cpufreqd package installed by default. |
Pagina1/1 |
I've seen cpudyn installation problems in a couple of mailing lists
--in Majorca we count
"one, two and a couple" ;) Here how to install cpudyn in one
Pentium 4 M laptop with SuSE 8.2 (and probably SuSE 9.0):
- Download
cpudyn latest version (0.99.0, 13-Feb-2004)
from the official site
and
decompress the file (my ~/tmp/
directory is used in this page examples, change "benjami" to your user
name):
benjami@codol:~> cd tmp
benjami@codol:~/tmp> wget
http://mnm.uib.es/~gallir/cpudyn/download/cpudyn-0.99.0.tgz
benjami@codol:~/tmp> tar zxvf cpudyn-0.99.0.tgz
- Change to root user, go to the new cpudyn folder, compile and
install:
benjami@codol:~/tmp> su -
Password:
codol:~ # cd
/home/benjami/tmp/cpudyn/
(this is a copy&paste: of course, you should change the "benjami" with your user name)
codol:/home/benjami/tmp/cpudyn
# make install
- Now you can manually start cpudyn daemon:
codol:/home/benjami/tmp/cpudyn
# /etc/init.d/cpudyn start
- But cpudyn daemon needs the appropiate processor Kernel module
working. One simptom that you don't have the module is that /proc/cpufreq file is empty:
codol:/home/benjami/tmp/cpudyn
# cat /proc/cpufreq
minimum CPU frequency - maximum CPU frequency -
policy
codol:/home/benjami/tmp/cpudyn #
- P4-clockmod is the appropiate module for the Pentium 4 M
processor. Probe it:
codol:/home/benjami/tmp/cpudyn
# modprobe p4-clockmod
If you no receive any error, the module is working and you can see it
with lsmod:
codol:/home/benjami/tmp/cpudyn
# lsmod | grep p4-clockmod
p4-clockmod
1488 0 (unused)
freq_table
1376 0 [p4-clockmod]
- Now you can see changes in the /proc/cpufreq file:
codol:/home/benjami/tmp/cpudyn
# exit
logout
benjami@codol:~/tmp> cat
/proc/cpufreq
minimum CPU frequency - maximum CPU frequency -
policy
CPU
0 149519 kHz ( 12 %)
- 1196153 kHz (100 %) - performance
... when the chip is in perfomance mode, and when is powersaving ...
benjami@codol:~/tmp> cat
/proc/cpufreq
minimum CPU frequency - maximum CPU frequency -
policy
CPU
0 149519 kHz ( 12 %)
- 1196153 kHz (100 %) - powersave
watch is great to
constantly see this file contents:
benjami@codol:~/tmp> watch
-n 1 cat /proc/cpufreq
- Finally, you can use YaST2
in order to load the p4-clockmod
module and cpudyn daemon at startup. YasT2
allows to change the cpudyn
parameters too:
- Figure
1: Load p4-clockmod module on
startup.
Go to YaST2 Control Center >
System > Editor
for /etc/sysconfig Files. Now select System > Kernel >
MODULES_LOADED_ON_BOOT in the left tree. Add p4-clockmod to the existing list.
- Figure
2: Start cpudyn daemon on startup.
Go to YaST2 Control Center >
System > Runlevel
Editor. Click Runlevel
properties button. Search cpudyn in the list. Select 3 i 5
in the Service will be started in
following runlevels section, and clic the Finish button.
- Figure
3: Change cpudyn parameters.
Go to YaST2 Control Center >
System > Editor
for /etc/sysconfig Files. Now
select Other > etc > sysconfig > cpudyn > OPTS in
the left tree. To see all of the parameter possibilities, run man cpudynd or read the official homepage
examples and FAQ section.
Other modules
I only know those modules (and I'm not sure, feedback wanted :) that
you should use to replace p4-clockmod as
mentioned in this article:
- Centrino: speedstep_ICH or speedstep_smi («I'm not sure», says the post author)
- Pentium III: freq_table
and speedstep
- AMD: powernow-k6,
powernow-k7 and powermate
- AMD Athlon Mobile: powernow-k7
|
|
|
|
|
|
Comentarios Es posible que se hayan omitido algunos comentarios considerados poco constructivos
|
1. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (28/12/2003 21:48, #18890) Por: Xisco (http://mussol.zigazaga.net) |
Thank you, Benjamí, for this nice techie article.
Unfortunately, I have no capable processors in frequency scalability to test it.
Anyway, the thing I liked more on it is your personal vision of the term "kiss". :-)
Greetings. |
No es pot respondre |
2. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (28/12/2003 22:23, #18891) Por: Benjami (http://bitassa.com) |
stupid, simple^W^Wsimple, stupid
8-)
Fixed, thanks! | No es pot respondre |
|
3. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (29/12/2003 12:52, #18901) Por: teleyinex |
Hey, good howto. One thing, I think you have a mistake in your text:
"One simptom that you don't have the module is that /cat/cpufreq file is empty"
The text: /cat/cpufreq is wrong? or is what you want to mean? I think that you want to typewrite cat cpufreq file is empty.
Nothing more. You can delete this post.
Bye |
No es pot respondre |
4. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (29/12/2003 15:42, #18904) Por: Benjami (http://bitassa.com) |
| Yes, is /proc/cpufreq ... my syntax dyslexia :))) Thanks! | No es pot respondre |
|
5. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (31/12/2003 11:47, #18934) Por: Switch |
You can also use powernow-k7 if you own a AMD Athlon Mobile (as I do) instead of p4-clockmod.
Very good HowTo Sir ;-)
Best greetings. |
No es pot respondre |
6. Re: cpudyn 0.5.0, SuSE and Pentium 4 M (08/02/2004 00:00, #19676) Por: Christian Ostheimer (http://spblinux.sf.net) |
Running kernel 2.6.2 (and, I suppose, 2.6.*) there is no
/proc/cpufreq entry.
Everything works, but one has to use
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor.
cpudyn is really useful and I will include it into SPBLinux2.1b10.
C.O. |
No es pot respondre |
7. Re: cpudyn, SuSE and Pentium 4 M (30/03/2004 09:28, #20434) Por: Anónimo |
| Im not sure but... The module for P4M should be speedstep_ICH or speedstep_smi. The p4clockmod does not really modulates the voltage and frequency. |
No es pot respondre |
8. Re: cpudyn, SuSE and Pentium 4 M (22/04/2004 19:09, #20851) Por: susana |
Great article, thanks.
When you talk about Pentium 4-M, you mean Pentium 4-mobile only or it includes Centrino? |
No es pot respondre |
9. Re: cpudyn, SuSE and Pentium 4 M (22/04/2004 19:34, #20854) Por: Benjami (http://bitassa.com) |
Mobile, I don't have tested Centrino...
... but I can update this article with the Centrino users feedback :) | No es pot respondre |
|
10. Re: cpudyn, SuSE and Pentium 4 Mobile (12/06/2004 18:17, #21876) Por: Kasimir |
Thanks, this helped me a lot with my DELL Inspiron 8200 and
Suse 9.1 |
No es pot respondre |
11. Re: cpudyn, SuSE and Pentium 4 Mobile (06/11/2004 23:57, #24155) Por: Dominik Brodowski (http://www.brodo.de/cpufreq/) |
Here's an overview which module is appropriate for some common CPUs. Try the first mentioned first, then the second one, and so on. Oh, and the p4-clockmod module is pretty useless.
"Centrino" or some very new P4s: speedstep-centrino or acpi
Pentium 4-M: speedstep-ich or acpi
Pentium III: speedstep-ich or acpi or speedstep-smi
AMD mobile K6: powernow-k6
AMD mobile K7 / mobile Athlon: powernow-k7
AMD K8 / (x86_64) / ... : powernow-k8
certain VIA / Cyrix CPUS: longhaul
transmeta crusoe or efficeon: longrun
pmac: pmac_cpufreq |
No es pot respondre |