blumonks / android_device_blu_p6601

LineageOS 14.1 Device Tree for BLU R1 HD
GNU General Public License v2.0
1 stars 1 forks source link

Auto rotate doesn't work #8

Closed natekc closed 7 years ago

natekc commented 7 years ago
06-03 15:46:35.347   709   749 D Sensors : activate handle =0, enable = 0
06-03 15:46:35.347   709   749 E Sensors : handleToDriver handle(0)
06-03 15:46:35.347   709   749 D Sensors : use new sensor index=2, mSensors[index](9d2ab000)
06-03 15:46:35.347   709   749 D Accel   : ACC enable: handle:0, en:0
06-03 15:46:35.347   709   749 D Accel   : path:accactive
06-03 15:46:35.347   709   749 D Accel   : no ACC enable control attr
06-03 15:46:35.347   709   749 D Sensors : use old sensor err(-1),index(2) go to old hwmsen
06-03 15:46:35.347   709   749 D Hwmsen_sensors: Hwmsen_Enable: handle:0, en:0
06-03 15:46:35.347   709   749 D Hwmsen_sensors: virtual int Hwmsen::enable(int32_t, int): handle 0, enable or disable 0!
06-03 15:46:35.347   709   749 D Hwmsen_sensors: active_sensors =10
natekc commented 7 years ago

The culprit is because no accelerometer driver is enabled in the kernel...

natekc commented 7 years ago

Resolved in https://github.com/blumonks/android_kernel_mediatek_mt6735/commit/0c8248f0a5563daad0da8dd6e02c4df86a1cb098

natekc commented 7 years ago

I guess this is not actually fixed.. I did a clean build and the auto rotate doesn't work again..

Can you confirm? @zhaofengli

natekc commented 7 years ago

Closing again. Turns out I had disabled the wrong sensor when I was cleaning up the defconfig. For future reference, the accelerometer that the BLU R1 HD uses is the BMA222.

Confirmed working again!

zhaofengli commented 7 years ago

Confirmed. Rebuilt the kernel, and accelerometer now works!