From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Stanislav Brabec <utx@penguin.cz>,
Eric Miao <eric.y.miao@gmail.com>, Bart?omiej Zimo? <uzi18@o2.pl>,
Andy Walls <awalls@radix.net>,
Daniel Borkmann <danborkmann@googlemail.com>,
linux-kernel@vger.kernel.org, rpurdie@rpsys.net,
lenz@cs.wisc.edu, Dirk@opfer-online.de, arminlitzel@web.de,
Cyril Hrubis <metan@ucw.cz>,
thommycheck@gmail.com,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
dbaryshkov@gmail.com, omegamoon@gmail.com,
zaurus-devel@www.linuxtogo.org
Subject: Re: [suspend/resume] Re: userspace notification from module
Date: Sat, 16 Jan 2010 23:19:30 +0100 [thread overview]
Message-ID: <20100116221929.GB8425@elf.ucw.cz> (raw)
In-Reply-To: <201001162305.56972.rjw@sisk.pl>
On Sat 2010-01-16 23:05:56, Rafael J. Wysocki wrote:
> On Saturday 16 January 2010, Pavel Machek wrote:
> > On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote:
> > > Eric Miao wrote:
> > >
> > > > And the other way we may need to look into what API the current userland
> > > > apps on zaurus is depending on this 2.4 compatibility and make changes
> > > > slowly to those apps.
> > >
> > > I guess that 2.4 compatibility is not an issue. Most modern Zaurus
> > > distributions are even unable to run Sharp ROM compatible binaries.
> > >
> > > Distributions either stay on 2.4 kernel or use modern systems based on
> > > modern kernel 2.6 API.
> > >
> > > Distributions that decided to migrate to kernel 2.6 are far from
> > > finished state. Any change that allows to use modern applications using
> > > standard kernel API is welcome.
> >
> > There is no API involved. It is just ... if you leave zaurus in
> > init=/bin/bash mode, it must not kill the battery. Smart and
> > currently implemented way to do that is to suspend.
>
> IMHO it should just plain shutdown in that case. Suspending doesn't really
> solve the problem, because the battery is going to drain still. Unless you
> mean suspend=hibernate, but I guess you don't.
As I explained before, power consumption on suspend and hibernate and
poweroff is equivalent on zaurus (7mA in all the cases -- sorry if I
said uA before). And because it has 1800mAh battery, it means that
even empty battery is going to last for a while. In practice, it works
very well.
(There are other reasons, having to do with internal li-ion resistances
in aged and cold batteries.)
> > That's counterexample to rjw, but it does not matter -- reasonable
> > userland should never ever hit that, in a same way PCs should not hit
> > emergency power cut...
>
> I don't really understand what you mean. The user space doesn't know the
> battery state if the kernel doesn't tell it, AFAICS, so how exactly can it
> predict the critical battery condition without the kernel notifying it?
That was not the point I was trying to discuss. Yes, we need
kernel<->user notification of battery critical.
But on zaurus, correct action is to suspend (not hibernate and not
poweroff) when battery is no longer able to supply enough power to
keep system alive.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2010-01-16 22:19 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 13:29 Bartłomiej Zimoń
2010-01-02 14:04 ` Daniel Borkmann
2010-01-02 14:27 ` [suspend/resume] " Bartłomiej Zimoń
2010-01-02 15:11 ` Oliver Neukum
[not found] ` <6f52f5b81001020713j5435cfadr1143806a9026adc2@mail.gmail.com>
2010-01-02 15:15 ` Daniel Borkmann
2010-01-02 15:40 ` Andy Walls
2010-01-02 15:56 ` Daniel Borkmann
2010-01-02 18:26 ` Bartłomiej Zimoń
2010-01-02 21:01 ` Rafael J. Wysocki
[not found] ` <7cf4f51f.5fc2a5cd.4b3fc3ad.c849c@o2.pl>
2010-01-02 23:29 ` Rafael J. Wysocki
[not found] ` <65e5aef6.33251eb4.4b3fecf4.a2f99@o2.pl>
2010-01-03 9:30 ` Daniel Borkmann
2010-01-03 10:06 ` Daniel Borkmann
[not found] ` <43bd3f9d.71702a8b.4b407900.b542@o2.pl>
2010-01-03 21:49 ` Rafael J. Wysocki
2010-01-04 13:38 ` Stefan Seyfried
2010-01-03 21:33 ` Rafael J. Wysocki
2010-01-03 21:29 ` Rafael J. Wysocki
[not found] ` <24fb84fa.38887c91.4b411ffd.e7f1f@o2.pl>
2010-01-03 23:30 ` Rafael J. Wysocki
2010-01-03 23:35 ` Bartłomiej Zimoń
2010-01-03 23:45 ` Rafael J. Wysocki
2010-01-04 0:51 ` Bartłomiej Zimoń
2010-01-04 1:06 ` Bartłomiej Zimoń
2010-01-04 19:43 ` Rafael J. Wysocki
2010-01-05 9:07 ` [linux-pm] " Anders Eriksson
[not found] ` <7e89c5d.77f82021.4b43a8d7.127e1@o2.pl>
2010-01-05 21:23 ` Rafael J. Wysocki
2010-01-05 22:12 ` Bartłomiej Zimoń
2010-01-05 23:03 ` Rafael J. Wysocki
[not found] ` <1ab86ec9.7bc73105.4b43cd45.c2747@o2.pl>
2010-01-06 14:35 ` Anders Eriksson
2010-01-06 20:37 ` [linux-pm] [suspend/resume] Re: userspace notific ation " Bartłomiej Zimoń
2010-01-06 20:49 ` Roland Dreier
2010-01-06 20:56 ` Roland Dreier
2010-01-15 20:02 ` [linux-pm] [suspend/resume] Re: userspace notification " Pavel Machek
2010-01-05 21:26 ` Stefan Seyfried
[not found] ` <11f818a7.4b53f68a.4b43bb9b.b3a7f@o2.pl>
2010-01-05 23:05 ` Rafael J. Wysocki
2010-01-04 12:46 ` Daniel Borkmann
2010-01-04 19:45 ` Rafael J. Wysocki
2010-01-03 17:20 ` Bartłomiej Zimoń
2010-01-03 21:50 ` Rafael J. Wysocki
2010-01-09 10:32 ` Pavel Machek
2010-01-09 13:40 ` Rafael J. Wysocki
2010-01-15 20:03 ` Pavel Machek
2010-01-15 22:14 ` Rafael J. Wysocki
2010-01-16 3:00 ` Eric Miao
2010-01-16 17:00 ` Stanislav Brabec
2010-01-16 18:12 ` Pavel Machek
2010-01-16 22:05 ` Rafael J. Wysocki
2010-01-16 22:19 ` Pavel Machek [this message]
2010-01-16 22:25 ` Pavel Machek
2010-01-16 22:31 ` Rafael J. Wysocki
2010-01-16 22:26 ` Rafael J. Wysocki
2010-01-17 13:07 ` Pavel Machek
2010-01-17 13:26 ` Russell King - ARM Linux
2010-01-19 5:15 ` Pavel Machek
2010-01-16 22:32 ` Russell King - ARM Linux
2010-01-16 18:12 ` Pavel Machek
2010-01-16 18:12 ` Pavel Machek
2010-01-16 22:07 ` Rafael J. Wysocki
2010-01-16 22:14 ` Pavel Machek
2010-01-16 22:21 ` Rafael J. Wysocki
2010-01-02 21:20 ` Bartłomiej Zimoń
2010-01-02 14:31 ` Bartłomiej Zimoń
2010-01-02 22:34 Bartłomiej Zimoń
2010-01-03 8:31 Bartłomiej Zimoń
2010-01-03 11:06 Bartłomiej Zimoń
2010-01-03 23:17 Bartłomiej Zimoń
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=20100116221929.GB8425@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=Dirk@opfer-online.de \
--cc=arminlitzel@web.de \
--cc=awalls@radix.net \
--cc=danborkmann@googlemail.com \
--cc=dbaryshkov@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=lenz@cs.wisc.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=metan@ucw.cz \
--cc=omegamoon@gmail.com \
--cc=rjw@sisk.pl \
--cc=rpurdie@rpsys.net \
--cc=thommycheck@gmail.com \
--cc=utx@penguin.cz \
--cc=uzi18@o2.pl \
--cc=zaurus-devel@www.linuxtogo.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®