<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to make android system display vertically(rotate 270 degree) at startup in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386947#M184446</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;You mean just modifying the&amp;nbsp;&amp;nbsp;vendor/nxp-opensource/imx/&lt;SPAN&gt;display/display/Composer.cpp&amp;nbsp;to support sufaceflinger rotation?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 05:31:56 GMT</pubDate>
    <dc:creator>edward_fu</dc:creator>
    <dc:date>2021-12-15T05:31:56Z</dc:date>
    <item>
      <title>How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386102#M184393</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I need my imx8mq board android system display vertically at startup.&amp;nbsp; Do you have any suggestions?&lt;/P&gt;&lt;P&gt;I tried as below:&lt;/P&gt;&lt;P&gt;I can set "settings put system user_rotation 3" manully by adb. And it can rotate 270 degree.&lt;/P&gt;&lt;P&gt;But I need display vertically at startup not manually.&lt;/P&gt;&lt;P&gt;So I added a service in&amp;nbsp;/vendor/etc/init/hw/init.nxp.rc&lt;/P&gt;&lt;P&gt;service rotate-screen /vendor/bin/rotate-screen.sh&lt;BR /&gt;&amp;nbsp; &amp;nbsp; class main&lt;BR /&gt;&amp;nbsp; &amp;nbsp; user root&lt;BR /&gt;&amp;nbsp; &amp;nbsp; group root system&lt;BR /&gt;&amp;nbsp; &amp;nbsp; disabled&lt;BR /&gt;&amp;nbsp; &amp;nbsp; oneshot&lt;/P&gt;&lt;P&gt;on post-fs-data&lt;BR /&gt;&amp;nbsp; &amp;nbsp; start rotate-screen&lt;/P&gt;&lt;P&gt;And contents in&amp;nbsp;rotate-screen.sh is:&lt;/P&gt;&lt;P&gt;settings put system user_rotation 3&lt;/P&gt;&lt;P&gt;But it does now work. it seems the&amp;nbsp;rotate-screen.sh not executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 06:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386102#M184393</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-14T06:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386817#M184436</link>
      <description>&lt;P&gt;Try to change /device/nxp/xxx/build.prop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ro.sf.hwrotation = 180/270/90&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 02:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386817#M184436</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-12-15T02:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386829#M184438</link>
      <description>&lt;P&gt;There is no build.prop file in&amp;nbsp;imx-android-11.0.0_2.0.0/android_build/device/nxp and recursive folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I had tried to add blew contents in&amp;nbsp;imx-android-11.0.0_2.0.0/android_build/device/nxp/imx8m/evk_8mq/init.rc before&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on property:sys.boot_completed=1 &amp;amp;&amp;amp; property:sys.logbootcomplete=1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;setprop ro.sf.hwrotation 270&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it did not work.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 02:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386829#M184438</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-15T02:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386838#M184439</link>
      <description>&lt;P&gt;You can see this part of patch about &lt;STRONG&gt;compositor&lt;/STRONG&gt; to support sufaceflinger rotation&lt;/P&gt;
&lt;P&gt;project vendor/nxp-opensource/imx/&lt;BR /&gt;diff --git a/display/display/Composer.cpp b/display/display/Composer.cpp&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 02:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386838#M184439</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-12-15T02:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386947#M184446</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;You mean just modifying the&amp;nbsp;&amp;nbsp;vendor/nxp-opensource/imx/&lt;SPAN&gt;display/display/Composer.cpp&amp;nbsp;to support sufaceflinger rotation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 05:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386947#M184446</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-15T05:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386948#M184447</link>
      <description>&lt;P&gt;Yes,and the go file.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 05:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386948#M184447</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-12-15T05:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386949#M184448</link>
      <description>&lt;P&gt;Thanks, I will try right row.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 05:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1386949#M184448</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-15T05:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1387049#M184454</link>
      <description>&lt;P&gt;I followed your suggestions and did like below:&lt;/P&gt;&lt;P&gt;1. add&amp;nbsp;&lt;/P&gt;&lt;P&gt;BOARD_HAVE_VPU \&lt;BR /&gt;&lt;STRONG&gt;+SF_PRIMARY_DISPLAY_ORIENTATION&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;+SOONG_CONFIG_IMXPLUGIN_SF_PRIMARY_DISPLAY_ORIENTATION = 270&lt;/STRONG&gt;&lt;BR /&gt;SOONG_CONFIG_IMXPLUGIN_BOARD_PLATFORM = imx8&lt;/P&gt;&lt;P&gt;in&amp;nbsp;device/nxp/imx8m/BoardConfigCommon.mk&lt;/P&gt;&lt;P&gt;2. add&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+SF_PRIMARY_DISPLAY_ORIENTATION := 270&lt;/STRONG&gt;&lt;BR /&gt;BOARD_PREBUILT_DTBOIMAGE := $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/dtbo-imx8mq.img&lt;/P&gt;&lt;P&gt;in&amp;nbsp;device/nxp/imx8m/evk_8mq/BoardConfig.mk&lt;/P&gt;&lt;P&gt;3. modified&amp;nbsp;vendor/nxp-opensource/imx/display/display/Composer.cpp and&amp;nbsp;vendor/nxp-opensource/imx/display/display/display.go file as you said.&lt;/P&gt;&lt;P&gt;But&lt;STRONG&gt; it still did not work.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And I dig the log, at least the log of below&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALOGV("index:%d, i:%d sourceCrop(l:%d,t:%d,r:%d,b:%d), "&lt;BR /&gt;"visible(l:%d,t:%d,r:%d,b:%d), "&lt;BR /&gt;"display(l:%d,t:%d,r:%d,b:%d)", layer-&amp;gt;index, (int)i,&lt;BR /&gt;srect.left, srect.top, srect.right, srect.bottom,&lt;BR /&gt;clip.left, clip.top, clip.right, clip.bottom,&lt;BR /&gt;drect.left, drect.top, drect.right, drect.bottom);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;did not apper.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1387049#M184454</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-15T07:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1387736#M184542</link>
      <description>&lt;P&gt;Do you have any update?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 03:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1387736#M184542</guid>
      <dc:creator>edward_fu</dc:creator>
      <dc:date>2021-12-16T03:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make android system display vertically(rotate 270 degree) at startup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1855670#M223045</link>
      <description>&lt;P&gt;Hello, Were you able to rotate your screen ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Android 11 aosp&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to make a service file with "&lt;SPAN&gt;settings put system user_rotation 2"&amp;nbsp;&lt;/SPAN&gt;and it rotates the screen to 180 degree but the rotation is clearly visible after booting is done.&lt;/P&gt;&lt;P&gt;So I want to make the changes directly in build and don't want to use service file.&lt;/P&gt;&lt;P&gt;And even for me "ro.sf.hwrotation = 180" didn't work&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 12:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-android-system-display-vertically-rotate-270-degree/m-p/1855670#M223045</guid>
      <dc:creator>BhavinJoisar</dc:creator>
      <dc:date>2024-04-26T12:21:38Z</dc:date>
    </item>
  </channel>
</rss>

