<?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: Restrict kernel display driver or Android OS to use only a part of display pixels / resolution in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267238#M28091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to the same for Nexus 4 device. Were you able to draw&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;240x240???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If yes then can you help me with the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Currently I have tried changing the panel info of&amp;nbsp;xres and yres in kernel display driver file mipi_lgit_video_wxga_pt.c with 400&lt;SPAN&gt;x400. But only display is getting changed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;The touchscreen is still mapped to the initial resolution(768&lt;SPAN style="background-color: #ffffff;"&gt;x1280).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Any help will be really appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 10:21:09 GMT</pubDate>
    <dc:creator>nehaprabhakar</dc:creator>
    <dc:date>2016-11-24T10:21:09Z</dc:date>
    <item>
      <title>Restrict kernel display driver or Android OS to use only a part of display pixels / resolution</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267235#M28088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an i.MX6SL EVK with a "MXIMX28LCD Seiko 4.3" WVGA" display running Android 4.3 beta BSP (jb4.3_1.0.0-beta). The system is working fine at native 800x480 display resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target now is to use a resolution of 240x240 on that display (so using just a subarea), so that we can design properly applications for a 240x240 display we will be using in the future, but is not ready yet at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried both the "display driver way" and the "Android OS drawing way", but I haven't reached my target yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISPLAY DRIVER WAY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've looked at the sources drivers/video/mxc/mxc_elcdif_fb.c and drivers/video/mxc/mxcfb_seiko_wvga.c in the kernel and I've found that the 800x480 is selected by the call:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;CODE&gt;fb_find_mode(&amp;amp;fbi-&amp;gt;var, fbi, fb_mode, pdata-&amp;gt;mode, &lt;/CODE&gt;&lt;CODE&gt;pdata-&amp;gt;num_modes, NULL, default_bpp);&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;at line 1438 of mxc_elcdif_fb.c:&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/video/mxc/mxc_elcdif_fb.c?id=jb4.3_1.0.0-beta#n1438" rel="nofollow noopener noreferrer" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/video/mxc/mxc_elcdif_fb.c?id=jb4.3_1.0.0-beta#n1438" target="_blank"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;pdata-&amp;gt;num_modes, NULL, default_bpp);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which I think is the one reported in:&lt;/P&gt;&lt;P&gt;/sys/devices/platform/mxc_elcdif_fb/graphics/fb0/modes&lt;/P&gt;&lt;P&gt;But I'm not sure what's the best way to modify the source to have 240x240. I've tried following &lt;A _jive_internal="true" href="https://community.nxp.com/thread/311900" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.freescale.com/thread/311900&lt;/A&gt; but I don't know if I can apply it for using just 240x240 of a 800x480 display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ANDROID OS DRAWING WAY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this case I've tried modifying method mapFrameBufferWithFbid of hardware/imx/mx6/libgralloc_wrapper/framebuffer.cpp but I got only a full white display by forcing:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;info.xres = 240;&lt;/P&gt;
&lt;P&gt;info.yres = 240;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd really appreciate any help to achieve this hack.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:22:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267235#M28088</guid>
      <dc:creator>DiegoFSL</dc:creator>
      <dc:date>2013-11-08T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict kernel display driver or Android OS to use only a part of display pixels / resolution</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267236#M28089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best option, it is modifying the low level driver that handles the V4L2, just like the thread it is implemented by &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;&lt;A href="https://community.nxp.com/thread/311900"&gt;IMX6SLEVK: Custom display - 320x240@60Hz&lt;/A&gt;&amp;nbsp; and then change the bootargs to acknowledge the new resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267236#M28089</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2013-11-18T17:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict kernel display driver or Android OS to use only a part of display pixels / resolution</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267237#M28090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I've been able to use the 320x240 in this way, but not yet 240x240, as it's not a standard resolution. Thank you however for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 16:39:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267237#M28090</guid>
      <dc:creator>DiegoFSL</dc:creator>
      <dc:date>2013-11-28T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict kernel display driver or Android OS to use only a part of display pixels / resolution</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267238#M28091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to the same for Nexus 4 device. Were you able to draw&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;240x240???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If yes then can you help me with the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Currently I have tried changing the panel info of&amp;nbsp;xres and yres in kernel display driver file mipi_lgit_video_wxga_pt.c with 400&lt;SPAN&gt;x400. But only display is getting changed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;The touchscreen is still mapped to the initial resolution(768&lt;SPAN style="background-color: #ffffff;"&gt;x1280).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Any help will be really appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 10:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267238#M28091</guid>
      <dc:creator>nehaprabhakar</dc:creator>
      <dc:date>2016-11-24T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict kernel display driver or Android OS to use only a part of display pixels / resolution</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267239#M28092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply but no, I haven't spent additional time on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 11:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Restrict-kernel-display-driver-or-Android-OS-to-use-only-a-part/m-p/267239#M28092</guid>
      <dc:creator>DiegoFSL</dc:creator>
      <dc:date>2017-03-30T11:43:05Z</dc:date>
    </item>
  </channel>
</rss>

