[ltp] Re: Generic battery interface
linux-thinkpad@linux-thinkpad.org
linux-thinkpad@linux-thinkpad.org
Fri, 28 Jul 2006 19:14:28 -0400
--==_Exmh_1154128468_2994P
Content-Type: text/plain; charset=us-ascii
On Sat, 29 Jul 2006 01:10:40 +0300, Shem Multinymous said:
> On 7/28/06, Valdis.Kletnieks@vt.edu <Valdis.Kletnieks@vt.edu> wrote:
> > Is there a reliable (or hack-worthy) way for the kernel to determine how
> > often the values are re-posted by the hardware?
>
> That's hardware-specific. Some drivers can know, others may just
> assume 1sec or 0.1sec or whatever.
That smells suspiciously like "We need an API for the hardware-specific
bits f code to pass the generic bits a value for this..." (and the
hardware-specific part can either ask the battery, or return a
hard-coded "10 seconds" that somebody measured, or whatever)....
--==_Exmh_1154128468_2994P
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001
iD8DBQFEyppUcC3lWbTT17ARAlN1AJ9cEta6uWR1gBUHzwGHlc2lhdRbswCg22AP
S9K/y9joglH8omXwf9DMMgY=
=yZY6
-----END PGP SIGNATURE-----
--==_Exmh_1154128468_2994P--