ACPI and gcc
I fussed and fussed with this Compaq Evo N150 laptop and ACPI. ACPI utterly failed to report any useful information about the battery or anything else. No matter what, my laptop was running at 71°C, which was ridiculous.
I tried fixing the DSDT. I tried different versions of the kernel and different versions of the ACPI tools. Nothing helped in the least.
Finally, I noticed that things seemed to work properly in Knoppix 3.4. So I
began whittling away at the differences between Knoppix and what I was doing. I
found the source for the knoppix kernel in /usr/src, and the knoppix README
said that knoppix used vanilla stable kernels. I compiled a
kernel with the knoppix config, which also did not work. I racked my brain and
finally realized that the only difference between knoppix and my kernel that
there could possibly be might be the compiler. Knoppix' patch did change gcc to
gcc-2.95. So I made that change in my makefiles, and lo and behold it worked.
So ACPI code has problems with gcc3.
The moral of the story is to compile the kernel with 2.95.x where x ≥ 3, until
the kernel documentation (Documentation/Changes) says it's time to use gcc3.


