Re: [PATCH 3/7] [RFC] Battery monitoring class

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shem Multinymous
Date: Thursday, April 12, 2007 - 10:23 am

Hi Anton,

On 4/12/07, Anton Vorontsov <cbou@mail.ru> wrote:

That's a sound way to go around i. We just need to be careful about
naming conventions. For example, "*_charge" rather than "*_capacity,
so that we can later add "*_energy" analogously.

But specifically about {operating,charge} time remaining readouts, it
seems important to have them there from the beginning and have all
drivers implement them. Otherwise, userspace will just go ahead and
implement its own crude computation, so by the time when new
attributes and drivers are introduced, userspace will be full of bad
code. I've seen this happening with the tp_smapi ThinkPad driver -- I
introduced those attributes at a recent version, and then needed to
encourage userspace utility authors to dump their extrapolation
calcultions and use the attribute instead.

The rest of the missing attributes are not as imporant in this
respect, because userspace can't try to estimate them.

  Shem
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Wed Apr 11, 4:25 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Randy Dunlap, (Wed Apr 11, 7:53 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Greg KH, (Wed Apr 11, 8:43 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Henrique de Moraes H ..., (Thu Apr 12, 5:25 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Matthew Garrett, (Thu Apr 12, 6:08 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Thu Apr 12, 6:43 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Thu Apr 12, 7:15 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Matthew Garrett, (Thu Apr 12, 7:24 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Shem Multinymous, (Thu Apr 12, 8:00 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Thu Apr 12, 8:18 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Thu Apr 12, 9:51 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Shem Multinymous, (Thu Apr 12, 10:23 am)
Re: [Kernel-discuss] Re: [PATCH 3/7] [RFC] Battery monitor ..., Henrique de Moraes H ..., (Thu Apr 12, 11:56 am)
Re: [Kernel-discuss] Re: [PATCH 3/7] [RFC] Battery monitor ..., Henrique de Moraes H ..., (Thu Apr 12, 5:51 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Fri Apr 13, 6:49 am)
Re: [Kernel-discuss] Re: [PATCH 3/7] [RFC] Battery monitor ..., Henrique de Moraes H ..., (Fri Apr 13, 6:51 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Sat Apr 14, 5:43 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Pavel Machek, (Sun Apr 15, 12:56 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Ondrej Zajicek, (Sun Apr 15, 3:08 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Sun Apr 15, 3:50 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Henrique de Moraes H ..., (Sun Apr 15, 5:57 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Anton Vorontsov, (Sun Apr 15, 6:57 pm)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Henrique de Moraes H ..., (Mon Apr 16, 7:34 am)
Re: [PATCH 3/7] [RFC] Battery monitoring class, Pavel Machek, (Fri May 4, 2:59 am)