<?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: touchscreen tsc2004 android not working in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743301#M115652</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;There were two things, I found to make it work:&lt;/P&gt;&lt;P&gt;1. No need to callibrate the touchscreen in linux driver. Although driver is sending touch coordinates(0-4096). Android will handle the coordinates accordingly and map the touchscreen to the display resolution.&lt;/P&gt;&lt;P&gt;2. I found that touchscreen was rotated by 90 degree(top left corned cordinates are (0,90) in place of (0,0)). So I modified the driver to correct the coordinate before passing to the userspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 02:36:46 GMT</pubDate>
    <dc:creator>pravverma</dc:creator>
    <dc:date>2018-07-16T02:36:46Z</dc:date>
    <item>
      <title>touchscreen tsc2004 android not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743298#M115649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using imx_7.1.2 Android Nougat release for our custom board.&lt;/P&gt;&lt;P&gt;In the custom board tsc2004(12 bit ADC) based touchscreen is used. Screen resolution is &lt;STRONG&gt;480x272&lt;/STRONG&gt;.&lt;BR /&gt;So, I have performed the calibration using tslib.&lt;/P&gt;&lt;P&gt;I am able to read the calibrated touch coordinates using getevent(as shown below), but at android GUI, there is no action performing on touching. I am using the tsc2004.c driver came with the kernel release and performing the callibration in driver before sending the coordinates to userspace.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sabresd_6dq:/ # getevent -lp /dev/input/event0 &lt;BR /&gt;add device 1: /dev/input/event0&lt;BR /&gt; name: "TSC200X"&lt;BR /&gt; events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Touchscreen Top Left value)&lt;/STRONG&gt;&lt;BR /&gt; KEY (0001): BTN_TOUCH* &lt;BR /&gt; ABS (0003):&lt;/P&gt;&lt;P&gt;ABS_X :&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value 13, min 0, max 4095, fuzz 4, flat 0, resolution 0&lt;BR /&gt; ABS_Y :&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value 15, min 0, max 4095, fuzz 7, flat 0, resolution 0&lt;BR /&gt; ABS_PRESSURE : value 336, min 0, max 2048, fuzz 2, flat 0, resolution 0&lt;BR /&gt; input props:&lt;BR /&gt; &amp;lt;none&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;STRONG&gt;Touchscreen&amp;nbsp;&lt;/STRONG&gt;Top Right Value)&lt;/STRONG&gt;&lt;BR /&gt;sabresd_6dq:/ # getevent -lp /dev/input/event0 &lt;BR /&gt;add device 1: /dev/input/event0&lt;BR /&gt; name: "TSC200X"&lt;BR /&gt; events:&lt;BR /&gt; KEY (0001): BTN_TOUCH* &lt;BR /&gt; ABS (0003):&lt;/P&gt;&lt;P&gt;ABS_X :&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value 464, min 0, max 4095, fuzz 4, flat 0, resolution 0&lt;BR /&gt; ABS_Y : &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value 14, min 0, max 4095, fuzz 7, flat 0, resolution 0&lt;BR /&gt; ABS_PRESSURE :&amp;nbsp; value 399, min 0, max 2048, fuzz 2, flat 0, resolution 0&lt;BR /&gt; input props:&lt;BR /&gt; &amp;lt;none&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;STRONG&gt;Touchscreen&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Bottom Right Value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;sabresd_6dq:/ # getevent -lp /dev/input/event0 &lt;BR /&gt;add device 1: /dev/input/event0&lt;BR /&gt; name: "TSC200X"&lt;BR /&gt; events:&lt;BR /&gt; KEY (0001): BTN_TOUCH* &lt;BR /&gt; ABS (0003):&lt;/P&gt;&lt;P&gt;ABS_X : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value 462, min 0, max 4095, fuzz 4, flat 0, resolution 0&lt;BR /&gt; ABS_Y : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value 250, min 0, max 4095, fuzz 7, flat 0, resolution 0&lt;BR /&gt; ABS_PRESSURE : value 307, min 0, max 2048, fuzz 2, flat 0, resolution 0&lt;BR /&gt; input props:&lt;BR /&gt; &amp;lt;none&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(&lt;STRONG&gt;Touchscreen&amp;nbsp;&lt;/STRONG&gt;Bottom Left Value)&lt;/STRONG&gt;&lt;BR /&gt;sabresd_6dq:/ # getevent -lp /dev/input/event0 &lt;BR /&gt;add device 1: /dev/input/event0&lt;BR /&gt; name: "TSC200X"&lt;BR /&gt; events:&lt;BR /&gt; KEY (0001): BTN_TOUCH* &lt;BR /&gt; ABS (0003):&lt;/P&gt;&lt;P&gt;ABS_X : value 8, min 0, max 4095, fuzz 4, flat 0, resolution 0&lt;BR /&gt; ABS_Y : value 247, min 0, max 4095, fuzz 7, flat 0, resolution 0&lt;BR /&gt; ABS_PRESSURE : value 299, min 0, max 2048, fuzz 2, flat 0, resolution 0&lt;BR /&gt; input props:&lt;BR /&gt; &amp;lt;none&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idc file:&lt;/P&gt;&lt;P&gt;======&lt;/P&gt;&lt;P&gt;sabresd_6dq:/ # cat /system/usr/idc/TSC200X.idc &lt;BR /&gt;touch.deviceType = touchScreen&lt;BR /&gt;touch.orientationAware = 1&lt;/P&gt;&lt;P&gt;touch.size.calibration = none&lt;BR /&gt;touch.orientation.calibration = none&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 13:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743298#M115649</guid>
      <dc:creator>pravverma</dc:creator>
      <dc:date>2018-03-09T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: touchscreen tsc2004 android not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743299#M115650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the below community discussions. Probably some of the information located there can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/305854"&gt;tsc2004 touchscreen driver on Jelly Bean(JB) jb4.2.1_1.0.0-alpha&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/293210"&gt;https://community.nxp.com/thread/293210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope some of that information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743299#M115650</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-03-13T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: touchscreen tsc2004 android not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743300#M115651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="247915" data-username="pravverma" href="https://community.nxp.com/people/pravverma" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;praveen verma&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I met same issue, Could you tell how to reslove this please.thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 03:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743300#M115651</guid>
      <dc:creator>赵振业</dc:creator>
      <dc:date>2018-07-10T03:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: touchscreen tsc2004 android not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743301#M115652</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;There were two things, I found to make it work:&lt;/P&gt;&lt;P&gt;1. No need to callibrate the touchscreen in linux driver. Although driver is sending touch coordinates(0-4096). Android will handle the coordinates accordingly and map the touchscreen to the display resolution.&lt;/P&gt;&lt;P&gt;2. I found that touchscreen was rotated by 90 degree(top left corned cordinates are (0,90) in place of (0,0)). So I modified the driver to correct the coordinate before passing to the userspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 02:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743301#M115652</guid>
      <dc:creator>pravverma</dc:creator>
      <dc:date>2018-07-16T02:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: touchscreen tsc2004 android not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743302#M115653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="247915" data-username="pravverma" href="https://community.nxp.com/people/pravverma" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;praveen verma&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks very much,It is helpful for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I made it work now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 02:17:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/touchscreen-tsc2004-android-not-working/m-p/743302#M115653</guid>
      <dc:creator>赵振业</dc:creator>
      <dc:date>2018-07-17T02:17:36Z</dc:date>
    </item>
  </channel>
</rss>

