距离传感器亮屏慢
看看中断响应慢不慢?
中断反应不慢,亮屏延时的时候有一个先进入睡眠的动作,后再退出睡眠。
<6>[ 2969.760584] tmd277x_change_ps_threshold: near-to-far
<6>[ 2969.795784] PM: suspend of devices complete after 31.535 msecs
<6>[ 2969.800424] PM: late suspend of devices complete after 4.624 msecs
<6>[ 2969.806468] PM: noirq suspend of devices complete after 6.033 msecs
<6>[ 2969.806480] Disabling non-boot CPUs ...
<6>[ 2969.806596] CPU0:msm_cpu_pm_enter_sleep mode:3 during suspend
<6>[ 2969.810837] PM: noirq resume of devices complete after 3.449 msecs
<6>[ 2969.816267] PM: early resume of devices complete after 4.243 msecs
<6>[ 2969.902683] PM: resume of devices complete after 86.399 msecs正常情况下log没有这个信息。
小编请问这个问题怎么解决的呢?
解决了,在打电话启用p_sensor的时候lock住不要进入休眠,打完电话的时候再解锁掉。这样会使打电话灭屏的时候电话偏大,但不影响到待机电流,所以当时我们就用这个方案解决的。