Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to get my mobile AMD processor to work with dynamic speedsettings under Madrake 10, and I've been searching for the correct way to do this. My kernel is 2.6.3. I've looked around on the forum, but have not found an answer that's workable for me as a beginner.
I read that you need CPUFreq in your kernel, and that you should patch your kernel or something to enable this. Now, I'm very new to Linux and really don't know how to do that, but fortunately I read somewhere that kernel 2.6 has CPUFreq built in, is this correct? If so, what steps do I have to take in order to enable it, and set my CPU (AMD Athlon XP 2500+, mobile) to a lower speed when the system is idle? I found a little program named CPUSpeed, would that do the trick?
Location: North Idaho - Where Big Brother gets his ass kicked.
Distribution: MDK 10, Peanut 9.2
Posts: 3
Rep:
Frequency Scaling
CPUSpeed: haven't tried it.....however:
Frequency Scaling support for AMDs is built into kernel 2.6.7 (just built one). To enable it, follow the normal kernel building procedure (using 'make xconfig', specifically) and check the appropriate boxes. Follow the Kernel How-To, or README on kernel.org. Make sure you select the right processor type.
Tip: Make some caffiene available to yourself and take your time configuring (look at every option if you've never done that before). You want to get the configure done correctly, because the build process will probably take hours (on an Athlon XP Mobile 2500, 768MB DDR 400).
If you're trying to extend your battery life - let me know if you succeed. From my recent experiences with laptops, all different models and brands seem to have defective batteries, as if it's just a lie that the battery technology is available to make a laptop worth using. I'll never buy another laptop again unless it comes with a lifetime-warranted battery. My Athlon XP-M is not very Mobile :-\
Thanks Corey, you make it all sound so easy Maybe I should just install Slackware Linux, which I think I read has kernel 2.6.7 build in. What do you think? Sounds like the easiest thing for me to do, because I've only been using Mandrake Linux for a few days, so I won't lose much data...
Maybe I should just install Slackware Linux, which I think I read has kernel 2.6.7 build in.
slackware 10 doesn't really have the 2.6.7 kernel 'built in'. it is, however, on the second install cd for you to configure after you have actually installed slackware 10 with the 2.4.26 kernel.
it's not too much trouble though. i hadn't done it before myself, but i found a lot of online help and it was much easier to do tahn expected.
you then have the problem that you could go to all of this trouble, when it is just as easy to upgrade the kernel on your existing mandrake install.
so, i guess it comes down to whether you would prefer slackware 10, or mandrake, for whatever your purposes are.
i like them both (for different reasons), but i prefer slackware because itrequires a bit more work, resulting in me understanding more.
Hold on! Don't delete that Mandrake partition yet! :-) The cpufreq has been built into the official Mandrake kernel 2.6.x.
To activate, you need to become the superuser and simply type:
# modprobe powernow-k7
And voila! The PowerNOW! feature is now installed. Check it with demsg:
# dmesg
....
There should be some information about PowerNOW! and frequency scaling on the dmesg output.
If you want this to be activated every time you boot up, then you need to load it from /etc/modules.conf (can it? I'm not sure--I myself am not an expert in this field). My alternative is to put a statement in your /etc/rc.d/rc.local. Add the following statement in that file (as the last line, to be safe):
modprobe powernow-k7
I think kernel 2.4.x also has PowerNOW if you are willing to patch it. I am not. :-) I tried it once and oh.. it's so painful since the patch conflicts a lot with the modified kernel (at that time, I was using Red Hat 7, I think).
Now, by default the Linux PowerNOW module is set so that the CPU speed is determined automatically depending on the CPU load. I have a laptop (Sony VAIO with AMD Athlon XP 1400+). When PowerNOW is installed, you can tell that if you `ls' a directory, usually it lists slowly at the beginning, then becomes faster at the end.
There are some `control` you can get with Linux PowerNOW feature. It is located in /sys subdirectory. I don't have the laptop with me as of the time of writing, so I have to wait for tomorrow if I want to post some more detail. IIRC, it is something like /sys/devices/system/... . You may want to see some documentation in /usr/src/linux if you've installed kernel-source package. The documentation tells you how to scale the CPU frequency manually. Basically there are 2 available modes (which the kernel folks termed "scaling governor"): "performance", i.e. the CPU freq is adjusted to maximize the performance, and "userspace", which basically is manual adjustment. Of course all these changes can be done by the root user only.
Just a side comment, not to disappoint you: I noticed that the PowerNOW feature does not really save the battery life on my laptop. Of course my judgement could be wrong. The lithium battery in my laptop is already > 2 years old in the age, and so the performance may be bad. I noticed once that even if I slow the CPU down to 500 MHz (which was the minimum for my laptop), the battery juice seemed to run as quickly as if I use 1.2GHz speed. Of course all these with the ACPI being activated, which does save some more power by not running full-throttle all the time.
Good luck and have fun with your PowerNOW! Let me know if you notice a better battery life or whatever! I'd love to hear how this new feature performs. I do not have any other "datapoint", as the laptop is the only AMD machine accessible to me.
You may want to try cpufreqd, a demon which makes use of the cpufreq kernel-feature. I am not sure if this is included in the Mandrake distro, but I am sure you will find it somewhere.
Other distros, like SuSE use another demon called powersaved, but it actually does the same thing. No need to change distros!
To activate, you need to become the superuser and simply type:
# modprobe powernow-k7
And voila! The PowerNOW! feature is now installed. Check it with demsg:
# dmesg
Well, I tried the above, but unfortunately it did not work. Am I doing it right? I go to a terminal, type 'su', become root, then I type 'modprobe powernow-k7', but nothing happens. The command 'dmesg' doesn't do anything either
Just to make sure: you did not prepend the command with `#', did you? That's shell comment character. If you did, try the commands without those letters again. The `#' just mean that you are in the superuser mode. Could you post the last, say, 50 lines of the dmesg command?
I did a reboot, and ran dmesg, and now it did do something! I get a whole list with info on my cpu, and it shows the minimum and maximum speed! I guess I should now look for a deamon to control the cpu speed? Those aren't hard to find, so I'll take a look and report afterwards
Well, I tried CPUfreqd and Powernowd, but no luck: I can't get them to run properly. I installed CPUfreqd, and try to run it as a su with #cpufreqd, but nothing seems to happen. So I installed Powernowd, and when I run it, I get this errormessage:
powernowd: Found 1 cpu:
Couldn't open file: No such file or directory
Couldn't open file: No such file or directory
Couldn't open file: No such file or directory
couldn't open govn's file for writing: No such file or directory
Couldn't get per-cpu data: Illegal seek
PowerNowd encountered and error and could not start.
Please make sure that:
- You are running a v2.5/v2.6 kernel or later
- That you have sysfs mounted /sys
- That you have the core cpufreq and cpufreq-userspace
modules loaded into your kernel
- That you have the cpufreq driver for your cpu loaded,
and that it works. (check dmesg for errors)
I have no idea what that meanse, is sysfs something I need to install seperately?
I'm not sure if you need a daemon for that. At least mine does not run a daemon. Here's the directory that contains the "control" for the PowerNOW thing:
The meaning is pretty obvious. The first two contains the min/max allowable CPU freqs. Try to print scaling_available_governors. On my computer it says:
userspace performance
It's now set on "performance". To set to "userspace" (and back and forth), echo the word to file scaling_governor, like this (anything up to the `#' are the shell prompt; remember to `cd' to the right subdir first!):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.