Rotate-screen

From Tinker Board Wiki
Jump to: navigation, search

How to Rotate screen

Tinker Board can support rotate screen 0/90/270 degree. Please reference for the below 2 POSTs.
https://tinkerboarding.co.uk/forum/thread-574-post-2144.html#pid2144
https://tinkerboarding.co.uk/forum/thread-574-post-3426.html#pid3426

set the ro.sf.hwrotation in build.prop file

$ adb connect [ip address of tinkerboard]
$ adb root
$ adb connect [ip address of tinkerboard]
$ adb remount
$ adb pull /system/build.prop .

Then, edit the pulled build.prop file with a text editor. You want to focus on this particular property:
ro.sf.hwrotation

This properties has 3 options

# other possible values: 
# 0 = Landscape, 90 = Portrait, 270 = Reverse Portrait
ro.sf.hwrotation=180

After editing, push the bulid.prop back to the device

$ adb push build.prop /system/build.prop

Set the persist.demo.hdmirotation property

# for 0 degree
$ adb shell "setprop persist.demo.hdmirotation landscape"

# for 90/270 degree
$ adb shell "setprop persist.demo.hdmirotation portrait"

finally reboot the device.