Bug 2251 - Battery Removal Undetected on Dell Inspiron 5150
Summary: Battery Removal Undetected on Dell Inspiron 5150
Status: REJECTED DUPLICATE of bug 1752
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Shaohua
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-04 17:09 UTC by Jason Bouzane
Modified: 2004-03-14 22:52 UTC (History)
0 users

See Also:
Kernel Version: 2.6.x
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
ACPI dump from my laptop (42.71 KB, text/plain)
2004-03-04 17:10 UTC, Jason Bouzane
Details
dmesg file (15.31 KB, text/plain)
2004-03-14 22:42 UTC, Jason Bouzane
Details
/proc/interrupts (677 bytes, text/plain)
2004-03-14 22:42 UTC, Jason Bouzane
Details

Description Jason Bouzane 2004-03-04 17:09:18 UTC
Distribution: Mandrake 
Hardware Environment: Dell Inspiron 5150 
Software Environment: 
Problem Description: Battery Removal Undetected 
 
Steps to reproduce: Remove battery; cat /proc/acpi/battery/BAT0/state 
 
This produces the following output, which is identical to that when the battery 
was present: 
present:                 yes 
capacity state:          ok 
charging state:          unknown 
present rate:            unknown 
remaining capacity:      6450 mAh 
present voltage:         16462 mV
Comment 1 Jason Bouzane 2004-03-04 17:10:10 UTC
Created attachment 2287 [details]
ACPI dump from my laptop
Comment 2 Shaohua 2004-03-14 22:20:52 UTC
did you notice if interrupt is generated when you remove battery?
eg. compare 'cat /proc/interrupts' before remove and after before
Comment 3 Jason Bouzane 2004-03-14 22:29:00 UTC
I can't really tell with the output. Maybe you can, but I don't think there's 
enough information here to tell for sure. Here's the diff before and after: 
 
<   0:   12235163    IO-APIC-edge  timer 
<   1:      48857    IO-APIC-edge  i8042 
--- 
>   0:   12241609    IO-APIC-edge  timer 
>   1:      48881    IO-APIC-edge  i8042 
9c9 
<  15:      83025    IO-APIC-edge  ide1 
--- 
>  15:      83034    IO-APIC-edge  ide1 
11c11 
<  17:     596990   IO-APIC-level  Intel 82801DB-ICH4, eth0 
--- 
>  17:     597280   IO-APIC-level  Intel 82801DB-ICH4, eth0 
14c14 
<  20:     755733   IO-APIC-level  nvidia 
--- 
>  20:     756123   IO-APIC-level  nvidia 
17c17 
< LOC:   12231507 
--- 
> LOC:   12237953 
 
I'll try to put a printk in the ISR and see what happens. 
Comment 4 Shaohua 2004-03-14 22:33:48 UTC
ok, according to your diff file, no interrupt when you remove battery.
please check if press power button can generate interrupt?
eg.check if the value of acpi in 'cat /proc/interrupts' changed
Comment 5 Jason Bouzane 2004-03-14 22:37:09 UTC
No, the power button does not generate an interrupt. Nor does the suspend 
button or closing the lid. The ACPI interrupt count is, in fact, at zero. 
Comment 6 Shaohua 2004-03-14 22:40:25 UTC
ok, it likes an interrupt issue instead of a battery issue. please attach the 
dmesg and cat /proc/interrupts. thanks -- shaohua
Comment 7 Jason Bouzane 2004-03-14 22:42:27 UTC
Created attachment 2329 [details]
dmesg file
Comment 8 Jason Bouzane 2004-03-14 22:42:57 UTC
Created attachment 2330 [details]
/proc/interrupts
Comment 9 Jason Bouzane 2004-03-14 22:46:59 UTC
FYI: in light of this information, bug 1752 may be related to this. 
Comment 10 Shaohua 2004-03-14 22:52:10 UTC
yes, it's the same issue. 

*** This bug has been marked as a duplicate of 1752 ***

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