lkml.org 
[lkml]   [2009]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [RFD] Automatic suspend
    From
    On Thu, Feb 19, 2009 at 2:08 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
    >> > It might have to be platform-specific. The Android people seem to have a
    >> > pretty good idea of what criteria will work for them.
    >>
    >> I'd really like to know in what situations Androind is supposed to suspend
    >> automatically.
    >
    > It might be better to ask in what situations Android is _not_ supposed
    > to sleep automatically. In other words, in what situations is a
    > wakelock acquired? Since the whole system is only a phone, this
    > question should have a reasonably well-defined answer.

    On an android phone, any code that needs to run when the screen is off
    must hold a wakelock (directly or indirectly). In general if an
    application or the system is processing an event that may cause a user
    notification (new email, incoming phone call, alarm, etc.) it needs to
    prevent suspend. But, we also use wakelocks to upload stats or
    download system updates in the background, and for media player or
    (gps) data logging applications.

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

    \
     
     \ /
      Last update: 2009-02-20 03:41    [W:4.245 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site