From: rjw@sisk.pl (Rafael J. Wysocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [suspend/resume] Re: userspace notification from module
Date: Fri, 15 Jan 2010 23:14:30 +0100 [thread overview]
Message-ID: <201001152314.30355.rjw@sisk.pl> (raw)
In-Reply-To: <20100115200310.GG1345@ucw.cz>
On Friday 15 January 2010, Pavel Machek wrote:
> On Sat 2010-01-09 14:40:46, Rafael J. Wysocki wrote:
> > On Saturday 09 January 2010, Pavel Machek wrote:
>
> > > > Perhaps I don't understand correctly what you're trying to achieve, but at the
> > > > moment suspend is always started from user space, this way or another, and on
> > >
> > > At least zaurus (arm) suspends from kernel on battery critical.
> >
> > I wasn't aware of this.
> >
> > That may be a good reason for adding kernel-based suspend notification,
> > although I'd prefer ARM to notify the user space about the critical battery
> > status allowing it to decide what to do.
>
> Hard to do, without breaking compatibility that goes down to 2.4.X.
Sending a battery-critical notification to the user space is not equivalent to
removing the existing kernel-based mechanism. They can exist both at the
same time if the notification is sent earlier than the kernel suspends
everything.
> > IMhO automatic suspend without something like the Android's wakelocks hurts
> > more than it helps.
>
> It really makes sense on zaurus. Those machines are simple, no
> smartbattery and no embedded controller subsystems. Battery will not
> protect itself, and its kernel job. (Should work on init=/bin/bash).
>
> As power-off consumption is same as suspend power consumption (I
> beleive zaurus simply does not have true power off), suspend on
> critical makes some sense. (Note that it is set lower than on pcs, and
> that we declare battery critical sooner than that.)
The problem with that is it catches at least some applications unprepared and
notifying them that "we're suspending right now" doesn't really help, because
they won't have any time to react anyway.
Rafael
next prev parent reply other threads:[~2010-01-15 22:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl>
[not found] ` <201001022201.04281.rjw@sisk.pl>
[not found] ` <20100109103212.GA1429@ucw.cz>
[not found] ` <201001091440.46434.rjw@sisk.pl>
2010-01-15 20:03 ` [suspend/resume] Re: userspace notification from module Pavel Machek
2010-01-15 22:14 ` Rafael J. Wysocki [this message]
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
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
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=201001152314.30355.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).