Hi Guanqiong,
Thank you for the information.
I don't know how to use GPU to rotate and why we need to use GPU to rotate "under Android"? the issue never happen in my previous platform (TI, qualcomm), and we use same touch and sensor for imx6 platform.
Now we just discuss imx6q sabre-sdp and original BSP without modification, If we set default ro.sf.hwrotation=0( landscape) , screen rotation work normal under 0,90,180,270 ( acc sensor, touch ok ), but if we set ro.sf.hwrotation=270, there are 3 issues happen:
1. During suspend, the screen momentarily flips/rotates to landscape layout and then restores back.
2. After launch an app, then rotate mx6sdb, the screen momentarily flips/rotates to landscape layout and then restores back
2. Touch panel will work as wrong axis mapping, x become y and y become x.
3. Acc sensor make screen rotate to wrong direction ( launcher desktop ).
Hope we can get more help from NXP, thank you.
Andy