Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[hybris-adaptors] Use wakelock to ensure proximity data io. Fixes JB#…
…39550 While android hal takes care of blocking suspend while sensorfwd is processing sensor events, this does not guarantee that clients receive sensor changes before the device falls back to suspend. So far this has not been a problem as only proximity sensor changes are tracked in suspend and mce can tap into suspend proof evdev input devices and ignore data passed by sensorfwd. However at least Sony Xperia X does not make evdev sources available and mce needs to rely on data from sensorfwd and the device can fall back to suspend before mce has a chance to read the sensor data. Obtain a wakelock that is automatically canceled by kernel after one second when sending proximity sensor data to clients. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information