LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2004, 12:11 AM   #1
Neo8234
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
2.6 Kernel on Dell 5150, cpufreq throttling issues


i installed fedora core 1 on my dell 5150 laptop this past week and have spent countless hours trying to get several items to work. I've finally figured out my synaptics pad configuration after about half a dozen kernel recompiles and many different XF86Config options/driver changes. I had to do a rather strange configuration, a combination of many different articles I read on the touchpad...

I have also gotten cpufreq controls to work to some degree. I am able to manually set and control the different frequencies and cpufreqd & cpudyn work to some degree. However, i believe the problem is with the scaling_driver that is enabled. I compiled both the original speedstep_centrino and speedstep_ich modules, as well as the p4-clockmod. I assumed that the ICH module would be the correct one to use because my laptop has an ICH4 chipset. however, i'm not able to locate the name of the module so that i may load it with modprobe (speedstep_ich generates a not found msg). The speedstep_centrino module will not load because it tells me that there is no such device. Only p4-clockmod will load.

p4-clockmod gives me some limited functionality such as properly outputting the frequency to the /proc & /sys interfaces and to some degree allows me to echo modify the max_speed, min_speed, and speed variables.

Unfortunately, cpufreqd & cpudyn will not work properly under this configuration (I believe due to the driver issue mentioned above). cpufreqd only lowers the speed when AC is disconnected, and doesn't raise it back up based on CPU or when AC is reconnected. cpudynd for some reason keeps the frequency at 3GHz (with occasional 1 second drops to 1533MHz), completely ignoring CPU usage. I am sure that my cpufreqd config is correct, though i'm not sure how to configure settings for cpudynd like cpufreqd allows.

I'll be happy to provide whatever info about my system is needed, here is some basic info:

2.6.2 custom compiled kernel (used on a Fedora Core 1 system)
Dell 5150 Laptop
3.06GHz Mobile Pentium 4 (no HT) In windows runs at 1.6 & 3.06 GHz depending on CPU load
I think all necessary cpufreq modules are compiled into kernel or as modules, though feel free to question me on that.
Newest versions of cpufreqd & cpudyn

Thanks for any help!
 
Old 02-09-2004, 10:28 AM   #2
Neo8234
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
a note on the driver thing... From what i've read, the centrino driver (one of them) should work under my system... please let me know if this is not the case.
 
Old 02-09-2004, 07:43 PM   #3
Neo8234
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
wow you know i actually just discovered how to make cpufreqd work properly.... it turns out that having it set the cpufreq file to userspace mode was the problem. Also, just setting the system to performance mode would always result in the highest frequency being used, regardless of the set frequency range (40-100%) and CPU usage.

I just created extra profiles and basically configured the thing to always run at a certain frequency depending on the cpu usage. I set it to run in performance mode but only give it an interval of 98-100% when I want it to have full power and 48-52% when I want it at half speed. I was still wondering about the driver modules though... maybe the centrino versions are only supposed to work with Mobile Pentium 4-M chips, not Mobile Pentium 4?

Anyway, I have attached a copy of my cpufreqd.conf file for all those interested.. I suggest anybody who is having trouble getting cpufreqd to properly adjust cpu frequencies based on processor usage take a look at it....

Used in linux 2.6.2 w/ p4-clockmod driver


cpufreqd.conf
==========================================
# this is a comment
#
# you need: 1 [General] section,
# 1 or more [Profile] sections
# 1 or more [Rule] sections
#
# a section ends at the first blank line
#
# [Rule] sample:
# [Rule]
# name=sample_rule
# ac=on # (on/off)
# battery_interval=0-10
# cpu_interval=30-60
# programs=xine,mplayer
# profile=sample_profile
#
# [Profile] sample:
# [Profile]
# name=sample_profile
# minfreq=10%
# maxfreq=100%
# policy=performance
#
# see CPUFREQD.CONF(5) manpage for a complete reference

[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=1
pm_type=acpi #(acpi, apm or pmu)
# Uncomment the following line to enable ACPI workaround (see cpufreqd.conf(5))
# acpi_workaround=1
verbosity=4 #(if you want a minimal logging set to 5)

[Profile]
name=hi_boost
# replace mifreq and maxfreq values
# with actual values of your system
minfreq=47%
maxfreq=101%
policy=performance

[Profile]
name=medium_boost
# replace mifreq and maxfreq values
# with actual values of your system
minfreq=48%
maxfreq=52%
policy=performance

[Profile]
name=lo_boost
# replace mifreq and maxfreq values
# with actual values of your system
minfreq=24%
maxfreq=52%
policy=powersave

[Profile]
name=lo_power
# replace mifreq and maxfreq values
# with actual values of your system
minfreq=20%
maxfreq=30%
policy=powersave

# conservative mode when not AC
[Rule]
name=low_batt
ac=off # (on/off)
battery_interval=0-30
cpu_interval=0-100
profile=lo_power

# conservative mode when not AC
[Rule]
name=conservative
ac=off # (on/off)
battery_interval=30-100
cpu_interval=0-40
profile=lo_boost

# need some power
[Rule]
name=lo_cpu_boost
ac=off # (on/off)
battery_interval=30-100
cpu_interval=30-80
profile=medium_boost

# need big power (not if battery very low)
[Rule]
name=hi_cpu_boost
ac=off # (on/off)
battery_interval=50-100
cpu_interval=70-100
profile=hi_boost

# medium power on AC to reduce temp
[Rule]
name=AC_med
ac=on
cpu_interval=75-100
profile=hi_boost

# full power when AC
[Rule]
name=AC_on
ac=on # (on/off)
cpu_interval=0-75
profile=medium_boost

# full power when watching DVDs and not AC:
# this is the last rule and takes less
# precedence with respect to the others
[Rule]
name=dvd_watching
ac=off # (on/off)
battery_interval=0-100
programs=xine,mplayer,avidemux,gcc
cpu_interval=0-100
profile=hi_boost
 
  


Reply


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
Wireless on Dell 5150 Zakirium Linux - Wireless Networking 0 12-01-2005 10:20 PM
Mandrake official 10.1 Dell 5150 post install issues wcujoe Mandriva 8 01-25-2005 12:39 PM
Dell Inspiron 5150 Modem saklay Linux - Laptop and Netbook 47 08-08-2004 10:21 PM
what to install n a Dell 5150? purevil Linux - Laptop and Netbook 6 08-04-2004 12:08 AM
/proc/cpufreq and throttling spyderusa11 Linux - Laptop and Netbook 8 04-01-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration