Bug 2658 - Spontaneous reboot on battery insertion
Summary: Spontaneous reboot on battery insertion
Status: REJECTED DUPLICATE of bug 4251
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 blocking
Assignee: Shaohua
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-08 10:49 UTC by Osma Ahvenlampi
Modified: 2005-07-12 02:02 UTC (History)
1 user (show)

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


Attachments
kernel config for badly behaving kernel (43.22 KB, text/plain)
2004-05-08 10:50 UTC, Osma Ahvenlampi
Details
dmidecode output (9.04 KB, text/plain)
2004-05-08 10:52 UTC, Osma Ahvenlampi
Details
acpidmp output (111.10 KB, text/plain)
2004-05-08 10:56 UTC, Osma Ahvenlampi
Details

Description Osma Ahvenlampi 2004-05-08 10:49:01 UTC
A Compaq Evo N800c laptop that has been functioning normally with kernels 2.4.18
- 2.6.2 has regressed with 2.6.4 and 2.6.5. With 2.6.4, the machine will
spontaneously reset if a battery is inserted while it is running (removing the
battery is fine, booting without the battery is fine, but when inserted, screen
goes black and machine reboots).

With 2.6.5, this happens even if the battery is in when the system is booted. It
will actually finish the boot process, but while logging in (to GNOME 2.6), it
will reset in the same fashion. Due to log files truncating while this happens,
I'm not exactly sure at which point the reboot happens, but I suspect it is when
GNOME's battery monitor applet starts.
Comment 1 Osma Ahvenlampi 2004-05-08 10:50:43 UTC
Created attachment 2816 [details]
kernel config for badly behaving kernel
Comment 2 Osma Ahvenlampi 2004-05-08 10:52:59 UTC
Created attachment 2817 [details]
dmidecode output
Comment 3 Osma Ahvenlampi 2004-05-08 10:56:12 UTC
Created attachment 2818 [details]
acpidmp output
Comment 4 Shaohua 2004-05-08 23:50:48 UTC
Please try disable the battery monitor applet (shutdown acpid), and if this 
still happen? And please do below experiment:
cat /proc/acpi/events
then insert the battery, and please attach the output from above command. 
Thanks.
Comment 5 Osma Ahvenlampi 2004-05-10 12:46:02 UTC
acpid on/off does not matter, and /proc/acpi/events can be read without
incidents (output after battery insertion below). However, "cat
/proc/acpi/battery/*/*" results in a reboot a second or two afterwards, if a
battery is connected. Again, it seems that on 2.6.4 this only happens if the
battery is inserted while the machine is running, but on 2.6.5 every time.

/proc/acpi/events:
battery C132 00000080 00000000
battery C133 00000081 00000001
battery C133 00000080 00000001
Comment 6 Shaohua 2004-05-10 20:42:26 UTC
Ok, thanks for your input. Looks like you have two battery slots. did reboot 
occur when you insert any of the battery? and please attach your demsg output 
and can you list /proc/acpi/battery/*/* ?
Comment 7 Osma Ahvenlampi 2004-05-11 10:10:28 UTC
I think the removable device slot is doubling as a secondary battery bay, I've
never tried that. Also, just inserting the battery does not crash, if I avoid
looking at the acpi status for it. 2.6.6 exhibits the same behaviour. I'll try
to get the acpi battery output saved, it's a bit challenging with the new
kernels with the reboot thing. :)
Comment 8 Osma Ahvenlampi 2004-05-11 10:35:58 UTC
Managed to flush this to disk before the crash thanks to it being delayed by a
second.

/proc/acpi/battery/C132/alarm:
present:                 no
/proc/acpi/battery/C132/state:
present:                 no
/proc/acpi/battery/C132/info:
present:                 no
/proc/acpi/battery/C133/alarm:
alarm:                   unsupported
/proc/acpi/battery/C133/state:
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      3718 mAh
present voltage:         16375 mV
/proc/acpi/battery/C133/info:
present:                 yes
design capacity:         3718 mAh
last full capacity:      3718 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 372 mAh
design capacity low:     0 mAh
capacity granularity 1:  100 mAh
capacity granularity 2:  100 mAh
model number:            Primary
serial number:           01E3
battery type:            4E4F494C
OEM info:                 COMPAQ
Comment 9 Len Brown 2004-11-15 20:45:13 UTC
still fails in linux-2.6.9? 
Comment 10 Osma Ahvenlampi 2004-11-22 08:23:51 UTC
Yes, at least with 2.6.9-1.3_FC2 (Fedora Core 2 update kernel)
Comment 11 Shaohua 2005-07-05 18:07:42 UTC
Did you have the TCO watchdog running?
Comment 12 Shaohua 2005-07-05 18:10:33 UTC
I think this is a duplicate of bug 4251. If the solution in that track can't 
work for you, please reopen this one.

*** This bug has been marked as a duplicate of 4251 ***
Comment 13 Osma Ahvenlampi 2005-07-12 02:02:34 UTC
I did intentionally enable a watchdog, at least, and my problem appeared much
earlier. However, I've switched to a new computer, so I can't verify this.

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