Re: Generic battery interface

Valdis.Kletnieks
2006-07-28T15:59:12Z

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On Fri, 28 Jul 2006 18:38:13 +0300, Shem Multinymous said:
>
> Another example: on my ThinkPad, the readouts provided by the EC
> change only every 2 seconds, regardless of how much you poll it.
>
> Hence my proposal for a polling-based interface with kernel-side
> caching. This way, the hardware query rate is the minimum of two
> rates: what the application can use and what the kernel thinks is the
> hardware's change rate.

Is there a reliable (or hack-worthy) way for the kernel to determine how
often the values are re-posted by the hardware?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]