<?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 IMX8MM Display output rotation in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Display-output-rotation/m-p/909944#M137073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use NXP IMX 8MM EVK with Yocto Linux 4.14.98_2.0.0 and custom MIPI DSI display (DRM driver made on top of&amp;nbsp; Raydeon 67191 driver). Our display has a 720x1280 resolution and it is vertical.&lt;/P&gt;&lt;P&gt;Now I have to rotate display 270 degrees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enabled CONFIG_FRAMEBUFFER_CONSOLE_ROTATION option in kernel config in order to rotate framebuffer console output and I am able to rotate console output with following commands:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx8mmevk:~# cd /sys/class/graphics/fbcon&lt;BR /&gt;root@imx8mmevk:/sys/class/graphics/fbcon# echo 3 | sudo tee rotate_all&lt;BR /&gt;3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Next I have to rotate framebuffer for the gst-player video playback, QML viewer, IP camera input. So I want portrait display to act as a landscape one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to write 3 to /sys/class/graphics/fb0/rotate, but with no effect.&lt;/P&gt;&lt;P&gt;Is there any support for framebuffer rotation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Aug 2019 09:50:15 GMT</pubDate>
    <dc:creator>grigoritimonen</dc:creator>
    <dc:date>2019-08-12T09:50:15Z</dc:date>
    <item>
      <title>IMX8MM Display output rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Display-output-rotation/m-p/909944#M137073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use NXP IMX 8MM EVK with Yocto Linux 4.14.98_2.0.0 and custom MIPI DSI display (DRM driver made on top of&amp;nbsp; Raydeon 67191 driver). Our display has a 720x1280 resolution and it is vertical.&lt;/P&gt;&lt;P&gt;Now I have to rotate display 270 degrees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enabled CONFIG_FRAMEBUFFER_CONSOLE_ROTATION option in kernel config in order to rotate framebuffer console output and I am able to rotate console output with following commands:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx8mmevk:~# cd /sys/class/graphics/fbcon&lt;BR /&gt;root@imx8mmevk:/sys/class/graphics/fbcon# echo 3 | sudo tee rotate_all&lt;BR /&gt;3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Next I have to rotate framebuffer for the gst-player video playback, QML viewer, IP camera input. So I want portrait display to act as a landscape one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to write 3 to /sys/class/graphics/fb0/rotate, but with no effect.&lt;/P&gt;&lt;P&gt;Is there any support for framebuffer rotation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 09:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Display-output-rotation/m-p/909944#M137073</guid>
      <dc:creator>grigoritimonen</dc:creator>
      <dc:date>2019-08-12T09:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM Display output rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Display-output-rotation/m-p/909945#M137074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Finally I got it working by rotating Weston interface. Transform option didn't work for me previously.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem was in wrong KMS connector name in the weston.ini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connector name is listed under /sys/class/drm:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="" href="mailto:root@imx8mmevk:"&gt;root@imx8mmevk:&lt;/A&gt;~# ls /sys/class/drm/&lt;BR /&gt;card0&amp;nbsp; card0-DSI-1&amp;nbsp; version&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I was trying to use card0 and card0-DSI-1 as a KMS connector name in the weston.ini. Then I took a look at /var/log/weston.log and found that proper name is DSI-1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[05:55:41.223] DRM: head 'DSI-1' found, connector 33 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'&lt;BR /&gt;[05:55:41.223] Registered plugin API 'weston_drm_output_api_v1' of size 24&lt;BR /&gt;[05:55:41.224] Chosen EGL config details:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RGBA bits: 8 8 8 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; swap interval range: 1 - 60&lt;BR /&gt;[05:55:41.224] No backlight control for output 'DSI-1'&lt;BR /&gt;[05:55:41.224] Output DSI-1 (crtc 31) video modes:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 720x1280@58.1, preferred, current, 67.3 MHz&lt;BR /&gt;[05:55:41.224] associating input device event0 with output DSI-1 (none by udev)&lt;BR /&gt;[05:55:41.224] associating input device event1 with output DSI-1 (none by udev)&lt;BR /&gt;[05:55:41.224] associating input device event2 with output DSI-1 (none by udev)&lt;BR /&gt;[05:55:41.224] Output 'DSI-1' enabled with head(s) DSI-1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So 'card0' part of name should be omitted.&lt;/P&gt;&lt;P&gt;Rotation works properly for me with following weston.ini:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx8mmevk:~# cat /etc/xdg/weston/weston.ini&lt;BR /&gt;[core]&lt;BR /&gt;# i.MX: Disable idle timeout&lt;BR /&gt;idle-time=0&lt;BR /&gt;backend=drm-backend.so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[libinput]&lt;BR /&gt;touchscreen_calibrator=true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[output]&lt;BR /&gt;name=DSI-1&lt;BR /&gt;mode=720x1280@60&lt;BR /&gt;transform=270&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[screen-share]&lt;BR /&gt;command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 10:44:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Display-output-rotation/m-p/909945#M137074</guid>
      <dc:creator>grigoritimonen</dc:creator>
      <dc:date>2019-08-16T10:44:06Z</dc:date>
    </item>
  </channel>
</rss>

