LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-16-2010, 05:06 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 289

Rep: Reputation: 77
CPU frequency scaling will not load at boot


Hello, i'm curious as to why some things are not happening at boot time (i end up having to manually load them).

In /etc/rc.d/rc.modules (near the bottom) i have set "CPUFREQ=on"
and commented out any modules not specific to my hardware.

I have left this one uncommented:
Code:
# AMD Cool&Quiet PowerNow!:
  /sbin/modprobe powernow-k8 2>/dev/null
and below the "### CPU frequency scaling policies:" i have;
Code:
  /sbin/modprobe cpufreq_ondemand 2>/dev/null
uncommented. My scaling governor is set to:
Code:
  SCALING_GOVERNOR=ondemand
Now whenever i reboot my machine `lsmod` is not showing any of either powernow-k8 or cpufreq* related modules.

I know i could use /etc/rc.d/rc.local with these:
Code:
/sbin/modprobe powernow-k8
/sbin/modprobe cpufreq_ondemand
/usr/bin/cpufreq-set -g ondemand
But seems to defeat the purpose of rc.modules, any idea why they are not being loaded at boot... ?

Code:
$ uname -a
Linux slackware 2.6.35.7 #3 SMP Mon Oct 11 01:34:00 CDT 2010 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
with slackware64-current

Cheers.

Last edited by coralfang; 11-16-2010 at 05:08 PM. Reason: typo
 
Old 11-16-2010, 05:15 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 289

Original Poster
Rep: Reputation: 77
Well i just noticed this:
Code:
$ ls -la rc.modules*
lrwxrwxrwx 1 root root    19 Nov  9 22:18 rc.modules -> rc.modules-2.6.33.4
-rwxr-xr-x 1 root root 35412 Nov 16 23:08 rc.modules-2.6.33.4
-rwxr-xr-x 1 root root 35406 Oct 11 07:25 rc.modules-2.6.35.7
I'm pretty sure this might be why, is it safe to simply link rc.modules to the newer rc.modules-2.6.35.7 seeing as i won't be using the older kernel??

EDIT:
Well, either way it worked on boot this time after relinking:
Code:
# unlink /etc/rc.d/rc.modules
# ln -s /etc/rc.d/rc.modules-2.6.35.7 /etc/rc.d/rc.modules

Last edited by coralfang; 11-16-2010 at 05:37 PM. Reason: solved
 
Old 11-16-2010, 08:32 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,263

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
From /etc/rc.d/rc.S:
Code:
# Priority is given first to a script named "rc.modules.local", then
# to "rc.modules-$FULL_KERNEL_VERSION", and finally to the plain "rc.modules".
# Note that if /etc/rc.d/rc.modules.local is found, then that will be the ONLY
# rc.modules script the machine will run, so make sure it has everything in
# it that you need.
You could have edited rc.modules-2.6.35.7 or relinked as you have done (or created rc.modules.local).
 
1 members found this post helpful.
  


Reply

Tags
amd64, cpufreqd, modules


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
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM
CPU frequency scaling PatrickMay16 General 10 07-10-2007 08:07 PM
P4 and CPU Frequency scaling tkalfaoglu Linux - Kernel 3 05-31-2006 09:56 AM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration