From Tinker Board Wiki
Revision as of 02:48, 28 June 2018 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to Rotate screen

Tinker Board can support rotate screen 0/90/180/270 degree. Please reference for the below 2 POSTs.

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:

This properties has 4 options

# other possible values: 
# 0 = Landscape, 90 = Portrait, 180 = reverse Landscape, 270 = Reverse Portrait

Please note that the 180 degree needs to use the image after 20180613.
After editing, push the build.prop back to the device

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

Set the persist.demo.hdmirotation property

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

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

finally reboot the device.