LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-26-2007, 08:21 AM   #1
kanwar_rajan
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora Core 6 x64 , Bluewhite64
Posts: 32

Rep: Reputation: 15
configure cpuspeed bluewhite64 linux


Hello all,

I installed Bluewhite64 linux which is basically a 64 bit port of Slackware linux on my laptop (Compaq v3133AU, AMD Turion64 x2).

Everything works fine except that the CPU is always running at 1.6GHz.

I guess the kernel is not supporting cpufreq driver and there is no cpuspeed daemon.

I am currrently trying to compile a new kernel with cpufreq module support.
Anyways, just wanted to know if somebody has experience configuring the cpufreq modules and installing/configuring the cpuspeed daemon. That way, i will save some iterations and time to solve this issue.

Thanks,
Kanwar
 
Old 02-26-2007, 09:19 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I'm running daemons cpufreqd and cpufrequtils with speedstep-centrino module

The daemons are enable at boot time:
1)
/etc/rc2.d/S20cpufreqd
It uses the configuration stored in /etc/default/cpufreqd

Quote:
# Cpufreqd startup configuration

# CPU kernel module.
# Leave empty if you wish to load the modules another way,
# or if CPUFreq support for your cpu is built in.
CPUFREQ_CPU_MODULE=speedstep-centrino

# Governor modules.
# A list separated by spaces. They are needed by cpufreqd
# to load your policies. The init script can automatically
# try to load them. Leave empty to disable loading governor
# modules at all, use "auto" to let the script do the job.
CPUFREQ_GOV_MODULES="auto"
Modify your CPUFREQ_CPU_MODULE so that it points to your cpufreq module.
If set to auto, the daemon will parse /etc/cpufreqd.conf and modprobe all the necessary governor modules (cpufreq_powersave, cpufreq_performance,..).


configuring the cpufreq modules and installing/configuring the cpuspeed daemon

2)
/etc/rc2.d/S20cpufrequtils
This takes as input /etc/default/cpufrequtils conf file

Quote:
ENABLE="true"
GOVERNOR="userspace"
MAX_SPEED=1600
MIN_SPEED=600
This sets the governor to userspace here. If set to auto in cpufreqd, then I think this daemon is not needed.

Every poll_interval seconds, cpufreqd checks for conditions written in RULE parts which refer to PROFILE parts of /etc/cpufreqd.conf.
The conditions can be : Battery charge, CPU speed, Temperatures, presence or not of some processes,..
Then a score is established for each RULE and the winner gets its profile activated (Powersave_High, Performance Low,..)
Also cpufreqd gets acpi event through its socket. Acpid package is required to trigger event from /proc/acpi/event events.

As an example I have currently this strategy:
When battery is >70 but CPU<20, set it to 1.2Ghz (save the planet and my ears eh)
When battery is >70 and CPU>20, set it to 1.6Ghz
When battery is <70 but CPU<20, set it to 600Mhz
When battery is <70 and CPU>20, set it to 1.2Ghz
When battery is <20, set it to 600Mhz
When temperature is too important, set it to 1.2Ghz
When mplayer, xine, vlc are running, set it to 1.6Ghz

I find it very powerfull.

Last edited by nx5000; 02-26-2007 at 09:21 AM.
 
Old 02-26-2007, 09:22 AM   #3
kanwar_rajan
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora Core 6 x64 , Bluewhite64
Posts: 32

Original Poster
Rep: Reputation: 15
hello,
thanks very much..

i will try this approach once i get the new kernel running..

i guess cpufrequtils will also support AMD speed control just as it supports speedstep..

regards,
kanwar
 
Old 02-26-2007, 09:28 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
* Cpufrequtils sets the minimal, maximal frequencies and governor ONCE, then it exits.
* Cpufreqd is a real daemon that stays and does the job explained above.
 
  


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
LXer: Live CD version of Slackware-based Bluewhite64 Linux 11.0 debuts LXer Syndicated Linux News 1 01-07-2007 02:07 AM
Slamd64 vs BlueWhite64 drewhead Slackware 4 10-06-2006 04:31 PM
LXer: Bluewhite64 11.0 RC1 LXer Syndicated Linux News 0 07-21-2006 11:54 AM
Bluewhite64-current v20060609 arny Linux - News 1 06-21-2006 03:24 AM
LXer: Bluewhite64 Linux is an unofficial port of Slackware LXer Syndicated Linux News 0 06-12-2006 02:03 AM

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

All times are GMT -5. The time now is 08:22 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