Re: [2.6.24-rc1][BUG] Oops on battery removal

Rolf Eike Beer
2007-11-02T14:20:16Z

[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]

Alexey Starikovskiy wrote:
> Rolf Eike Beer wrote:
> > Alexey Starikovskiy wrote:
> >> Rolf Eike Beer wrote:
> >>> Alexey Starikovskiy wrote:
> >>>> Rolf Eike Beer wrote:
> >>>>> Rolf Eike Beer wrote:
> >>>>>> Hi,
> >>>>>>
> >>>>>> this happened while I removed my battery on bootup. Complete dmesg
> >>>>>> is attached. Kernel is 2.6.24-rc1-git of yesterday (last commit was
> >>>>>> d919fd433b5823d1cf9d0688eb2eec183de9b74c).
> >>>>>
> >>>>> Ok, I found out that it has nothing to do with the actual removal as
> >>>>> it seems. When I start the laptop with battery already detached I get
> >>>>> the same error.
> >>>>
> >>>> Please check if this patch helps.
> >>>
> >>> It made things worse:
> >>
> >> How about this patch?
> >
> > Ehm, that is the same patch as before!
>
> Yes, sorry... Two patches in parallel -- not good.

Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>

It makes the crash go away. But there is something weird going on. Before I
logged into X I did an "cat /proc/acpi/battery/BAT1/*" and it showed the
battery as present with some (random?) values. Now I'm in X and everything
looks fine there (as in "not present").