ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #15994
Re: The problem with "no background processing for apps"
On 02.10.2015 17:32, Thomas Voß wrote:
> On Fri, Oct 2, 2015 at 5:04 PM, sturmflut <sturmflut@xxxxxxxxxxxxxx> wrote:
>> Hey Thomas,
>>
>> On 02.10.2015 16:44, Thomas Voß wrote:
>>
>>> Let's make sure that we are untangling the lifecycle policy discussion
>>> we are having here from the
>>> discussion of enabling apps to prevent the device from going to deep
>>> sleep. The latter one can be solved and
>>> both you and me have been talking about the solution. With that,
>>> keeping the tracking app in the foreground is perfectly fine.
>>>
>>> Screen goes off, devices stays operational, problem solved :)
>>
>>
>> Wait.
>>
>> So we would then have three cases?
>>
>
> Sure, this topic is orthogonal to the lifecycle discussion, though.
>
>> 1) The focused app does nothing, after a while the screen turns off and
>> the app is frozen completely.
>>
>> 2) The focused app disables the screensaver, the screen stays on and
>> everything keeps running as long as the app stays focused.
>>
>> 3) The focused app does not disable the screensaver, but disables deep
>> sleep. The screen turns off after a while, but the app continues to run.
>>
>
> Yup, we have been discussing this topic previously, and mzanetti even
> made a first attempt at landing an impl iirc.
> It requires iteration, but it's definitely on the roadmap.
Not exactly sure if you mean TweakGeek by that. If so, that does not
prevent the device from going to deep sleep. It just prevents the app
process to be SIGSTOPed. This causes the app to keep on "working" during
deep sleep too, that is, when the device wakes up about twice a minute
for a second or two when checking for push notifications. This seems to
be enough to allow use cases like the Terminal+SSH, keep network
connections alive, allow keep receveiving GPS updates but still does not
drain the battery dramatically.
I'm using this for Dekko for a while now with the patch to make new
mails show up using libnotify and I don't notice any impact in
performance or battery lifetime. This obviously does assume a certain
well-behaving of the app which seems to be the main concern in this
discussion.
Br,
Michael
>
> Cheers,
>
> Thomas
>
>> cheers,
>> Simon
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help : https://help.launchpad.net/ListHelp
>
Attachment:
signature.asc
Description: OpenPGP digital signature
References
-
The problem with "no background processing for apps"
From: Sturm Flut, 2015-10-01
-
Re: The problem with "no background processing for apps"
From: Thomas Voß, 2015-10-01
-
Re: The problem with "no background processing for apps"
From: Benjamin Zeller, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Thomas Voß, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Craig Harper, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Thomas Voß, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Andrea Bernabei, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Chris Wayne, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Michael Zanetti, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Thomas Voß, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: sturmflut, 2015-10-02
-
Re: The problem with "no background processing for apps"
From: Thomas Voß, 2015-10-02