commit | 6603960f124f9a5e07e837ebac64cf5dfe707c1f | [log] [tgz] |
---|---|---|
author | Demon000 <demonsingur@gmail.com> | Mon Apr 06 15:47:43 2020 +0200 |
committer | rohan <purohit.rohan@gmail.com> | Sun Jun 07 08:49:13 2020 -0400 |
tree | 2c5f6f10af841ede2bbbb4a9dcebbddd4569d453 | |
parent | 23b7a87cba5aa78398e122e3efcad65277a0c1e0 [diff] |
DozeSensors: only use proximity sensor if supported On msm-4.14 devices, when the proximity sensor is in use, the smp2p-sleepstate IRQ is fired multiple times a second, with each one holding a 200ms wakelock. This is probably a bug in the DSP firmware. To fix this, avoid using the proximity sensor in doze mode, because sleep is preferred to turning off the screen. Change-Id: I57750afd77267abdc49780f70636626d20e666ad Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>