From: Anton Vorontsov <cbou@mail.ru>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Shem Multinymous <multinymous@gmail.com>,
Greg KH <gregkh@suse.de>,
linux-kernel@vger.kernel.org, kernel-discuss@handhelds.org,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH 3/8] Universal power supply class (was: battery class)
Date: Sat, 5 May 2007 16:32:30 +0400 [thread overview]
Message-ID: <20070505123230.GA6460@zarina> (raw)
In-Reply-To: <20070505035413.GB21359@khazad-dum.debian.net>
Hello Henrique, Shem,
On Sat, May 05, 2007 at 12:54:13AM -0300, Henrique de Moraes Holschuh wrote:
> On Fri, 04 May 2007, Shem Multinymous wrote:
> > >+enum power_supply_type {
> > >+ POWER_SUPPLY_TYPE_BATTERY = 0,
> > >+ POWER_SUPPLY_TYPE_UPS,
> > >+ POWER_SUPPLY_TYPE_AC,
> > >+ POWER_SUPPLY_TYPE_USB,
> > >+};
> >
> > How about dumb (non-USB) DC power? Any reason to distinguish it from AC?
>
> Hmm, if it should not be distinguished, it is better to rename AC to
> something that means continuous power. But I'd rather have it AC and DC, as
> something might have both supplies separate, and you might want to
> differentiate them for some (human interface) reason. After all, USB and DC
> are not really different anyway...
>
> Anyway, what IS the difference between UPS and battery, or UPS and AC/DC for
> that matter? When should UPS be used? If you have UPS there, should not
> MGG (motor-generator group) also be provided?
>
> Given that USB-power *is* usually also "dumb" (i.e. it doesn't do any
> control signaling over the USB bus for power-control purposes), IMHO it
> might be better to have just battery, AC and DC as types. And a primary and
> secondary notion too, as that is common. It would be generic.
>
> Or maybe I just didn't get the idea behind the "type" attribute :-)
>
> I'd appreciate if these were documented in the text file.
I think I got the start point of confusion. It's indeed bad to call such
power supply type as AC. Maybe I should it rename to ADAPTER? Or WALL?
type, is really `type' of power supply: imagine icon GUI application will
use for different types. Type is not alternating/direct current stuff,
it will be better to impelemnt `current_type' attribute for such matter.
As for Battery/UPS difference.. yes, they're quite similar.. but again,
imagine laptop with battery, and connected to UPS. ;-) How userspace
will differ internal battery from UPS? Yup, by type attribute. I hope
it makes sense... If not, we simply can remove UPS type.
And again, much thanks for your review and ideas!
--
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.org/bd2
next prev parent reply other threads:[~2007-05-05 16:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 21:31 [PATCH 3/8] Universal power supply class (was: battery class) Anton Vorontsov
2007-05-03 22:14 ` [Kernel-discuss] " ian
2007-05-03 22:55 ` Anton Vorontsov
2007-05-03 22:53 ` Greg KH
2007-05-03 23:08 ` CaT
2007-05-03 23:54 ` Anton Vorontsov
2007-05-04 4:55 ` Shem Multinymous
2007-05-05 3:54 ` Henrique de Moraes Holschuh
2007-05-05 12:32 ` Anton Vorontsov [this message]
2007-05-05 13:39 ` [Kernel-discuss] " pHilipp Zabel
2007-05-05 18:50 ` Jan Engelhardt
2007-05-06 21:13 ` Anton Vorontsov
2007-05-05 14:29 ` Paul Sokolovsky
2007-05-05 14:39 ` Damien Tournoud
2007-05-06 21:50 ` Anton Vorontsov
2007-05-05 13:46 ` ian
2007-05-05 14:06 ` Paul Sokolovsky
2007-05-06 18:06 ` Henrique de Moraes Holschuh
2007-05-06 21:38 ` Anton Vorontsov
2007-05-06 18:09 ` Henrique de Moraes Holschuh
2007-05-06 21:07 ` Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070505123230.GA6460@zarina \
--to=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=gregkh@suse.de \
--cc=hmh@hmh.eng.br \
--cc=kernel-discuss@handhelds.org \
--cc=linux-kernel@vger.kernel.org \
--cc=multinymous@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.