LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 06-30-2007, 09:50 AM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Could really use some help understanding CPU Scaling


Using Ubuntu with KDE:


I don't understand how this works. There are many, many, many ways to do this, apparently, and at least some of them change form or method from one year to the next, or one distro to the next. Very, very, very frustrating.

Please help me to understand how:

1) cpufreq relates to cpufreqd

2) acpid relates to them both

3) to get my compaq N600c to scale!
 
Old 06-30-2007, 04:07 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
I think I can help you with number 3. If you have the userspace cpufreq module compiled into your kernel, and you know what your proc is supposed to run at, you can (as root) do
Code:
# echo 'yourspeed' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
And you can check it with
Code:
# cat /proc/cpuinfo
Here is a good link to check out.
 
Old 07-04-2007, 10:01 AM   #3
kanwar_rajan
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora Core 6 x64 , Bluewhite64
Posts: 32

Rep: Reputation: 15
i think i can help u in detail with the 2nd and 3rd point..

for the scaling.. first u need to make sure ur CPU supports frequency scaling..

- frequency scaling can be controlled automatically by a kernel module or a userspace application..

- the linux kernel includes different CPU speed governers.. these can be configured during kernel compilation .. and selected as modules..

- generally the governers available are..
- userspace
- ondemand
- conservative
- performance
- powersave

- for CPU speed scaling from user-space application.. u need to load the "userspace" governers..

- other governers generally are automically controlled..

- the easiest for u will be to use the "ondemand" or "conservative" governer , if it is available in the kernel..

- if u require finer control.. go for the "userspace" governer..

- in the case of "userspace" governer, u can use a userspace program such as "cpufreq-utils" or "cpufreqd" that can be configured to scale the frequency depending on input conditions..


--------------------------------------------------------

ACPID is not directly related to CPU scaling.. ACPID actually makes available to other applications the different ACPI events.. or can also be configured to take an action depending on particular ACPI events..

--------------------------------------------------------

in ur case.. what we can do is configure the "cpufreqd" to scale the frequency depending on ACPI events , such as temperature..

i suggest u use the "cpufreq-utils". go through its documentation to configure the configuration file and run the program..
i generally prefer to control the speed depending on:
- System load
- temperature
- ac power availability

all this can be done using "cpufreq-utils", with ACPI provinding temperature and ac-power information.

hope that helps.. sorry for the poor formatting.. i am in a hurry ;-)
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to shut OFF CPU scaling? tubatodd Ubuntu 2 02-16-2007 09:59 PM
P4 and CPU Frequency scaling tkalfaoglu Linux - Kernel 3 05-31-2006 09:56 AM
CPU Scaling StevenO General 7 02-15-2006 07:28 PM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM
Cpu power scaling SlackinMonkeee Slackware 1 02-07-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:19 AM.

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