On Saturday 31 January 2009, Arve Hjønnevåg wrote: > On Sat, Jan 31, 2009 at 7:41 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > > On Fri, 30 Jan 2009, Brian Swetland wrote: > >> Imagine the computer in question is a cellphone which is going to need > >> to wake up when a call comes in to do traditional cellphone things, like > >> ring, bring up the incall UI (so the user can answer/cancel), etc. > > > > Yes. So what? Nothing I said prevents the computer from waking up > > when a call comes in. What I said was that when the user tells the > > computer to suspend (e.g., by writing "mem" to /sys/power/state), the > > computer should suspend even if some wakelocks are still locked. > > But this could prevent the phone from ringing. What if the user-space > code that is responsible for playing the ringtone has been notified > that a call is coming in and starts reading the audio file with the > ringtone. At the same, the user, unaware that someone is calling, > presses the power button. If we ignore the wakelock in this situation, > the phone will not ring. What if the user decides to power off the phone and a call comes in at the same time? Rafael _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm