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 Fri, Aug 03, 2007 at 09:57:54AM -0500, Bill WIlson wrote:

> The ac_adapter file has not always been available for some
> laptop/kernel versions, so gkrellm already tries as a backup to assume
> on line state from BAT0 file charging states when the ac_adapter file
> is missing.  So the battery monitor has a good chance

Hi Bill,

So a few other programs (e.g. hald) read the offending file. So rather
than hack Gkrellm to work around this, I choose not to compile ac
adapter support in my kernel (actually I compiled it as a module, and
leave it unloaded).

Just FYI -- When I disable ac_adapter support in the kernel, Gkrellm
correctly detects if I'm plugged in or not, while the battery is
charging. But when the battery is fully charged, Gkrellm thinks it's not
connected.

Possibly because it tests for the line

    charging state:          charging

in /proc/acpi/battery/BAT0/state, but does not test for the line

    charging state:          charged

Thanks for your help,

GI

-- 
Two banks with different rates have a conflict of interest.
_______________________________________________
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.