Skip to contentSkip to conversation

Strange battery discharging rate

DISCUSSION Luis Miguel Pires Neves 1 participant 1 message May 20, 2004 ACPI

lore
Share & tools
lore
#0 lore raw

Hi everybody,

I've been using ACPI on my Laptop since a longtime (2001) with a fixed DSDT following the clues given by Paul Diefenbaugh from Intel. However, it always had a strange behaviour regarding the battery status. The discharging rate seems too high:

cat /proc/acpi/battery/BAT1/state

present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            64240 mW
remaining capacity:      2022 mWh
present voltage:         15828 mV

I never worried much about it because the first battery status indicators I used never caused troubles with it and I had no time to spend on it, but recently I've been using klaptop and it keeps warning me about my battery running out just after unplugging the power, even if it still lasts for about 2 hours.

Wondering if this could be related to a not yet "perfect" dsdt, I followed recently the guidelines about fixing the DSDT and I found that the asl source of the table I've been using for years doesn't compile with the new iasl (20030918), showing:

dsdt_n.asl 252: Method(\_WAK,1,NotSerialized)
Warning 2026 - ^ Reserved method must return a value (_WAK)

dsdt_n.asl 5809: PWST,2,
Error 1051 - ^ Access width of Field Unit extends
beyond region limit

dsdt_n.asl 5812: PMST,1
Error 1051 - ^ Access width of Field Unit extends
beyond region limit

I followed the advices found on the HOWTOS regarding how to correct these bugs ( and I got a new DSDT table which I compiled into the kernel as usual, but then I lost all the battery information (/proc/acpi/battery/ becames empty) which is what I have when I don't override the DSDT table.

I returned then to my original DSDT dissassembled by the Phoenix tool some years ago, and I tried to fix it without following all the clues given by Paul (my BIOS dsdt had the famous _SB scope bug which I had to fix anyway, but also a condition where a method returned a value from a not-initialized object, needing the addition of a few lines which I was afraid of). This fixed dsdt also didn't work and I had to recompile the kernel with my old dsdt.hex produced with a old version of iasl from the same source which doesn't compile today. With it I have battery status (although with a wrong discharging rate).

Any clues any one?

My original (disassembled by the Phoenix tool whose name I don't recall) and the fixed (working) dsdt can be found in:
http://ww2.estg.iplei.pt/~lneves/files-cpq12xl515.tgz

The new fixed dsdt (compiles but doesn't work) is attached

Thanks

Luís Neves