LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2006, 09:05 PM   #1
Nic+Tux+Duke
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
cpufreq and acpi thermal zones


I have a sony vaio laptop with an Intel P4 processor.
I have been playing with the kernel modules and userspace tools for cpufreq, but have become quite discouraged as everything I seem to do with cpufreq seems to be overridden by thermal controls elsewhere (I assume ACPI thermal zones). This is pretty annoying when my 2.4GHz processor gets knocked down to 900MHz to cool it off 1 or 2 degrees.

Basically what is happening is that the processor will get throttled down if it hits 72deg Celcius. If I compile the ACPI/Thermal as a module, and unload it, I can use cpufreq to keep the processor at full speed (2.4 GHz) and it seems to peak at about 74deg Celcius (I can tell by quickly inserting the thermal module and checking temp)

What I am wondering is if there is anywhere on the system that I can change the thermal zones. I have looked through the module src for thermal.c as well as all of the cpufreq modules and cant seem to understand it enough to actually change the way the modules work. I tried using CPUfreqd, but it just gets overridden too.

Haven't found any similar questions in threads...
Any ideas?


Oh, and yes... I know there is a reason for the thermal zones being the way that they are, but I have done my research and I pretty confident that the zones can be safely changed by a small margin.
 
Old 04-19-2006, 09:42 PM   #2
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
Sony P4

Greetings Nic+Tux+Duke

I too have a Sony P4 (GRZ530)laptop. On it, I am using sonypi to control frequency stepping, as well as other things.

With this setup, I have watched temperatures go up and down when comipling a kernal, and it never changes the CPU speed to reduce CPU temp. As the temp goes up, the fan runs faster, and the temp never goes too high.

With a room temp of 71F the laptop runs at 46C to 55C.

Guzzi
 
Old 04-19-2006, 11:30 PM   #3
Nic+Tux+Duke
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
Mine is a PCG-GRZ660 which is apparently notorious for getting hot. The heat-sink was upgraded by sony when the previous owner had it, so it doesnt get as hot as others do, but it is still pretty hot. I have found though that if I set cpufreq with a maximum speed of 1.4GHz then it doesn't hit the thermal trip that would kick it was down in speed. The thermal trip is 72deg Celcius, but this is only the boundary between "OK" and "PASSIVE", and "CRITICAL" isn't until 95deg. I would like to have it not trip until 75deg, as it appears to top out at 74deg if maintaining 2.4GHz.

Oh well, I guess a steady 1.4GHz laptop is better than a 2.4GHz/900MHz laptop.
 
Old 05-04-2006, 07:32 PM   #4
Nic+Tux+Duke
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
ok, so after much experimentation, i have discovered the "solution" for this. since cpufreq seems to be more careful about the temp of the computer than trying to maximize speed, i have come up with the following for those of us who want the maximum speed, but also want to be able to take advantage of cpufreq scaling...

make your cpufreq scaling driver a module instead of built-in. (your specific processor driver, not the cpufreq capability).
when your module is not loaded, the processor will stay in it's current freq. if you insert the module into your running kernel, then you can set use cpufreq scaling.

if you really want, you can also insert the module, set the processor to a specific lower speed, and then rmmod the module and stay clocked at that speed too.

i.e. modprobe p4_clockmod && cpufreq-set -f 1.2GHz && rmmod p4_clockmod

hope this helps someone else too :-D
 
  


Reply

Tags
acpi, cpufreq, kernel, throttling


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing ACPI cpufreq when running on battery Yalla-One Slackware 4 12-12-2005 08:15 AM
Broken Acpi thermal sensors Half_Elf Linux - Hardware 2 03-25-2005 10:18 PM
ACPI Thermal Zone vs lmsensors!?!? TomaCzar Linux - Hardware 2 11-15-2004 08:49 AM
What's the deal with ACPI, cpufreq, and powernow-k7 on Emachines m5310 adamis Linux - Laptop and Netbook 10 02-14-2004 01:55 AM
ACPI thermal Issues benguin Linux - General 2 01-12-2004 11:01 PM


All times are GMT -5. The time now is 01:59 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