Reputation: 11
Would like to enable MPU6050 accel & gyro sensor for my Qualcomm board which is MSM8909 chipset and android version is 8.x Oreo. I have tried the following.
Log:
[ 62.096904] input: MPU6050-accel as /devices/soc/78b7000.i2c/i2c-3/3-0068/input/input2
[ 62.101460] input: gyroscope as /devices/soc/78b7000.i2c/i2c-3/3-0068/input/input3
msm8909w:/ # echo 1 > /sys/class/sensors/MPU6050-accel/enable
msm8909w:/ # echo 1 > /sys/class/sensors/MPU6050-gyro/enable
msm8909w:/ # getevent
add device 1: /dev/input/event3
name: "gyroscope"
add device 2: /dev/input/event2
name: "MPU6050-accel"
msm8909w:/ # lshal debug [email protected]:ISensors/default
[email protected]:ISensors/default does not exist, or no permission to connect.
msm8909w:/ #
msm8909w:/ # lshal debug [email protected]
[email protected]/default does not exist, or no permission to connect.
Following HAL layer settings & android code changes done and no luck!
device/qcom/msm8909w/sensors/hals.conf
sensors.msm8909w.so
sensors.msm8909.so
sensors.default.so
sensors.ssc.so
sensors.native.so
Created build error in hardware/qcom/sensors/Accelerometer.cpp file to see whether this code is building or not, I didn't get any build errors.
Also referred to following document. https://developer.qualcomm.com/qfile/28820/lm80-p0436-9_sensors_porting_guide.pdf
Do I need to change anything in HAL layer for my new sensor or anything missing here ?
Upvotes: 1
Views: 697
Reputation: 11
If you are not aware. Then i want to tell you that:
Upvotes: 1