IMX8 Quadmax MEK Android Automotive 11 always displays in landscape mode

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

IMX8 Quadmax MEK Android Automotive 11 always displays in landscape mode

Jump to solution
774 Views
Jose1985
Contributor IV

Dear All,

I wanted to change the display orientation of iMX8 Quadmax MEK Android Automotive 11.

However, the default orientation seems to fixed for landscape mode only. 

I tried to change using  below command and as well as programtically.

adb shell settings put system user_rotation 0

Anyways, the HOME app launches in landscape mode only for a brief period of time before changing to portrait mode. In emulator, it works fine as expected.

 

Any help?

 

DisplayRotation
mCurrentAppOrientation=SCREEN_ORIENTATION_UNSPECIFIED
mLastOrientation=-1
mRotation=0 mDeferredRotationPauseCount=0
mLandscapeRotation=ROTATION_0 mSeascapeRotation=ROTATION_180
mPortraitRotation=ROTATION_270 mUpsideDownRotation=ROTATION_90
mSupportAutoRotation=true

mCarDockRotation=-1 mDeskDockRotation=-1
mUserRotationMode=USER_ROTATION_FREE mUserRotation=ROTATION_0 mAllowAllRotations=unknown
mDemoHdmiRotation=ROTATION_0 mDemoHdmiRotationLock=false mUndockedHdmiRotation=-1
mLidOpenRotation=-1
mFixedToUserRotation=true

0 Kudos
1 Solution
759 Views
Jose1985
Contributor IV

Dear Igor,

Thank you very much for your prompt reply.

I understand that your patch applies directly to Kernel.

However, I solved it using a simple patch with modification to SurfaceFlinger. Let me attach the patch for your reference and for the community.

Best regards

Libin Jose.

View solution in original post

0 Kudos
2 Replies
766 Views
igorpadykov
NXP Employee
NXP Employee

Hi Libin

 

rotation patch was sent via mail.

 

Best regards
igor

0 Kudos
760 Views
Jose1985
Contributor IV

Dear Igor,

Thank you very much for your prompt reply.

I understand that your patch applies directly to Kernel.

However, I solved it using a simple patch with modification to SurfaceFlinger. Let me attach the patch for your reference and for the community.

Best regards

Libin Jose.

0 Kudos