动静传感器是两个sensor:stationary_detect和motion_detect
灭屏待机后,手机静止状态5秒左右循环触发sensor上报逻辑,即待机状态下抓取实时log发现有如下循环log打印:
07-21 03:44:31.568 13276 15319 I sensors-hal: handle_indication_realtime:356, SCHED_FIFO(10) for qmi_cbk
07-21 03:44:31.573 13276 13282 I sensors-hal: batch:140, android.sensor.stationary_detect/6, period=1000000, max_latency=0
07-21 03:44:31.574 13276 13282 I sensors-hal: batch:149, android.sensor.stationary_detect/6, period=1000000, max_latency=0 request completed
07-21 03:44:31.574 13276 13282 I sensors-hal: activate:107, android.sensor.stationary_detect/6 en=1
07-21 03:44:31.574 13276 13282 I sensors-hal: ssc_enable_rt_task:255, ssc_enable_rt_task : true
07-21 03:44:31.578 13276 13282 I sensors-hal: activate:118, android.sensor.stationary_detect/6 en=1 completed
高通SEE架构下qmi流程的motion和stationary上报有一个5s的保护机制。
但是从log看上层在不停地监听stationary detect,然后stationary detect就会一直进行上报(机器是在静止待机状态下,

探讨了动静传感器stationary_detect和motion_detect的工作原理及其在手机待机状态下的功耗问题。文章详细分析了高通SEE架构下qmi流程的motion和stationary上报机制,并提出了交叉注册监听stationary和motion的方法来降低功耗。
最低0.47元/天 解锁文章
12

被折叠的 条评论
为什么被折叠?



