Iain Buchanan wrote:

> On Tue, 2007-01-02 at 01:27 -0600, »Q« wrote:
>
> > I have a Sony Vaio FS740 laptop, and I have power management set up
> > mostly to my liking, but with one problem.  ACPI receives battery
> > events when the AC is connect and when it is unconnected, but also
> > at other times, and I don't know how to distinguish.  
> 
> It could be a number of things - perhaps you have a faulty cable /
> connection, which is causing ACPI events because it thinks it's just
> been unplugged, and replugged.
> 
> Or perhaps your thinkpad sends ACPI events when the battery has
> reached certain charge levels... don't know - someone with the same
> laptop will have to comment.
> 
> Do these spontaneous ACPI events only happen when plugged in? or only
> when unplugged, or both?
.
They happen whether or not it's plugged in.  Sony won't tell anybody
how their ACPI stuff works, and AFAICT from some more googling, no one
is sure exactly what is going on with any given model.

> To get around it, perhaps you could keep "state" with a file.  eg
> (untested):

[big snip]

> HTH!

It certainly did;  thanks very much!  After some tinkering (my
understanding of testing syntax in bash scripts is pretty weak), I've
got the scheme you suggested working fine.

--
gentoo-user@gentoo.org mailing list

Reply via email to