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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Sunday, April 15, 2007 - 3:50 pm

Hi,

On Mon, Apr 16, 2007 at 12:08:54AM +0200, Ondrej Zajicek wrote:

No, sorry. Common units is main goal of that class. If you're saying
"energy" you always know that it's uWh. It's better for both userspace
(don't bother to parse anything from kernel) and kernel itself.

No need to invent new kernel<->userspace protocols, no need to do
useless string manipulations in kernel itself.


Current battery class assumes values are not averaged. I.e. momentary
values. In general, it's userspace' job to collect statistics. Though,
if hardware can report only average values, it's just okay to use
usual attributes.

Also, if you your battery can collect and report its approximated values
in additional to momentary values, you're free to add _AVG attributes
to standard ones and use them.


Thanks for comments!

-- 
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.org/bd2
-
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)