Click to See Complete Forum and Search --> : 2.6 Kernel on Dell 5150, cpufreq throttling issues


Neo8234
02-09-2004, 01:44 AM
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!

mdwatts
02-09-2004, 07:57 AM
I'm not too sure what your question is unless it's the following.

Originally posted by Neo8234
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.


Have you had a look in the new kernels /lib/modules directories to try and find the correct module to load for speedstep_ich?

Anything in /usr/src/linux/Documentation/Configure.help on the correct module name?

Neo8234
02-09-2004, 03:17 PM
hmm although i've had several configurations telling the kernel to compile as a module or include the speedstep_ich, there is no module by that name in /lib/modules/2.6.2/kernel/arch/i386/kernel/cpu/cpufreq, only acpi.ko & speedstep-centrino.ko.

I guess I have several questions. First, I would like to know if my initial assumption that the centrino modules should work is correct. If it was, I would like to know how to fix it. If not, I would like to know what I might do to make cpufreqd or cpudyn to work properly.

Thanks!

Edit:
I did discover the files for speedstep-ich in /usr/src/linux-2.6.2/arch/i386/kernel/cpu/cpufreq
they are called speedstep-ich.c & speedstep-ich.o. Like I said though I was not able to locate them in the compiled modules folder.

elitewhiteghost
02-09-2004, 03:21 PM
What are the hardware that you have on your laptop?

Neo8234
02-09-2004, 05:46 PM
As I said above, it is an intel Mobile Pentium 4 3.06GHz (no HT, not a P4 M series either).. The mobo chipset is ICH4 and intel i810 based. I believe that's all that is relevant.

It was purchased last august so it should properly support all ACPI features.

Neo8234
02-09-2004, 08:38 PM
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. 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

elitewhiteghost
02-09-2004, 08:49 PM
I waiting for my dell 5100 with a penitum4 2.80 to come in sometime this week:)

Neo8234
02-09-2004, 09:05 PM
ahh cool, enjoy it :)

the only thing I need is to figure out how to make the system shut off the display when the lid is closed... although the lid close event doesn't register properly with acpi status, there is a /proc/acpi/button/lid/LID/status that changes to either open or closed with the state of the lid. I need to figure out an applet that reacts to this change i guess. If anybody is aware of any, let me know.

mdwatts
02-10-2004, 10:39 AM
Originally posted by Neo8234
a /proc/acpi/button/lid/LID/status that changes to either open or closed with the state of the lid. I need to figure out an applet that reacts to this change i guess. If anybody is aware of any, let me know.

I was reading something on that yesterday. Could have been a Google for Linux search or freshmeat.net or maybe when I was viewing the 2.6 kernel mailing list.