Re: Battery display generates ACPI events (stops X from powering off display)

Gautam Iyer <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Thu, Aug 02, 2007 at 08:12:20PM -0500, Bill WIlson wrote:

> > > > I noticed that when I enable battery display in Gkrellm, an ACPI
> > > > event is generated every time gkrellm checks the battery status.
> > > > I have acpid running, and the message logged by acpid is
> > > > something like
> > > > 
> > > >     acpid: group=processor, action=processor, device=CPU1, value=00000000, id=00000080
> > > > 
> > > > I only have one CPU on my system (CPU0).
> > > >
> > > > Of course, reading the battery status and CPU temperature
> > > > manually from the files /proc/acpi/battery/BAT0/* does not
> > > > generate this ACPI event.
> > > > 
> > > > Any idea why, and how I can stop this?
> > >
> > > I'm very sure this is not the normal behavior since I have the
> > > battery display enabled and I'm not experiencing this... I was
> > > using it with the kernels 2.6.18, 2.6.21 and right now with the
> > > 2.6.22 and don't have that kind of problems... Maybe something
> > > with your acpi?? Which is your notebook? What distro are you
> > > using?
> > 
> > Well, I've seen this behaviour with 2.6.19, and 2.6.21 (also 22). I
> > use Gentoo, and my laptop is a Linux Certified laptop (LC2200E).
> 
> The battery monitor might read an ac_adaptor state file (if available)
> in addition to BAT0 files, so try reading that also manually as a
> test. Run gkrellm -d 0x8000 and at the top of the output you can see
> all of the battery files gkrellm is reading.

Aha. So doing this showed that gkrellm reads

    /proc/acpi/ac_adapter/AC0/state

Now just cat'ing that file generates the above ACPI event and cause X to
wake my monitor up from sleep.

Any idea what I can do about this? This certainly looks like a bug to
me. But I'm not sure where to report it. Linux kernel?

Also, as a work-around, is there some quick hack I can do to gkrellm to
avoid it reading that file? I'm getting quite tired of my scripts that
kill gkrellm after 10 mins of inactivity...

:)

Thanks,

GI

-- 
'Code Orange' -- Eat dessert first.
_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.