[G Pad 8.3 Android Development] paperWastage:
cm-11.0 build with proprietary libs taken from the stock vk810 rom

vk810/proprietary/lib/hw/sensors.msm8930.so

vk810/proprietary/lib/hw/sensors.msm8960.so

vk810/proprietary/bin/sensors.qcom

vk810/proprietary/lib/libsensor1.so

HAL able to "talk" a little to the hardware, but still not able to read the sensors properly.

looks like it's a kernel problem...

E/Sensors ( 247): sns_fsa_la.c(271):fflush failed, 9
E/Sensors ( 247): sns_fsa_la.c(271):fflush failed, 9
W/Sensors ( 247): sns_smr_la.c(452):smr_la: smr_apps_la_thread_main is starting, fd=15, sns_smr.en_rx_msg_ptr=b6f4d300
E/Sensors ( 247): sns_fsa_la.c(66):realpath failed 2
E/Sensors ( 247): sns_reg.c(1137):Error creating registry file
W/Sensors ( 247): sns_reg.c(1228):init: file init failed, 5
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
I/QCameraHAL( 235): Camera sensor 0 info:
I/QCameraHAL( 235): sensor_mount_angle: 90
I/QCameraHAL( 235): Camera sensor 1 info:
I/QCameraHAL( 235): sensor_mount_angle: 270
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
W/Sensors ( 247): sns_sam_app.c(6350):sns_sam_reg_algo: Registering algo service 16, err 0
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_fsa_la.c(66):realpath failed 2
E/Sensors ( 247): sns_debug_main.c(1068):Sensors DIAG Init: can't init debug file
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_debug_main.c(569):Debug Config File missing in EFS!
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
D/SensorService( 640): nuSensorService starting...
D/qcom_sensors_hal( 640): _hal_sensors_open: name=poll
E/qcom_sensors_hal( 640): hal_load_oem_lib: ERROR: Could not open OEM HAL library
E/qcom_sensors_hal( 640): hal_init: No native sensors linux driver found in /system/lib/hw/sensors.oem.so
E/Sensors ( 247): sns_reg.c(387):reg write: reg file not open
E/sensor_reg( 640): sensor_reg_process_resp: Error in RESP result: 1
E/sensor_reg( 640): sensor_reg_write: error in message
E/qcom_sensors_hal( 640): hal_init: Error in sensor_reg_write(): -3
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list
I/qcom_sensors_hal( 640): Sensor1 open: 0 42
D/qcom_sensors_hal( 640): hal_wait_for_response: timeout=10000
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 5
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 0
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 5
D/qcom_sensors_hal( 640): hal_process_all_sensor_info_resp: 4
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: 0
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: Requesting single sensor info: 0
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: 10
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: Requesting single sensor info: 10
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: 20
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: Requesting single sensor info: 20
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: 40
D/qcom_sensors_hal( 640): hal_single_sensor_info_request: Requesting single sensor info: 40
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 6
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 0
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 6
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: 1
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 0, ns: 4, nss: 0
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: Accel, DTy: 0
I/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0, res: 0, power: 0, max_freq: 0
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0.000000, res: 0.000000, power: 0.000000, max_freq: 0.000000
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 0, ns: 4, nss: 1, ss_resp: 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 6
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 1
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 6
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: 2
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 1, ns: 4, nss: 1
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: GYRO DTy: 0
I/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0, res: 0, power: 0, max_freq: 0
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0.000000, res: 0.000000, power: 0.000000, max_freq: 0.000000
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 1, ns: 4, nss: 2
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: GYRO DTy: 1
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 1, ns: 4, nss: 2, ss_resp: 2
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 6
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 2
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 6
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: 1
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 2, ns: 4, nss: 2
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: MAG DTy: 0
I/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0, res: 0, power: 0, max_freq: 50
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0.000000, res: 0.000000, power: 0.000000, max_freq: 50.000000
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 2, ns: 4, nss: 3, ss_resp: 3
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 6
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 3
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 6
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: 1
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 3, ns: 4, nss: 3
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: ALS DTy: 1
I/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0, res: 0, power: 0, max_freq: 0
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: name: , vendor: , maxRange: 0.000000, res: 0.000000, power: 0.000000, max_freq: 0.000000
D/qcom_sensors_hal( 640): hal_process_single_sensor_info_resp: txn: 3, ns: 4, nss: 4, ss_resp: 4
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Received Response
W/qcom_sensors_hal( 640): hal_sam_add_sensors: SCRN ORTN add sensors called!
D/qcom_sensors_hal( 640): hal_add_oem_sensors
D/qcom_sensors_hal( 640): hal_sam_add_sensor_fusion_sensors: Adding Orientation
D/qcom_sensors_hal( 640): hal_sam_add_gestures_sensors: gestures disabled!
E/qcom_sensors_hal( 640): hal_sam_add_qmd_sensors: QMD disabled!
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 20000, max_freq: 50.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
D/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: minDelay: 2147483647, max_freq: 0.000000
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Number of sensors: 9:
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=0, enabled=0
I/qcom_sensors_hal( 640): Sensor1 open: 0 43
D/qcom_sensors_hal( 640): hal_wait_for_response: timeout=1000
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 24, I 2
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 24 txn id 1
E/qcom_sensors_hal( 640): hal_process_time_resp: Resetting rollover count from 0 to 0
D/qcom_sensors_hal( 640): hal_process_time_resp: Apps: 8633539209050409; DSPS: 1135852; Offset: 8633504545598261
I/qcom_sensors_hal( 640): Sensor1 open: 0 42
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=1, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=2, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=5, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=6, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=8, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=9, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=16, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=22, enabled=0
D/qcom_sensors_hal( 640): _hal_sensors_activate: No change required: Ac: 0, New: 0
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Already have the list of sensors
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Number of sensors: 9:
I/SensorService( 640): LGE Orientation Sensor
I/SensorService( 640): LGE Gravity Sensor
I/SensorService( 640): LGE Linear Acceleration Sensor
I/SensorService( 640): LGE Rotation Vector Sensor
I/SensorService( 640): LGE Motion Accelerometer Sensor
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list
I/qcom_sensors_hal( 640): Sensor1 open: 0 42
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Already have the list of sensors
I/qcom_sensors_hal( 640): _hal_sensors_get_sensors_list: Number of sensors: 9:
D/SensorService( 640): Max socket buffer size 1048576
D/SensorService( 640): nuSensorService thread starting...
D/qcom_sensors_hal( 640): _hal_sensors_data_poll: cnt: 36
D/qcom_sensors_hal( 640): hal_wait_for_response: timeout=0
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=0, enabled=1
W/qcom_sensors_hal( 640): _hal_sensors_activate: active_sensors mask=0x1 handle=0
W/qcom_sensors_hal( 640): _hal_sensors_set_delay: ns=66667000 ms: 66 Hndl: 98 handle: 0
E/qcom_sensors_hal( 640): _hal_sensors_set_delay: max_freq = 0. unsupported sensor? handle:0
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/qcom_sensors_hal( 640): hal_process_reg_resp: Received 'Failed' in response result
E/qcom_sensors_hal( 640): hal_process_report_resp: Result: 1, Error: 5
E/qcom_sensors_hal( 640): hal_process_report_resp: 0 Error: 4 Reason: 16
W/qcom_sensors_hal( 640): _hal_sensors_set_delay: ns=66667000 ms: 66 Hndl: 98 handle: 0
E/qcom_sensors_hal( 640): _hal_sensors_set_delay: max_freq = 0. unsupported sensor? handle:0
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/qcom_sensors_hal( 640): hal_process_reg_resp: Received 'Failed' in response result
E/qcom_sensors_hal( 640): hal_process_report_resp: Result: 1, Error: 5
E/qcom_sensors_hal( 640): hal_process_report_resp: 0 Error: 4 Reason: 16
D/LocSvc_utils_cfg( 640): D/loc_set_config_entry: PARAM SENSOR_CONTROL_MODE = 0
D/LocSvc_utils_cfg( 640): D/loc_set_config_entry: PARAM SENSOR_USAGE = 1
I/ThermalDaemon( 239): Sensor setup:[pa_therm0]
I/ThermalDaemon( 239): ADC sensor found for pa_therm0
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor0]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor1]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor2]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor3]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor4]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor5]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor6]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor7]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor8]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor9]
I/ThermalDaemon( 239): Sensor setup:[tsens_tz_sensor10]
I/ThermalDaemon( 239): Sensor setup:[pm8821_tz]
I/ThermalDaemon( 239): Sensor setup:[batt_therm]
I/ThermalDaemon( 239): ADC sensor found for batt_therm
I/ThermalDaemon( 239): Sensor 'pa_therm0' - alarm raised 3 at 52.0 degC
I/ThermalDaemon( 239): Sensor 'pa_therm0' - alarm raised 2 at 52.0 degC
I/ThermalDaemon( 239): Sensor 'pa_therm0' - alarm raised 1 at 52.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor0' - alarm raised 1 at 68.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor8' - alarm raised 1 at 71.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor9' - alarm raised 1 at 73.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor10' - alarm raised 1 at 71.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor5' - alarm raised 1 at 71.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor5' - alarm cleared 1 at 67.0 degC
I/ThermalDaemon( 239): Sensor 'batt_therm' - alarm raised 2 at 38.0 degC
I/ThermalDaemon( 239): Sensor 'batt_therm' - alarm raised 1 at 38.0 degC
E/ThermalDaemon( 239): ACTION: HOTPLUG_OFF(CPU3) Sensor 'pa_therm0' - temperature 5.2
E/ThermalDaemon( 239): ACTION: HOTPLUG_OFF(CPU2) Sensor 'pa_therm0' - temperature 5.2
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor8' - alarm cleared 1 at 61.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor9' - alarm cleared 1 at 60.0 degC
I/ThermalDaemon( 239): Sensor 'tsens_tz_sensor10' - alarm cleared 1 at 58.0 degC
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=0, enabled=0
D/qcom_sensors_hal( 640): hal_wait_for_response: timeout=1000
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 24, I 2
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 24 txn id 1
E/qcom_sensors_hal( 640): hal_process_time_resp: Resetting rollover count from 0 to 0
D/qcom_sensors_hal( 640): hal_process_time_resp: Apps: 8633558602574578; DSPS: 1771339; Offset: 8633504545598260
D/qcom_sensors_hal( 640): hal_smgr_report_delete: handle=0
D/qcom_sensors_hal( 640): hal_wait_for_response: timeout=1000
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: T 1
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: Sn 0, I 2
D/qcom_sensors_hal( 640): hal_sensor1_data_cb: msg_type 1 for svc id 0 txn id 0
D/qcom_sensors_hal( 640): hal_process_smgr_resp: 2
E/qcom_sensors_hal( 640): hal_process_report_resp: Result: 1, Error: 5
E/qcom_sensors_hal( 640): hal_process_report_resp: 0 Error: 3 Reason: 0
D/qcom_sensors_hal( 640): hal_process_report_resp: Id: 0 Resp: 3 txn id 0
E/qcom_sensors_hal( 640): hal_smgr_report_delete: Error in report delete
E/SensorService( 640): Error disabling sensor 0 (Operation not permitted)
W/qcom_sensors_hal( 640): _hal_sensors_activate: handle=0, enabled=1
W/qcom_sensors_hal( 640): _hal_sensors_set_delay: ns=66667000 ms: 66 Hndl: 98 handle: 0
E/qcom_sensors_hal( 640): _hal_sensors_set_delay: max_freq = 0. unsupported sensor? handle:0
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/qcom_sensors_hal( 640): hal_process_reg_resp: Received 'Failed' in response result
E/qcom_sensors_hal( 640): hal_process_report_resp: Result: 1, Error: 5
E/qcom_sensors_hal( 640): hal_process_report_resp: 0 Error: 4 Reason: 16
W/qcom_sensors_hal( 640): _hal_sensors_set_delay: ns=66667000 ms: 66 Hndl: 98 handle: 0
E/qcom_sensors_hal( 640): _hal_sensors_set_delay: max_freq = 0. unsupported sensor? handle:0
E/Sensors ( 247): sns_reg.c(301):reg_read: reg file not open
E/qcom_sensors_hal( 640): hal_process_reg_resp: Received 'Failed' in response result
E/qcom_sensors_hal( 640): hal_process_report_resp: Result: 1, Error: 5
E/qcom_sensors_hal( 640): hal_process_report_resp: 0 Error: 4 Reason: 16