LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-29-2007, 01:58 PM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
How do I setup cpufreqd on a PIII-M laptop?


Try as I may, I can't find any information about how to set up cpufreqd for MY application. Reems of paper could be spent on this topic I would have thought to be rather limited in scope, but alas none that just get me going.

How do I set up this %$#@! thing? I just want my cpu to kick down to 800 MHz or whatever, when it's usage is low.

I have cpufreqd installed...now what?

Thanks.
 
Old 06-29-2007, 02:43 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Is the daemon running? Which desktop are you running?

Enter in the command "/usr/bin/cpufreq-info" to get information on the speed and governer used.

Quote:
set up cpufreqd for MY application
So you want to run it from an application you wrote?
sudo /usr/bin/cpufreq-set -f 800M
should change the frequency. You could add this command to /etc/sudoers so that you can run it as a normal user from your application.
 
Old 06-29-2007, 03:09 PM   #3
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
"Application" in the general sense of the word. I'm using Kubuntu (i.e. KDE), but I didn't think that cpufreqd was desktop sensitive...is it?

sudo cpufreq-set yields "command not found"

Have said this, what is the difference between cpufreq and cpufreqd? I'm trying to use the latter. And, yes, the cpufreqd (not cpufreq) daemon is running.

Last edited by lumix; 06-29-2007 at 03:10 PM.
 
Old 06-29-2007, 05:00 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
No, it shouldn't matter which desktop you are running. I've used /usr/bin/cpufreq-set -f 800 from a virtual terminal outside of the desktop environment. There is a kde applet that you can use to set power profiles: "Performance", "Dynamic" or "Power Saving". On my laptop, this selects either 2.2Ghz or 800MHZ. From the shell I can use 1.8 Ghz.

You might want to check if you have the dbus daemon installed, and if it is running. Maybe also an acpci package as well.

And check if you have the programs /usr/bin/cpufreq-info and /usr/bin/cpufreq-set. Maybe your system puts them in /usr/sbin/ instead.

You may also need to modprobe a kernel module if it isn't built-in. My laptop uses an AMD-64 processor so my module is different.

I just looked on my system, the cpufreq-info and cpufreq-set are supplied by a separate package from the daemon. ( cpufrequtils )
Maybe you have a similar package.

I took a look at a kernel package:
Code:
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/cpufreq_conservative.ko
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/cpufreq_ondemand.ko
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/cpufreq_powersave.ko
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/cpufreq_stats.ko
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/cpufreq_userspace.ko
/lib/modules/2.6.18.8-0.1-default/kernel/drivers/cpufreq/freq_table.ko
If you can locate the kde program that gives you the panel control, you will probably end up installing other packages that you need as well.

...

I just looked at kpowersave. It uses HAL and acpci instead of a cpufreq daemon. Things may be different for Kubuntu.

Last edited by jschiwal; 06-29-2007 at 05:30 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
replace PIII with PIII mobile in laptop petespin27 General 3 05-28-2006 05:32 PM
Need Distro for PIII 750 mhz laptop goforthbmerry Linux - Distributions 4 03-31-2006 07:32 PM
cpufreqd 1.2.2 rule TLV Linux - Laptop and Netbook 0 11-15-2004 05:30 AM
k-7 powernow(cpufreqd) on a laptop w/o PST tables microsoft/linux Linux - Laptop and Netbook 1 11-01-2004 12:02 PM
how to use cpufreqd dejavu_01 Slackware 2 05-18-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration