W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] HTML extension for system idle detection.

From: Jeremy Orlow <jorlow@chromium.org>
Date: Tue, 15 Sep 2009 09:02:07 -0700
Message-ID: <5dd9e5c50909150902p1873a2b5p4fb3665b174df09c@mail.gmail.com>
On Tue, Sep 15, 2009 at 7:04 AM, timeless <timeless at gmail.com> wrote:

> On Mon, Sep 14, 2009 at 10:41 AM, David Bennett<ddt at google.com> wrote:
> > I also don't see
> > why, in your particular case, you couldn't make it so that all background
> > tasks are 'idle'.
>
> We could, but the reason we stop scripts is so that the pages don't
> kill our battery life. If we sent an idle signal and the page decided
> to do something expensive, how would that help?
>
> Suppose we send an idle message to a page as it goes to the background
> and give it a 30s window before we terminate it. Your window needs 35s
> to complete its expensive task. You come back to me and say that my
> idle notification behavior is broken, because i didn't let you finish
> your task (draining my battery).
>
> We're currently getting complaints from our cellular stack people
> about each network connection which causes the radio to have to power
> up and down (in fact, they complain that there are two hits or maybe
> three: "initial request", "initial response",  and "remote closed
> connection"). If we tell pages each time they go to the background
> using your proposed idle "notification", the scripts will spend power
> waking up the radio and then the cellular people will complain even
> more.
>
> Since the reason we stop scripts is to save battery, adding another
> chance for scripts to drain the battery (by waking up the radio) is
> counter productive at best.
>

I don't really see why we're still talking about this.  If you're stopping
scripts, then all of the use cases for this proposal really don't apply to
your particular platform.  If people want to debate the merits of stopping
scripts, this doesn't seem like the right list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090915/8bbcec61/attachment.htm>
Received on Tuesday, 15 September 2009 09:02:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC