LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-07-2005, 09:51 AM   #1
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
laptop cpufreq events


I've compiled kernel 2.6.13.2 for my laptop with CPU frequency scaling enabled (everything built-in), the default governor is userspace but performance, powersave and conservative governors are enabled too. I've included the AMD Opteron / Athlon 64 cpufreq driver (the laptop has an AMD Athlon 64 3000+ processor) and it actually works: when the laptop boots without the AC cable plugged in the processor is at low frequency (800 MHz), when it boots with the AC cable plugged in the processor is at high frequency (1600 MHz).

My issue is that I don't want to reboot the computer in order to change the processor's frequency, I'd like to use some program or daemon which catchs these (and maybe other) events and do it automaticaly. I don't know what to use, any suggestions?

Thanks in advance

Peace.

Last edited by raska; 10-07-2005 at 11:12 AM.
 
Old 10-07-2005, 10:09 AM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
I would recommend f.e. cpudyn - a CPU frequency scaling daemon.
 
Old 10-07-2005, 10:32 AM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
cool! I got it, but I shall install it later I'm in the office

Thanks
 
Old 10-08-2005, 04:42 PM   #4
YellowBull
LQ Newbie
 
Registered: Jun 2004
Location: The Netherlands
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
modprobe cpufreq_ondemand
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

should do it.
 
Old 10-09-2005, 06:53 PM   #5
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by YellowBull
modprobe cpufreq_ondemand
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

should do it.
thanks for the advice YellowBull but that's not exactly what I wanted. I have got the cpudyn program and works like a charm, it's just what I needed.

Thanks again anyway.

Peace.
 
Old 10-10-2005, 10:06 AM   #6
komuthan
Member
 
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58

Rep: Reputation: 15
Iam using cpufreqd
but i want to load this deamon on startup how can i do this
 
Old 10-10-2005, 10:51 AM   #7
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by komuthan
Iam using cpufreqd
but i want to load this deamon on startup how can i do this
add the command to your /etc/rc.d/rc.local file, this file is run when system boots.
try to include full path to the program.

you can look for the running process with ps -ef and check the syntax, copy it to the file.
 
Old 10-10-2005, 12:33 PM   #8
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
I've add following in /etc/rc.d/rc.local:

Code:
# Start CPU frequency and disk spindown control daemon
if [ -x /etc/rc.d/rc.cpudynd ]; then
        /etc/rc.d/rc.cpudynd start
fi
rc.cpudyn startup script has to be found in cpudyn source tarball.
 
Old 10-10-2005, 03:21 PM   #9
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
I didn't have that file... damn!

stupid windo... this isn't... LOL it's fine then

Peace.
 
Old 10-10-2005, 11:15 PM   #10
komuthan
Member
 
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58

Rep: Reputation: 15
I dont have rc.cpufreqd in /etc/rc.d only ı have a conf file in /etc that cpufreqd.conf,
İ installed cpufreqd with slapt get
 
Old 10-11-2005, 08:39 AM   #11
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by komuthan
I dont have rc.cpufreqd in /etc/rc.d only ı have a conf file in /etc that cpufreqd.conf,
İ installed cpufreqd with slapt get
albeit, we were talking about the file /etc/rc.d/rc.cpudynd
 
Old 10-11-2005, 09:35 AM   #12
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
When installing from source tarball it's copied from file named cpudyn.slackware
 
Old 10-11-2005, 09:45 AM   #13
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by dunric
When installing from source tarball it's copied from file named cpudyn.slackware
mmmm ... interesting... that's why I didn't even noticed it... I should look for it, thanks
 
Old 10-13-2005, 02:34 AM   #14
komuthan
Member
 
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58

Rep: Reputation: 15
ok I found a good application for this job "cpuspeedy"
it has a gtkbased graphical user interface and does the job perfect
http://cpuspeedy.sourceforge.net/
 
Old 10-13-2005, 02:34 AM   #15
komuthan
Member
 
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58

Rep: Reputation: 15
ok I found a good application for this job "cpuspeedy"
it has a gtkbased graphical user interface and does the job perfect
http://cpuspeedy.sourceforge.net/
 
  


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
cpufreq and pentium M - Fans are almost always on!!! nelsonnery Linux - Hardware 11 04-12-2006 06:45 AM
Gkrellm CPUFreq Plugin Chryzmo Linux - Software 2 12-01-2005 12:48 AM
cpufreq crash on shutdown butters64 Linux - Software 0 11-29-2005 09:25 PM
powernowd and cpufreq kalvadar Linux - Newbie 0 02-07-2005 07:57 PM
/proc/cpufreq and throttling spyderusa11 Linux - Laptop and Netbook 8 04-01-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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