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.
Created attachment 2816 [details] kernel config for badly behaving kernel
Created attachment 2817 [details] dmidecode output
Created attachment 2818 [details] acpidmp output
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.
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
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/*/* ?
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. :)
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
still fails in linux-2.6.9?
Yes, at least with 2.6.9-1.3_FC2 (Fedora Core 2 update kernel)
Did you have the TCO watchdog running?
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 ***
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.