jeudi 14 mai 2015

sensors.qcom wakelocks are high and drain battery! topic


Hi guys,
As the thread title shows I have problem with "sensors.qcom" process. Ever since I updated my device (Nexus 7 2013 WiFi) to Lollipop I've had this problem, I mean on every stock ROM; 5.0 to 5.1.1 . I hoped the updates would solve the problem but it still persists. I also tried every possible combination of different conditions: Roored/Unrooted, Safe Mode/Normal Mode, Location Service On/Off, Auto Rotation On/Off, NFC On/Off, WiFi On/Off ... . I had not this problem on KitKat so I can tell that this is not a hardware related issue. The problem shows itself from a few minutes to hours after reboot, but it definitely happens. Here I paste a sample log (from Safe Mode with Location Service, Auto Rotation and NFC Off) which I captured. I filter it to shows only sensors related stuff:


Code:


E/13:44:20.012 Sensors (23163)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:44:20.006 Sensors (23163)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:44:19.988 Sensors (23163)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6ff99d0
E/13:44:19.956 Sensors (23163)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:44:19.956 Sensors (23163)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:44:19.946 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:42:25.891 Sensors (22069)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:42:25.886 Sensors (22069)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:42:25.869 Sensors (22069)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6fe09d0
E/13:42:25.836 Sensors (22069)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:42:25.835 Sensors (22069)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:42:25.826 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
W/13:42:01.748 qcom_sensors_hal(  578)
hal_acquire_resources, no active sensors!
E/13:40:13.301 Sensors (21414)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:40:13.295 Sensors (21414)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:40:13.273 Sensors (21414)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b70119d0
E/13:40:13.244 Sensors (21414)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:40:13.243 Sensors (21414)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:40:13.233 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:38:06.475 Sensors (20720)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:38:06.469 Sensors (20720)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:38:06.449 Sensors (20720)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6fee9d0
E/13:38:06.420 Sensors (20720)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:38:06.419 Sensors (20720)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:38:06.406 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:36:02.034 Sensors (19765)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:36:02.028 Sensors (19765)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:36:02.009 Sensors (19765)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b700c9d0
E/13:36:01.976 Sensors (19765)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:36:01.976 Sensors (19765)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:36:01.966 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:33:47.781 Sensors (18776)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:33:47.772 Sensors (18776)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:33:47.750 Sensors (18776)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6f269d0
E/13:33:47.723 Sensors (18776)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:33:47.723 Sensors (18776)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:33:47.706 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:31:33.327 Sensors (17832)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:31:33.321 Sensors (17832)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:31:33.299 Sensors (17832)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6f499d0
E/13:31:33.266 Sensors (17832)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:31:33.265 Sensors (17832)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:31:33.256 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:29:30.943 Sensors (17303)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:29:30.930 Sensors (17303)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:29:30.886 Sensors (17303)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6f309d0
E/13:29:30.848 Sensors (17303)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:29:30.848 Sensors (17303)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:29:30.836 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:27:23.097 Sensors (16625)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:27:23.086 Sensors (16625)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:27:23.071 Sensors (16625)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6fa69d0
E/13:27:23.037 Sensors (16625)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:27:23.037 Sensors (16625)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:27:23.026 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE
E/13:25:12.561 Sensors (15815)
sns_debug_main.c(565):Debug Config File missing in EFS!
W/13:25:12.555 Sensors (15815)
sns_sam_app.c(6827):sns_sam_reg_algo: Registering algo service 16, err 0
W/13:25:12.539 Sensors (15815)
sns_smr_la.c(446):smr_la: smr_apps_la_thread_main is starting, fd=11, sns_smr.en_rx_msg_ptr=b6ffd9d0
E/13:25:12.506 Sensors (15815)
sns_fsa_la.c(386):fsa: fflush failed, 9
E/13:25:12.506 Sensors (15815)
sns_fsa_la.c(386):fsa: fflush failed, 9
W/13:25:12.496 qcom_sensors_hal(  578)
hal_sensor1_data_cb: SENSOR1_MSG_TYPE_BROKEN_PIPE


I found that many have this problem on different devices, but couldn't find any solution. There are also reports about the issue on Google codes here and here.
Any Idea?

xda-developers