Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Rep:
Could use some help with cpufreq
What little I knew of cpufreq was dashed to complete confusion upon researching it. All I understand is that it can adjust and report the clock speed. After reading nearly a dozen howto's and related pages, I'm utterly lost as to whether it's part of a larger package and what it's requirements are to run. I have apt-get install'ed it, and aptitude installed it. And when I type something like "cpufreq-info" I get:
pufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
I know the cpu (a p III/M) does work with cpufreq because under Knoppix it worked fine. I could change speeds and read them, I could automate them and they would speed up and down appropriately given the momentary demand.
I believe that at the core of the problem is the fact that I see nothing below the directory /sys/devices/system/cpu/cpu0 other than "crash_notes" and "topology". It suggests to me that I lack the driver, as the above message does, but simply cannot find any information on how that driver is typically obtained and installed.
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
Let me add to this
I also have acpi and acpitool installed, though I didn't when originally trying to use cpufreq. "Acpitool -c" reports 2/3 speed (800Mhz out of 1200). I haven't any idea whether I should place any stock in that, because I don't know if it uses cpufreq to get it information or does so of its own resources.
When I run Flight Gear, it runs very slowly, and essentially maxes out the cpu. This suggests that it is in fact running at low speed since I've run games like Ghost Recon at similar resolutions with no apparent lag.
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
Thanks for the suggestion. Unfortunately I must have read that doc a dozen times already, and it makes assumptions that are somewhat baffling to me.
Again, I don't have anything below /sys/devices/system/cpu/cpu0, and that doc (along with all the others) assumes that stuff is there. Thus it seems I'm not even at a point where that document can start to be applied.
Again, I don't have anything below /sys/devices/system/cpu/cpu0, and that doc (along with all the others) assumes that stuff is there. Thus it seems I'm not even at a point where that document can start to be applied.
You need to load the appropriate kernel driver to get something to be there. That doc specifically tells you how to custom-compile your kernel including the drivers. On the other hand, your distro (which you didn’t mention) will probably already have the modules compiled, so all you need to do is modprobe the appropriate stuff (e.g., type into a root terminal “modprobe cpufreq-userspace; modprobe cpufreq-powersave; modprobe cpufreq-conservative; modprobe cpufreq-ondemand; modprobe whatever-processor-specific-thing-you-need”).
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
Quote:
Originally Posted by lumix
Incidentally, I'm running Etch.
I know nothing about Modprobe, and potentially less after reading the Man pages on it. In any case, I have modprobe'd the above suggested modules and get absolutely nothing back for confirmation. I'll have to assume no news is good news. Restarted: still no directory contents below the aforementioned path. I also see something to the effect of a "failed" (in red lettering) loading of a cpu governor something or other, at start up.
Restarting your system after entering the modprobe commands cancels the effect of the modprobe. Try modprobing them again and then checking to see if you have more entries in the /sys directory structure.
If you do after manually modprobing the modules, you can add the commands to rc.local (or whatever is appropriate for your distro).
What is your computer model and cpu type? it is possible that your PC does not support CPU Frequency Scaling (I have a desktop system with an Athlon CPU that I cannot get working with CPU freq scaling).
I know nothing about Modprobe, and potentially less after reading the Man pages on it. In any case, I have modprobe'd the above suggested modules and get absolutely nothing back for confirmation. I'll have to assume no news is good news. Restarted: still no directory contents below the aforementioned path. I also see something to the effect of a "failed" (in red lettering) loading of a cpu governor something or other, at start up.
Modprobing is a way to insert a module (i.e., a kernel driver in a separate file) into kernelspace. When you restart, your kernel will be loaded anew (not retaining said files any longer). Usually, modules you want to load each time are added to your boot sequence (the method will be distribution-dependent, but most likely you edit /etc/modules or a similar file). So using modprobe manually is very temporary. Additionally, the kernel has a log buffer which is written to by most modules that you modprobe. Depending on your distro, this log is probably recorded somewhere in /var/log (and maybe echoed to your console as well). Regardless, you can always view the latest contents of your kernel log buffer using “dmesg” (i.e., after doing all the “modprobe …” try doing a “dmesg” to see the good news).
So moral of the story: don’t modprobe and then restart and expect whatever you probed to be still in memory. Try the commands I mentioned previously and then look in /sys/devices/system/cpu/cpu0 (without restarting). Additionally, use dmesg to view the kernel buffer.
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
Quote:
Originally Posted by lumix
I know the cpu (a p III/M) does work with cpufreq because under Knoppix it worked fine. I could change speeds and read them, I could automate them and they would speed up and down appropriately given the momentary demand.
Oh... I did try to see if anything had been added to the cpu0 directory, or if cpufreq-info worked after doing the modprobes, but alas, no.
Perhaps I left out a few modules. Which ones did you try? Perhaps you need cpufreq-stats or freq-table. Btw, these are all the related modules I have on my system:
Obviously, some are processor-specific and won’t apply to your PIII machine, and not all will be necessary to use (i.e., some are different governors, only one of which is used at one time).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.