Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-27-2006, 09:24 AM   #1
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 61

Rep: Reputation: 26
no CPU frequency scaling /no cpufreqd.conf , what to do?

I am planning to switch completely to Slackware,
one of the last things left is the CPU frequency scaling.
I have a AVERATEC laptop, Sempron 2600+.
When I install SUSE 9.2/10.0,I get automatically an icon(battery or plug), clicking on it I change my powersave options, CPU freq. options etc.
There is this YAST power management module, too.

In Slackware I compiled and installed kernel, and first I didn't even get /proc/acpi/thermal_zone directory, and KDE control center told:
"partial ACPI installation".

Ok, as I found out in the LQ forums, one has to build ACPI features in the kernel, ( I had them as modules on Suse, and it worked fine)
Ok, I recompiled kernel with ACPI built in, now I have ACPI installed.

But there is no CPU freq. scaling.

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor -doesn't exist
/proc/cpufreq -doesn't exist
/etc/cpufreqd.conf -doesn't exist

Question: what about cpu freuqency control daemons?
Are there no such daemons/scripts in the default SLackware 10.2 install?
And if there are some, how will I enable them?

Another question
I see that there are several utilities for CPU scaling: like cpufreqd, cpuspeedy, cpudyn etc. And what about powersave utilites -do they include CPU scaling functions?
In other words: if I have to get something, which is not in the custom install, which program will deal with ALL powersave features(including scaling)?

Last edited by akus; 06-27-2006 at 09:26 AM.
Old 06-27-2006, 09:46 AM   #2
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
I use different notebooks with default Slackware kernel ( actual) and with full ACPI support and cpu scaling.

I usually make an initrd.gz with ACPI kernel modules and install a little program "cpuspeed" which does the rest.

In /boot I write as root in a terminal:

mkinitrd -c -k -m ac:button:battery:fan:processor:thermal:video

and add a line to my /etc/lilo.conf after the line image= ....

initrd = /boot/initrd.gz

and rerun

lilo -v

and reboot.

Then I load the needed modules for cpu frequence scaling, I think in your case

/sbin/modprobe powernow-k7

and start

/sbin/cpuspeed -d.

The last two commands I have in my /etc/rc.d/rc.local, so that they start by default.

I was successful with this method on all notebooks (Compaq EvoN600c, EvoN400c, Armada M700, Amilo, Medion MD-Series, Toshiba Libretto).

The program "cpuspeed" you find with google. It works much better than "cpufreqd" and you don't need an configuration file. "Userspace" (Slackware default cpu scaling) is enough and your CPU works great. Just install it and it will be fine ...


Last edited by Fluxx; 06-27-2006 at 09:50 AM.
Old 06-28-2006, 04:57 AM   #3
Registered: May 2006
Location: Netherlands
Distribution: Slackware64
Posts: 61

Original Poster
Rep: Reputation: 26
Thanks, Fluxx!
I'll check cpuspeed program (going to compile and installl today)
But concerning initrd - i think it is only extra work, it is much "easier" just to compile acpi modules in the kernel, and then you don't have to specify initrd in lilo/grub -one line less!
Old 06-28-2006, 06:11 AM   #4
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
Time needed to create an initrd.gz and change and reinstall LiLO/GRUB: 30 seconds.

Time to compile a new kernel: 20 minutes upwards.

... and for an initrd.gz you do NOT need kernelsources and need no time to upgrade kernelsources with every new kernel.

Just my thoughts ...



cpufreqd, laptops

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CPU Frequency Scaling runa Linux - Hardware 5 04-24-2011 11:23 AM
P4 and CPU Frequency scaling tkalfaoglu Linux - Kernel 3 05-31-2006 09:56 AM
CPU frequency-scaling cccc Linux - Hardware 1 03-22-2006 12:13 AM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM
CPU frequency scaling on Pentium M Khang Linux - Laptop and Netbook 2 03-23-2005 06:16 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:28 AM.

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