Bug 6835 - acpi battery/acpower states not detected correctly
Summary: acpi battery/acpower states not detected correctly
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Vladimir Lebedev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 10:43 UTC by Bas Zoetekouw
Modified: 2006-07-21 02:16 UTC (History)
0 users

See Also:
Kernel Version: 2.6.17.4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
output of dmesg -s40000 (15.48 KB, text/plain)
2006-07-14 10:44 UTC, Bas Zoetekouw
Details
dmidecode output (6.71 KB, text/plain)
2006-07-14 10:46 UTC, Bas Zoetekouw
Details
output of lspci -vv (14.03 KB, text/plain)
2006-07-14 10:47 UTC, Bas Zoetekouw
Details
/proc/interrupts (781 bytes, text/plain)
2006-07-14 10:48 UTC, Bas Zoetekouw
Details
output of acpidump (145.99 KB, text/plain)
2006-07-14 10:50 UTC, Bas Zoetekouw
Details

Description Bas Zoetekouw 2006-07-14 10:43:51 UTC
Most recent kernel where this bug did not occur: 2.6.15.1
Distribution: Ubuntu Dapper
Hardware Environment: HP/Compaq nc6120, Intel Centrino/Pentium-M
Software Environment: Ubuntu/gnome
Problem Description:

Since the 2.6.17.1 kernel, acpi sometimes doesn't correctly detect the power
status anymore: the battery life is stuck at a fixed (but seemingly random)
time, and plugging in the power plug is not detected (even though the laptop
actually keeps running with the power connected and the battery removed).

After a fresh reboot or suspend/resume cycle, everything returns to normal (the
battery life and presence of external power are detected correctly), but after a
while (several hours) it stops functioning.  The /proc/acpi/battery/C16D/state
then is fixed to something like

present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            1829 mA
remaining capacity:      1720 mAh
present voltage:         10906 mV

(with different numbers on each occurrence), even though the leds on the laptop
show that the external power is connected and the battery is charging.  The ac 
power state in /proc/acpi/ac_adapter/C16B/state simply says that the power is
off-line, regardless whether the power is connected or not.
Comment 1 Bas Zoetekouw 2006-07-14 10:44:46 UTC
Created attachment 8549 [details]
output of dmesg -s40000
Comment 2 Bas Zoetekouw 2006-07-14 10:46:23 UTC
Created attachment 8550 [details]
dmidecode output
Comment 3 Bas Zoetekouw 2006-07-14 10:47:36 UTC
Created attachment 8551 [details]
output of lspci -vv
Comment 4 Bas Zoetekouw 2006-07-14 10:48:44 UTC
Created attachment 8552 [details]
/proc/interrupts
Comment 5 Bas Zoetekouw 2006-07-14 10:50:00 UTC
Created attachment 8553 [details]
output of acpidump
Comment 6 Vladimir Lebedev 2006-07-14 16:58:40 UTC
I guess this bug is fixed in 2.6.18-rc1 (see bug 6455).
Try the 2.6.18-rc1.
Comment 7 Bas Zoetekouw 2006-07-20 00:46:00 UTC
I've been running 2.6.18-rc2 now for a couple of days, and I haven't encountered
this bug anymore.

Thanks!

Note You need to log in before you can comment on or make changes to this bug.