Re: Attempted summary of suspend-blockers LKML thread, take three

From: Felipe Contreras
Date: Sun Aug 08 2010 - 08:54:00 EST


On Sat, Aug 7, 2010 at 9:15 AM, Ted Ts'o <tytso@xxxxxxx> wrote:
> On Fri, Aug 06, 2010 at 08:14:09PM -0700, david@xxxxxxx wrote:
>> 1. sleeping can't currently save as much power as suspending
>
> No, I don't think that's the case at all. ÂThe key thing here is that
> *most* applications don't need to be modified to use suspend locks,
> because even though they might be in an event loop, when the user user
> turns off the display, the user generally doesn't want it doing things
> on their behalf.

You are overgeneralizing; there are many applications that run in the
background, and you want to keep them running even when the display is
off.

You seen to be concentrating on UI-only applications, for those it's
worth noting that Android provides separate mechanisms for power
saving. Since Android doesn't have true multi-tasking, the
applications must serialize their states so that the next time they
are opened they seem to have not been closed. So, the current active
UI application can be closed while turning off the display, and
re-opened later.

User-space suspend blockers are relevant for background services, and
as it has been discussed before; suspend blockers (not activating
them) might actually degrade power usage.

--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/