Android 12.1 - Rotate Display - Help Please

  1. good afternoon all

I have a query. Please be kind to me as whilst I am reasonably techy my experience with Android is limited.

I have a Rock 5B that I am wanting to use with Android 12 as the processor and OS for a range of touch screen kiosks.

The screens on the kiosks are portrait so I need a way to rotate the screen 90 or 270 degrees.

On all other version of Android I’ve used under HDMI in Display or in Display itself there has always been a manual screen rotation option.

The android 12 version i am using is the latest version of 12.1 downloaded from GitHub at this link https://github.com/radxa/manifests/releases

I have looked everywhere I can think of for rotation options and the only thing I can find is references to the auto rotate which is of course no use when I’m using it in a screen with no orientation sensor/accelerometer etc.

Anyone able to point me to the solution please.

I was able to rotate the screen using adb on my Linux machine:

adb shell settings put system accelerometer_rotation 0  #disable auto-rotate
adb shell settings put system user_rotation 3  #270° clockwise

I had to set to user_rotation 0 to get it back into landscape after incorrectly changing itself to portrait.

From this Stack Overflow answer: https://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb

Summary

This text will be hidden