Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-07-2005, 09:51 AM
|
#1
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
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.
|
|
|
10-07-2005, 10:09 AM
|
#2
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
I would recommend f.e. cpudyn - a CPU frequency scaling daemon.
|
|
|
10-07-2005, 10:32 AM
|
#3
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
cool! I got it, but I shall install it later I'm in the office
Thanks
|
|
|
10-08-2005, 04:42 PM
|
#4
|
LQ Newbie
Registered: Jun 2004
Location: The Netherlands
Distribution: Slackware
Posts: 17
Rep:
|
modprobe cpufreq_ondemand
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
should do it.
|
|
|
10-09-2005, 06:53 PM
|
#5
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
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.

|
|
|
10-10-2005, 10:06 AM
|
#6
|
Member
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58
Rep:
|
Iam using cpufreqd
but i want to load this deamon on startup how can i do this
|
|
|
10-10-2005, 10:51 AM
|
#7
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
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.
|
|
|
10-10-2005, 12:33 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
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.
|
|
|
10-10-2005, 03:21 PM
|
#9
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
 I didn't have that file... damn!
stupid windo... this isn't... LOL it's fine then
Peace.

|
|
|
10-10-2005, 11:15 PM
|
#10
|
Member
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58
Rep:
|
I dont have rc.cpufreqd in /etc/rc.d only ı have a conf file in /etc that cpufreqd.conf,
İ installed cpufreqd with slapt get
|
|
|
10-11-2005, 08:39 AM
|
#11
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
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 
|
|
|
10-11-2005, 09:35 AM
|
#12
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
When installing from source tarball it's copied from file named cpudyn.slackware 
|
|
|
10-11-2005, 09:45 AM
|
#13
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Original Poster
Rep:
|
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 
|
|
|
10-13-2005, 02:34 AM
|
#14
|
Member
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58
Rep:
|
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/
|
|
|
10-13-2005, 02:34 AM
|
#15
|
Member
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 58
Rep:
|
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/
|
|
|
All times are GMT -5. The time now is 11:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|