2005-09-07 20:10:26

by Brown, Len

[permalink] [raw]
Subject: battery status events (RE: Kernel 2.6.13 repeated ACPI events?)



>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of Jan De Luyck
>Sent: Monday, September 05, 2005 9:17 AM
>To: [email protected]
>Subject: Re: Kernel 2.6.13 repeated ACPI events?
>
>I'm seeing repeated ACPI events too, but of the battery kind:
>
>[Mon Sep 5 15:13:52 2005] received event "battery BAT2
>00000080 00000001"
>[Mon Sep 5 15:13:52 2005] completed event "battery BAT2
>00000080 00000001"
>[Mon Sep 5 15:14:53 2005] received event "battery BAT1
>00000080 00000001"
>[Mon Sep 5 15:14:53 2005] completed event "battery BAT1
>00000080 00000001"
>[Mon Sep 5 15:14:53 2005] received event "battery BAT2
>00000080 00000001"
>[Mon Sep 5 15:14:53 2005] completed event "battery BAT2
>00000080 00000001"
>[Mon Sep 5 15:15:55 2005] received event "battery BAT1
>00000080 00000001"
>[Mon Sep 5 15:15:55 2005] completed event "battery BAT1
>00000080 00000001"
>[Mon Sep 5 15:15:55 2005] received event "battery BAT2
>00000080 00000001"
>[Mon Sep 5 15:15:55 2005] completed event "battery BAT2
>00000080 00000001"
>
>going on forever and ever...
>
>Jan

The kernel doesn't created these messages -- presumably
they're from acpid or some other user-level daemon
that is monitoring /proc/acpi/event. Unlikely that
logging these events is necessary...

Event 0x80 on the battery device is a "Battery Status Changed"
which you'd expect to see when plugging/charging/discharging
a battery. How frequent they are depends on the rate,
the battery and the firmware that is talking to it.

Is there a GUI or something reading the battery status files?
Do these events stop when running in text mode?

Did this not happen on this box with earlier kernels?

Do the /proc/acpi/battery* files look sane --
is the status really changing?

thanks,
-Len


2005-09-11 14:05:58

by Jan De Luyck

[permalink] [raw]
Subject: Re: battery status events (RE: Kernel 2.6.13 repeated ACPI events?)

On Wednesday 07 September 2005 22:10, Brown, Len wrote:
> The kernel doesn't created these messages -- presumably
> they're from acpid or some other user-level daemon
> that is monitoring /proc/acpi/event. Unlikely that
> logging these events is necessary...
>
> Event 0x80 on the battery device is a "Battery Status Changed"
> which you'd expect to see when plugging/charging/discharging
> a battery. How frequent they are depends on the rate,
> the battery and the firmware that is talking to it.

Ah, okay. I was under the impression that they should only be shown whenever
there was an actual 'state' change, like battery is flat, is being charged,
power is unplugged, not for the change of the charge level itself.

> Is there a GUI or something reading the battery status files?
> Do these events stop when running in text mode?

There is indeed klaptopdaemon running which does monitoring of the battery
levens.

> Did this not happen on this box with earlier kernels?

I have no idea anymore when it started, but it wasn't there on a certain
earlier kernel - but then i'm talking pre 2.6.7 era. I just didn't bother
reporting it earlier, since I attributed it to a faulty dsdt line or so. I've
read that ACER laptops have their share of bad dsdt's, that's why I didn't
really bother - it works, it's just a tad annoying.
>
> Do the /proc/acpi/battery* files look sane --
> is the status really changing?

Yups, charge levels :)

Thanks,

Jan

--
Food for thought is no substitute for the real thing.
-- Walt Kelly, "Potluck Pogo"