Wakelocks
Wakelocks
Posted Dec 23, 2011 0:56 UTC (Fri) by mjg59 (subscriber, #23239)In reply to: Wakelocks by dlang
Parent article: Bringing Android closer to the mainline
Userspace decides to suspend. It gets preempted by the user hitting a key, but the task that needs to read the input event is currently blocked on something else so userspace is unaware of this and continues the suspend. The user, who has just hit a key and sees their device turn off anyway, throws their phone out of a window and travels to Nepal to seek a technology-free life.
Wakelocks (or a functional equivalent) are entirely necessary for the Android power management model. Is the Android power management model the best one? I don't think so, but nobody (myself included) has successfully demonstrated otherwise so I think at this point people should either do the necessary work or stop complaining.
