Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-29 Thread Adolf Winterer
Am Sonntag, 22. Juni 2008 12:48 schrieb Michael Meskes:
 On Sun, Jun 22, 2008 at 10:43:25AM +0200, Adolf Winterer wrote:
  The directory /sys/class/thermal does not exist.

 Which kernel do you run? Looks like a strange configuration here.

  Look at the temperature!
 
  $ cat /proc/acpi/thermal_zone/THRM/temperature
  temperature: -73 C

 Yes, it reports a negative temperature. But this is reported by the
 kernel. acpi only reads this information and displays it. The problem
 doesn't seem to be in acpi, but in the kernel itself.

I did some more research regarding ACPI and found out that on both systems 
there is a flawed ACPI DSDT.

Using acpidump I stored the DSDT into a file and disassembled it with iasl. 
When comiling the file back into a binary file I get one warning and two 
errors on both systems which look quite similar.

# iasl -sa dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20061109 [May 15 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl   378: Method (\_WAK, 1, NotSerialized)
Warning  1079 - ^ Reserved method must return a value (_WAK)

dsdt.dsl   419: Store (Local0, Local0)
Error4049 - ^ Method local variable is not 
initialized (Local0)

dsdt.dsl   424: Store (Local0, Local0)
Error4049 - ^ Method local variable is not 
initialized (Local0)

ASL Input:  dsdt.dsl - 5129 lines, 163766 bytes, 1797 keywords
Compilation complete. 2 Errors, 1 Warnings, 0 Remarks, 571 Optimizations

I found a suggestion how to fix the warning, but did not find anything for the 
errors. The code looks like that:

Scope (\_SI)
{
Method (_MSG, 1, NotSerialized)
{
Store (Local0, Local0)
}

Method (_SST, 1, NotSerialized)
{
Store (Local0, Local0)
}
}

I do not understand a single word from it, so there is not a real chance to 
fix it myself.

Some time ago I read about a DSDT fix that has been removed from the kernel, 
but I do not know if this is related to the problem we see here.

 Michael

-- 
Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die 
 zu seiner Entstehung beigetragen haben.   -- Albert Einstein



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-29 Thread maximilian attems
On Sun, Jun 29, 2008 at 05:17:07PM +0200, Adolf Winterer wrote:
 Am Sonntag, 22. Juni 2008 12:48 schrieb Michael Meskes:
  On Sun, Jun 22, 2008 at 10:43:25AM +0200, Adolf Winterer wrote:
   The directory /sys/class/thermal does not exist.
 
  Which kernel do you run? Looks like a strange configuration here.
 
   Look at the temperature!
  
   $ cat /proc/acpi/thermal_zone/THRM/temperature
   temperature: -73 C
 
  Yes, it reports a negative temperature. But this is reported by the
  kernel. acpi only reads this information and displays it. The problem
  doesn't seem to be in acpi, but in the kernel itself.
 
 I did some more research regarding ACPI and found out that on both systems 
 there is a flawed ACPI DSDT.
 
 Using acpidump I stored the DSDT into a file and disassembled it with iasl. 
 When comiling the file back into a binary file I get one warning and two 
 errors on both systems which look quite similar.
 
 # iasl -sa dsdt.dsl
 
 Intel ACPI Component Architecture
 ASL Optimizing Compiler version 20061109 [May 15 2007]
 Copyright (C) 2000 - 2006 Intel Corporation
 Supports ACPI Specification Revision 3.0a
 
 dsdt.dsl   378: Method (\_WAK, 1, NotSerialized)
 Warning  1079 - ^ Reserved method must return a value (_WAK)
 
 dsdt.dsl   419: Store (Local0, Local0)
 Error4049 - ^ Method local variable is not 
 initialized (Local0)
 
 dsdt.dsl   424: Store (Local0, Local0)
 Error4049 - ^ Method local variable is not 
 initialized (Local0)
 
 ASL Input:  dsdt.dsl - 5129 lines, 163766 bytes, 1797 keywords
 Compilation complete. 2 Errors, 1 Warnings, 0 Remarks, 571 Optimizations
 
 I found a suggestion how to fix the warning, but did not find anything for 
 the 
 errors. The code looks like that:
 
 Scope (\_SI)
 {
 Method (_MSG, 1, NotSerialized)
 {
 Store (Local0, Local0)
 }
 
 Method (_SST, 1, NotSerialized)
 {
 Store (Local0, Local0)
 }
 }
 
 I do not understand a single word from it, so there is not a real chance to 
 fix it myself.
 
 Some time ago I read about a DSDT fix that has been removed from the kernel, 
 but I do not know if this is related to the problem we see here.

please report bug upstream in bugzilla.kernel.org one shouldn't need to
fiddle with DSDT tables.

and please let us know the upstream bug number.

thanks

-- 
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-29 Thread Adolf Winterer
Am Sonntag, 29. Juni 2008 17:53 schrieb maximilian attems:
 On Sun, Jun 29, 2008 at 05:17:07PM +0200, Adolf Winterer wrote:
  Am Sonntag, 22. Juni 2008 12:48 schrieb Michael Meskes:
   On Sun, Jun 22, 2008 at 10:43:25AM +0200, Adolf Winterer wrote:
The directory /sys/class/thermal does not exist.
  
   Which kernel do you run? Looks like a strange configuration here.
  
Look at the temperature!
   
$ cat /proc/acpi/thermal_zone/THRM/temperature
temperature: -73 C
  
   Yes, it reports a negative temperature. But this is reported by the
   kernel. acpi only reads this information and displays it. The problem
   doesn't seem to be in acpi, but in the kernel itself.
 
  I did some more research regarding ACPI and found out that on both
  systems there is a flawed ACPI DSDT.
 
  Using acpidump I stored the DSDT into a file and disassembled it with
  iasl. When comiling the file back into a binary file I get one warning
  and two errors on both systems which look quite similar.
 
  # iasl -sa dsdt.dsl
 
  Intel ACPI Component Architecture
  ASL Optimizing Compiler version 20061109 [May 15 2007]
  Copyright (C) 2000 - 2006 Intel Corporation
  Supports ACPI Specification Revision 3.0a
 
  dsdt.dsl   378: Method (\_WAK, 1, NotSerialized)
  Warning  1079 - ^ Reserved method must return a value
  (_WAK)
 
  dsdt.dsl   419: Store (Local0, Local0)
  Error4049 - ^ Method local variable is not
  initialized (Local0)
 
  dsdt.dsl   424: Store (Local0, Local0)
  Error4049 - ^ Method local variable is not
  initialized (Local0)
 
  ASL Input:  dsdt.dsl - 5129 lines, 163766 bytes, 1797 keywords
  Compilation complete. 2 Errors, 1 Warnings, 0 Remarks, 571 Optimizations
 
  I found a suggestion how to fix the warning, but did not find anything
  for the errors. The code looks like that:
 
  Scope (\_SI)
  {
  Method (_MSG, 1, NotSerialized)
  {
  Store (Local0, Local0)
  }
 
  Method (_SST, 1, NotSerialized)
  {
  Store (Local0, Local0)
  }
  }
 
  I do not understand a single word from it, so there is not a real chance
  to fix it myself.
 
  Some time ago I read about a DSDT fix that has been removed from the
  kernel, but I do not know if this is related to the problem we see here.

 please report bug upstream in bugzilla.kernel.org one shouldn't need to
 fiddle with DSDT tables.

 and please let us know the upstream bug number.

For your reference, the bug number is 11010.
http://bugzilla.kernel.org/show_bug.cgi?id=11010

 thanks




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-28 Thread Adolf Winterer
Am Dienstag, 24. Juni 2008 13:35 schrieb Michael Meskes:
 On Tue, Jun 24, 2008 at 07:42:28AM +0200, Adolf Winterer wrote:
   One more test please. Could you install and boot into the current
   2.6.25 kernel in sid?
 
  I'd like to skip that, if possible, because as far as I know the NVidia
  driver will not work with 2.6.25, which would leave me with nv, the 2D
  only driver. Is there another way of testing this?

 I don't really see the problem. You can have both kernels installed at
 the same time. Just install the 2.6.25 package, boot into this kernel
 once, test acpi, boot back into 2.6.24 and remove the 2.6.25 package
 again.

Hello Michael,

I have a second system available now which shows the same behaviour, it is 
also a Shuttle barebone, but it is brand new and still available for tests. I 
installed the OS which installed kernel 2.6.22 (lenny). The temperature is 
always reported to be 40 degrees C, absolutely independent from the 
circumstances (yesterday and today). I updated to kernel 2.6.24 (lenny). 
Nothing changed. Fan is on, temperature is 40 C. Then I updated to 2.6.25 
(sid). And again: no change in temperature or fan state.

After that I did some more research and found that value stored in the file
/proc/acpi/thermal_zone/THRM/polling_frequency
is always polling disabled. I guess this indicates that the values never 
gets updated. Neither the temperature nor the state of the fan.

Asking Google I found some reports in blogs and fora (Debian forum and Ubuntu 
forum) reporting the same problem: Absolutely NO update of the temperature 
and wildly absurd values (everything from -270 C to over 80 C).

Some reporters could fix the problem by manually changing the dsdt (reading 
the table into a file, disassembling it, changing the code, recompiling it 
and then copying it back into the original place). The temperature is 
reported correctly the and gets updated. And the fan is controlled 
accordingly.

There should be a repository of dsdt files on 
http://www.lesswatts.org/projects/acpi/, but I could not access the site as 
the connection always times out.

Here are the first bytes of my dsdt of the older system:
  44 53 44 54 85 42 00 00  01 0b 58 50 43 20 20 20  |DSDT.BXPC   |
0010  53 44 33 32 56 31 30 00  00 10 00 00 4d 53 46 54  |SD32V10.MSFT|

The systems that have been reported to be affected have been from many major 
brands, so this seems to be more or less widespread.

Regards,
  Adolf

 Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-25 Thread Michael Meskes
On Tue, Jun 24, 2008 at 07:42:28AM +0200, Adolf Winterer wrote:
  One more test please. Could you install and boot into the current 2.6.25
  kernel in sid?
 
 I'd like to skip that, if possible, because as far as I know the NVidia 
 driver 
 will not work with 2.6.25, which would leave me with nv, the 2D only driver. 
 Is there another way of testing this?

I don't really see the problem. You can have both kernels installed at
the same time. Just install the 2.6.25 package, boot into this kernel
once, test acpi, boot back into 2.6.24 and remove the 2.6.25 package
again.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-24 Thread Adolf Winterer
Am Montag, 23. Juni 2008 18:42 schrieb Michael Meskes:
 On Sun, Jun 22, 2008 at 11:18:34PM +0200, Adolf Winterer wrote:
  The kernel is the current kernel from Debian testing:
  # uname -a
  Linux pandora 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008 x86_64
  GNU/Linux
 
  It's in the package linux-image-2.6.24-1-amd64, which has kernel
  version 2.6.24-7.

 One more test please. Could you install and boot into the current 2.6.25
 kernel in sid?

I'd like to skip that, if possible, because as far as I know the NVidia driver 
will not work with 2.6.25, which would leave me with nv, the 2D only driver. 
Is there another way of testing this?

 Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-23 Thread Michael Meskes
On Sun, Jun 22, 2008 at 11:18:34PM +0200, Adolf Winterer wrote:
 The kernel is the current kernel from Debian testing:
 # uname -a
 Linux pandora 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008 x86_64 
 GNU/Linux
 
 It's in the package linux-image-2.6.24-1-amd64, which has kernel version 
 2.6.24-7.

One more test please. Could you install and boot into the current 2.6.25
kernel in sid?

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-22 Thread Adolf Winterer
Am Samstag, 21. Juni 2008 11:09 schrieb Michael Meskes:
 On Fri, Jun 20, 2008 at 09:11:35PM +0200, Adolf Winterer wrote:
  Package: acpi
  Version: 0.09-5
  ...

 Could you please try the sid version 1.1-1? If it still fails please

Yes, it still fails with the sid version of the package.

 send me your /proc/acpi and /sys/class/thermal ans
 /sys/class/power_supply dirs as tarball.

The directory /sys/class/thermal does not exist.

The directory /sys/class/power_supply is empty.

The directory /proc/acpi/ is populated with the files I'd expect to be there, 
but cannot be tarred, the resulting files in the tarball alway have length 
zero and thus are empty. If I try to use the du tool to estimate the size 
of the /proc/acpi/ directory it returns zero as size. There is something 
special to these directories as I see length zero as well when I use the ls 
command. But I can retrieve data if cat is interactively used on the files 
in /proc/acpi.

$ ls -l /proc/acpi/
insgesamt 0
dr-xr-xr-x 2 root root 0 22. Jun 10:33 ac_adapter
dr-xr-xr-x 2 root root 0 22. Jun 10:33 battery
dr-xr-xr-x 3 root root 0 22. Jun 10:33 button
-r 1 root root 0 22. Jun 10:33 dsdt
dr-xr-xr-x 2 root root 0 22. Jun 10:33 embedded_controller
-r 1 root root 0 22. Jun 10:33 event
-r 1 root root 0 22. Jun 10:33 fadt
dr-xr-xr-x 3 root root 0 22. Jun 10:33 fan
-r--r--r-- 1 root root 0 22. Jun 10:33 info
dr-xr-xr-x 2 root root 0 22. Jun 10:33 power_resource
dr-xr-xr-x 4 root root 0 22. Jun 10:33 processor
-rw-r--r-- 1 root root 0 22. Jun 10:33 sleep
dr-xr-xr-x 3 root root 0 22. Jun 10:33 thermal_zone
dr-xr-xr-x 2 root root 0 22. Jun 10:33 video
-rw-r--r-- 1 root root 0 22. Jun 10:33 wakeup

$ du -h /proc/acpi/
0   /proc/acpi/video
0   /proc/acpi/battery
0   /proc/acpi/ac_adapter
0   /proc/acpi/button/power/PWRB
0   /proc/acpi/button/power/PWRF
0   /proc/acpi/button/power
0   /proc/acpi/button
0   /proc/acpi/thermal_zone/THRM
0   /proc/acpi/thermal_zone
0   /proc/acpi/processor/CPU1
0   /proc/acpi/processor/CPU0
0   /proc/acpi/processor
0   /proc/acpi/fan/FAN
0   /proc/acpi/fan
0   /proc/acpi/power_resource
0   /proc/acpi/embedded_controller
0   /proc/acpi/

$ ls -l /proc/acpi/thermal_zone/THRM/
insgesamt 0
-rw-r--r-- 1 root root 0 22. Jun 10:37 cooling_mode
-rw-r--r-- 1 root root 0 22. Jun 10:37 polling_frequency
-r--r--r-- 1 root root 0 22. Jun 10:37 state
-r--r--r-- 1 root root 0 22. Jun 10:37 temperature
-r--r--r-- 1 root root 0 22. Jun 10:37 trip_points

$ cat /proc/acpi/thermal_zone/THRM/state
state:   ok

Look at the temperature!

$ cat /proc/acpi/thermal_zone/THRM/temperature
temperature: -73 C

$ cat /proc/acpi/thermal_zone/THRM/cooling_mode
0 - Active; 1 - Passive

$ cat /proc/acpi/thermal_zone/THRM/trip_points
critical (S5):   60 C
passive: 50 C: tc1=4 tc2=3 tsp=60 devices=CPU0
active[0]:   50 C: devices= FAN

Should polling be disabled?

$ cat /proc/acpi/thermal_zone/THRM/polling_frequency
polling disabled

$ ls -l /proc/acpi/fan/
insgesamt 0
dr-xr-xr-x 2 root root 0 22. Jun 10:40 FAN

$ ls -l /proc/acpi/fan/FAN/
insgesamt 0
-rw-r--r-- 1 root root 0 22. Jun 10:40 state

And yes, the fan is running on full power.

$ cat /proc/acpi/fan/FAN/state
status:  on

Regards,
Adolf

 Michael

-- 
/\ASCII Ribbon Campaign
\ /
 X Against HTML
/ \in e-mail  news



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-22 Thread Michael Meskes
On Sun, Jun 22, 2008 at 10:43:25AM +0200, Adolf Winterer wrote:
 The directory /sys/class/thermal does not exist.

Which kernel do you run? Looks like a strange configuration here.

 Look at the temperature!
 
 $ cat /proc/acpi/thermal_zone/THRM/temperature
 temperature: -73 C

Yes, it reports a negative temperature. But this is reported by the
kernel. acpi only reads this information and displays it. The problem
doesn't seem to be in acpi, but in the kernel itself.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-22 Thread Adolf Winterer
Am Sonntag, 22. Juni 2008 12:48 schrieb Michael Meskes:
 On Sun, Jun 22, 2008 at 10:43:25AM +0200, Adolf Winterer wrote:
  The directory /sys/class/thermal does not exist.

 Which kernel do you run? Looks like a strange configuration here.

The kernel is the current kernel from Debian testing:
# uname -a
Linux pandora 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008 x86_64 
GNU/Linux

It's in the package linux-image-2.6.24-1-amd64, which has kernel version 
2.6.24-7.

  Look at the temperature!
 
  $ cat /proc/acpi/thermal_zone/THRM/temperature
  temperature: -73 C

 Yes, it reports a negative temperature. But this is reported by the
 kernel. acpi only reads this information and displays it. The problem
 doesn't seem to be in acpi, but in the kernel itself.

 Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-21 Thread Michael Meskes
On Fri, Jun 20, 2008 at 09:11:35PM +0200, Adolf Winterer wrote:
 Package: acpi
 Version: 0.09-5
 ...

Could you please try the sid version 1.1-1? If it still fails please
send me your /proc/acpi and /sys/class/thermal ans
/sys/class/power_supply dirs as tarball.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#487287: acpi: Negative value is show for temperature, fan constantly on

2008-06-20 Thread Adolf Winterer
Package: acpi
Version: 0.09-5
Severity: important

ACPI reports the temperature as negative value, the systems
fan is permantly on as if the system would be under a severe
load when in reality the temperature is low and the system 
is idle.

Uptime shows the the system is idle.
 21:09:51 up 46 min,  4 users,  load average: 0.16, 0.12, 0.09

But the temperature is quite odd:
cat /proc/acpi/thermal_zone/THRM/temperature
temperature: -73 C

The program sensors reports normal CPU temperature on both
cores:
Core 0:  +46.0°C  (crit = +85.0°C)
Core 1:  +48.0°C  (crit = +85.0°C)

This behaviour started after the latest acpi package got 
installed, after the system was rebooted.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi depends on:
ii  libc6 2.7-10 GNU C Library: Shared libraries

acpi recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]