IMX8mm android10 Problems with rotating the screen using the accelerometer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8mm android10 Problems with rotating the screen using the accelerometer

Jump to solution
1,129 Views
jianfeichang
Contributor IV

hello,

    The Android 10 accelerometer works,My device is landscape。When I scroll down, the screen rotates to the right, and when I scroll to the right, the screen rotates to the right, it rotates 90 degrees more。The accelerometer is working,How do I change the screen to rotate it all to the left?

安卓10的加速度计正常工作的,设备是横屏,当我把设备向下,屏幕向右,当我把设备向右,屏幕再向右旋转,总是多转了90度,我怎么修改让它向左旋转90度,进而校准。有参考的链接吗?

0 Kudos
1 Solution
1,105 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你仔细检查一下hal层的加速度数据有没有问题。

如果你的HAL层上报的加速度数据没问题,不应该出现旋转错误的现象。

View solution in original post

0 Kudos
2 Replies
1,106 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你仔细检查一下hal层的加速度数据有没有问题。

如果你的HAL层上报的加速度数据没问题,不应该出现旋转错误的现象。

0 Kudos
1,100 Views
jianfeichang
Contributor IV

谢谢你的回复,我的旋转可以了,修改的是frameworks,之前修改launcher3一直不行,也许是位置没有找对

0 Kudos