nemomobile/mce — pull request #8 by spiiroin (2012-11-05 09:05:10+00:00)
Title: Wakelock

Add wakelock support for MCE to allow using automatic suspend

MCE holds a wakelock while the display is on. This means automatic
suspend can occur only when the display is off.

MCE holds a wakelock while processing evdev input. This means that
once we wake up from suspend due to power key press, the device will
not go back to suspend until MCE has time to feed input events through
the state machine (and possibly turn on the display).

At least initially the wakelock API is included within the mce source base.
If there is need to use it from multiple components it can/will be moved
to a separate library package.

Signed-off-by: Simo Piiroinen simo.piiroinen@jollamobile.com