LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-27-2008, 02:26 PM   #1
uraldinho
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
ACPI temperature reading makes my CPU throttle


Hi,

when on batteries my laptop CPU throttles and becomes unusable. I've been searching the forums and found the cause of the problem, but I need your help to solve it.

The problems is, independent of what CPU frequency mode I am on, at one point ACPI reaches the trip points and the CPU throttles. The problem is that sensors gives me a temperature less than 50C but the ACPI reads more than 90C.

Here is my data:
OS: Ubuntu
kernel: 2.6.24-16-generic
laptop model: HP dv5000
CPU: AMD Turion 2GHz

output of "cat /proc/acpi/thermal_zone/THRM/trip_points"
Code:
critical (S5):           94 C
passive:                 90 C: tc1=2 tc2=5 tsp=50 devices=CPU0
Output of "sensors"
Code:
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:  +50.0°C
Output of cpufreq-info
Code:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 1.80 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 800 MHz and 2.00 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
output of "cat /proc/acpi/processor/CPU0/throttling"
Code:
state count:             8
active state:            T0
state available: T0 to T7
states:
   *T0:                  100%
    T1:                  87%
    T2:                  75%
    T3:                  62%
    T4:                  50%
    T5:                  37%
    T6:                  25%
    T7:                  12%
"cat /proc/acpi/thermal_zone/THRM/temperature" always gives me 0, the only time I can get a reading is when the laptop is in battery mode and the ACPI temperature is higher than 90C. When the 90C point is reached the throttling starts from T0 and goes all the way down to T7 very quickly.

I'm not sure what else I should include in this post.

Any help with the problem would be appreciated, as I can't use my laptop in battery mode.

Regards.
 
Old 07-28-2008, 02:19 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
Red face

Quote:
Originally Posted by uraldinho View Post
Hi,

when on batteries my laptop CPU throttles and becomes unusable. I've been searching the forums and found the cause of the problem, but I need your help to solve it.
It seems that ACPI doesn't work fine. See on the ACPI-linux website.
 
Old 07-28-2008, 03:20 AM   #3
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 329

Rep: Reputation: 51
I see a couple of things:

1. This may be a bug. You're using kernel 2.6.24; upgrade to 2.6.26, which may fix this bug if it really is one. You'll probably want to upgrade lm_sensors as well.

2. You're using the "ondemand" governor. Try setting the "performance" governor and see what happens.

Let me know if this works.

Mike
 
Old 07-28-2008, 11:06 AM   #4
uraldinho
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your replies.

Kernel 2.6.26 gave me the same results. Also, it doesn't matter if I use the CPU in "ondemand" or "performance" mode, it always goes into throttling mode after a minute of use on batteries.

I think I found what the problem is, but I don't understand why it is happening.

The problem is that I recently replaced my battery, and this problem happens only on the new battery. All the specifications of the battery are the same as the old one. I've compared all the data in "/proc/acpi/battery/BAT1/" and they are identical.

I don't understand why one battery makes my ACPI thermal zone hit 90C instantly but the other one doesn't.

I should add that my new battery doesn't cause me the same problem in XP, this happens only in Ubuntu. "HP battery health checker" in XP tells me that my new battery is fine.

Is it possible that my new battery gives slightly higher current or voltage than the old one and that sets off one of the sensors? But then, why is the reading in "/proc/acpi/battery/BAT1/" normal?
 
Old 07-29-2008, 01:46 AM   #5
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 329

Rep: Reputation: 51
Wow. I've never heard of anything like this! My only suggestion is to run it by the ACPI guys (I'm sure there's a list or forum for them somewhere). This is just bizarre.

Mike
 
Old 07-29-2008, 09:24 AM   #6
uraldinho
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by storkus View Post
Wow. I've never heard of anything like this! My only suggestion is to run it by the ACPI guys (I'm sure there's a list or forum for them somewhere). This is just bizarre.

Mike
thanks for your interest.

It's possible that there is something wrong with the battery and that interferes with the laptop. It is definitely a strange problem.
 
Old 08-26-2008, 11:25 PM   #7
uraldinho
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Just a quick update in case someone else has the same problem.

I said in my earlier post that the problem only occurs in Linux, but it happens in XP as well.

The problem is definitely with the battery. I don't understand why it is happening. The battery somehow makes my ACPI register high temperature in the core. The laptop doesn't feel hotter than normal, but the sensor readings go off the chart.

I'm gonna return the battery as faulty and hopefully I will have a better battery next time.

Regards
 
  


Reply



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
ACPI temperature monitoring pixellany Linux - General 5 07-19-2008 06:34 AM
ACPI can't detect temperature and fan speed madonion87 Linux - Laptop and Netbook 1 11-21-2007 09:13 PM
The temperature of the processor (acpi) tisam Linux - Software 2 03-15-2005 07:14 AM
Temperature Sensor Reading PhuckFonix Linux - Hardware 2 08-14-2004 02:02 PM
Full throttle cpu? corbintechboy Mandriva 1 10-03-2003 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:50 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
Open Source Consulting | Domain Registration