Re: [gentoo-user] Re: acpi battery events, Sony FS740

2007-01-03 Thread Iain Buchanan
On Wed, 2007-01-03 at 19:46 -0600, »Q« wrote:
> Iain Buchanan wrote:
> 

> > 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.

cool, thanks for letting me know! glad I could help.

I just had a thought though - the file you use should probably go
somewhere more sane, like /var/run or something like that.

cya,
-- 
Iain Buchanan 

I'm sure a mathematician would claim that 0 and 1 are both very
interesting numbers.  :-)
 -- Larry Wall in <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: acpi battery events, Sony FS740

2007-01-03 Thread »Q«
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