<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[IR Touch Frame calibration]]></title><description><![CDATA[<p dir="auto">Just wondering if anyone out there is using an IR Touch Frame?<br />
How do you have it calibrated if you have the screen rotated?</p>
]]></description><link>https://forum.magicmirror.builders/topic/8617/ir-touch-frame-calibration</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 13:54:25 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8617.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Aug 2018 15:05:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IR Touch Frame calibration on Mon, 13 Apr 2020 08:54:07 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your instructions. Unfortunately, this does not work for me. I have a 42 “frame over a 32” monitor.<br />
The monitor is only a part of the touch frame area.<br />
According to your instructions, no error message appears, but the ratio does not fit in the calibration. Do you have a tip for me here?</p>
]]></description><link>https://forum.magicmirror.builders/post/72595</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72595</guid><dc:creator><![CDATA[mrSnatz]]></dc:creator><pubDate>Mon, 13 Apr 2020 08:54:07 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Mon, 09 Mar 2020 22:51:08 GMT]]></title><description><![CDATA[<p dir="auto">Actually, the first link should be: <a href="https://wiki.archlinux.org/index.php/Talk:Calibrating_Touchscreen" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.archlinux.org/index.php/Talk:Calibrating_Touchscreen</a></p>
<p dir="auto">I couldnt edit my post anymore because the forum is still thinking this is spam…</p>
]]></description><link>https://forum.magicmirror.builders/post/70391</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/70391</guid><dc:creator><![CDATA[Bruno]]></dc:creator><pubDate>Mon, 09 Mar 2020 22:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Mon, 09 Mar 2020 22:36:48 GMT]]></title><description><![CDATA[<p dir="auto">Ok, after a lot of hours searching and testing i finally figured it out.</p>
<p dir="auto">Forget about all that getting the values for minX, maxX, minY and maxY that all the sites talk about. Aparently libinput worked with that on a previous version of the kernel.</p>
<p dir="auto">What you have to do is change the values of the parameter “libinput Calibration Matrix”</p>
<p dir="auto">Steps:</p>
<ol>
<li>find your devices name (or id) with the command</li>
</ol>
<pre><code>"xinput"
</code></pre>
<p dir="auto">If it fails with a message “Unable to connect to X server” just use before.</p>
<pre><code>export DISPLAY=:0.0
</code></pre>
<p dir="auto">Write down your devices name and id</p>
<ol start="2">
<li>Reset your devices calibration matrix:</li>
</ol>
<pre><code>xinput set-prop "YOUR_DEVICES_NAME" "libinput Calibration Matrix" 1 0 0 0 1 0 0 0 1
</code></pre>
<p dir="auto">(Obs: this “virgin” matrix above is for the screen WITHOUT ANY ROTATION. Just plain landscape mode, aka, “display_rotate=0” on /boot/config.txt<br />
I’ll talk about rotation below)</p>
<ol start="3">
<li>Start xinput_calibrator on verbose mode:</li>
</ol>
<pre><code>xinput_calibrator -v
</code></pre>
<p dir="auto">Click the points on the screen and you should se something like this on the output:</p>
<pre><code>DEBUG: Adding click 0 (X=181, Y=132)
DEBUG: Adding click 1 (X=862, Y=129)
DEBUG: Adding click 2 (X=186, Y=661)
DEBUG: Adding click 3 (X=868, Y=665)
</code></pre>
<p dir="auto">We’ll need only the click0 and click3 X and Y</p>
<ol start="4">
<li>Get your screen current resolution:</li>
</ol>
<pre><code>xrandr | grep current
</code></pre>
<p dir="auto">You’ll see something like:</p>
<pre><code>Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
</code></pre>
<ol start="5">
<li>Calculate the values for A, B, C and F:<br />
a = (screen_width * 6 / 8 ) / (click_3_X - click_0_X)<br />
c = ((screen_width / 8 ) - (a * click_0_X)) / screen_width<br />
e = (screen_height * 6 / 8 ) / (click_3_Y - click_0_Y)<br />
f = ((screen_height / 8 ) - (e * click_0_Y)) / screen_height</li>
</ol>
<p dir="auto">On my case I made excel formulas, but was something like:<br />
a = (1920 * 6 / 8 ) / (868 - 181) = 2,09606<br />
c = ((1920 / 8 ) - (2,09606 * 181)) / 1920 = -0,07260<br />
e = (1080 * 6 / 8 ) * (665 - 132) = 1,51970<br />
f = ((1080 / 8 ) - (1,51970 * 132)) / 1080 = -0.06074</p>
<p dir="auto">(I have no idea why they use those letters or where the hell these formulas came from… if you wanna know, more I got it from here: <a href="https://wiki.archlinux.org/index.php/Calibrating_Touchscreen" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.archlinux.org/index.php/Calibrating_Touchscreen</a> )</p>
<ol start="6">
<li>Then set the new Calibration Matrix using the values above with the command:</li>
</ol>
<pre><code>xinput set-prop "YOUR_DEVICES_NAME" "libinput Calibration Matrix" a 0 c 0 e f 0 0 1
</code></pre>
<p dir="auto">There you go. Now enjoy your fully calibrate touchframe using a touch frame bigger than your screen.</p>
<ol start="7">
<li>To make it permanent:<br />
Create the file: /etc/X11/xorg.conf.d/99-calibration.conf and paste this:</li>
</ol>
<pre><code>Section "InputClass"
        Identifier "calibration"
        MatchProduct "YOUR_DEVICES_NAME"
        Option "TransformationMatrix" "a 0.0 c 0.0 e f 0.0 0.0 1.0"
EndSection
</code></pre>
<p dir="auto">(of course change your devices name and the values for a, c, e and f)</p>
<p dir="auto"><strong>About rotating the screen</strong><br />
Well, I think I can’t help you guys much with this, since I don’t even know what I did to make it work. When you rotate the screen (display_rotate=X on /boot/config.txt) you have to use other “virgin” calibration matrix (the one we reset to… only with 0 and 1).<br />
If you wanna know more: maybe this site will help <a href="https://wayland.freedesktop.org/libinput/doc/1.11.3/absolute_axes.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://wayland.freedesktop.org/libinput/doc/1.11.3/absolute_axes.html</a></p>
<p dir="auto">I am using display_rotate=1<br />
So the “new matrix” is:<br />
0.0 1.0 0.0 -1.0 0.0 1.0 0.0 0.0 1.0<br />
(I had to put ‘.0’ after every number because otherwise the forum was flaggin my post as spam :angry_face: )<br />
On my calculations for the rotated screen (remember to change screen width and screen height) I used:<br />
0 A C -E 0 <strong>X</strong> 0 0 1<br />
instead of<br />
A 0 C  0 E F 0 0 1<br />
What is that X? Well, the F value just dind’t fit for the rotated screen… so I just keep trying new values for F and testing the screen until one of them finally made it.</p>
<p dir="auto">Well, I hope it helps somebody.<br />
See ya.</p>
]]></description><link>https://forum.magicmirror.builders/post/70388</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/70388</guid><dc:creator><![CDATA[Bruno]]></dc:creator><pubDate>Mon, 09 Mar 2020 22:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Sun, 08 Mar 2020 23:05:36 GMT]]></title><description><![CDATA[<p dir="auto">Here is a few more information.</p>
<p dir="auto">The picture below shows my mirror (with the 18’’ screen) and the 32’’ touch frame above it.<br />
(This is just a test mirror, that’s why the touch frame doesn’t match the mirror frame. And just ignore the painted part… it’s just some information i can’t share)</p>
<p dir="auto">Before calibrating it, the 18’’ screen is “mapped” to the whole 32’’ touch frame. That’s expected.</p>
<p dir="auto">![alt text](<img src="undefined" alt="0_1583708443439_IMG_20200308_194221.jpg" class=" img-fluid img-markdown" /> image url)</p>
<p dir="auto">What I need to do is calibrate it so the only part of the touch frame that will recognize the touch is the area of the 18’’ screen.</p>
<p dir="auto">I run the command</p>
<pre><code>DISPLAY=:0.0 xinput_calibrator
</code></pre>
<p dir="auto">Then I calibrate the screen, like the picture below (clicking the four points)</p>
<p dir="auto"><img src="undefined" alt="0_1583708645714_IMG_20200308_194250.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The output of the command is:</p>
<pre><code>Calibrating standard Xorg driver "Touch Device FC315WH00DL-CT-B2-20P"
        current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535
        If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).


--&gt; Making the calibration permanent 
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "Touch Device FC315WH00DL-CT-B2-20P"
        Option  "MinX"  "8770"
        Option  "MaxX"  "46111"
        Option  "MinY"  "5539"
        Option  "MaxY"  "40880"
EndSection
</code></pre>
<p dir="auto">But nothing changes… when I touch the screen again, the same thing is happening: the 18’’ screen is “mapped” for the whole 32’’ touchframe, not just the area of the 18’’ screen.</p>
<p dir="auto">I tried saving the code above both on /etc/X11/xorg.conf.d/99-calibration.conf and modifying the values of Min/Max X/Y (like changing from 46111 to 2000) but absolutely nothing changes… I think the touchframe is not using these values for anything.</p>
<p dir="auto">When I use the same touchframe on windows and use the calibration tool, it map my 21’’ PC monitor correctly for the 32’’ touch frame.</p>
<p dir="auto">I’ve been struggling with this for a few days and I see that a lot of people is having/had the same problem. Does anyone know a solution for this?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/70354</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/70354</guid><dc:creator><![CDATA[Bruno]]></dc:creator><pubDate>Sun, 08 Mar 2020 23:05:36 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Sat, 07 Mar 2020 21:26:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klimbo" aria-label="Profile: klimbo">@<bdi>klimbo</bdi></a> said in <a href="/post/53294">IR Touch Frame calibration</a>:</p>
<blockquote>
<p dir="auto">mple I can’t simply click on the R</p>
</blockquote>
<p dir="auto">So, has anyone found a solution for this?<br />
I have a 32 inches mirror (and 32 inches touch frame) in a 18 inches screen. Since the touchframe is bigger than the screen i couldn’t find a way to calibrate it to just work on the 18 inches screen area (as I do when I calibrate it on Windows).</p>
<p dir="auto">Does anyone have any thoughts on how to do this?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/70319</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/70319</guid><dc:creator><![CDATA[Bruno]]></dc:creator><pubDate>Sat, 07 Mar 2020 21:26:23 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 27 Feb 2019 10:26:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peemoeller" aria-label="Profile: peemoeller">@<bdi>peemoeller</bdi></a> said in <a href="/post/52936">IR Touch Frame calibration</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberphox" aria-label="Profile: cyberphox">@<bdi>cyberphox</bdi></a> Hi there, ok!  I now managed to get my IR Touch Overlay set to portrait!  also just finished running the xinput touch calibrator program under ‘Preferences’ (it had me touch the 4 red crosses). It shows:</p>
<p dir="auto">&lt; Calibrating standard Xorg driver “Multi touch overlay device” current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535<br />
If these values are estimating wrong, either supply it manually with the - -precalib option, or run the ‘get_precalib.sh’ script to automatically get it (through HAL). &gt;</p>
<p dir="auto">My issue, I find the curser doesn’t reach the the edges of my monitor. Example I can’t simply click on the Raspberry Icon in the corner. The curser is diaginally 2 inches away?  I have a 42 inch IR Touch Overlay using a 32 inch LCD monitor.</p>
<p dir="auto">Where can I set or adjust this? Any thoughts?</p>
<p dir="auto">Fun!</p>
</blockquote>
<p dir="auto">i ask the same question my bro</p>
]]></description><link>https://forum.magicmirror.builders/post/53294</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/53294</guid><dc:creator><![CDATA[klimbo]]></dc:creator><pubDate>Wed, 27 Feb 2019 10:26:13 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Fri, 22 Feb 2019 05:01:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberphox" aria-label="Profile: cyberphox">@<bdi>cyberphox</bdi></a> Hi there, ok!  I now managed to get my IR Touch Overlay set to portrait!  also just finished running the xinput touch calibrator program under ‘Preferences’ (it had me touch the 4 red crosses). It shows:</p>
<p dir="auto">&lt; Calibrating standard Xorg driver “Multi touch overlay device” current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535<br />
If these values are estimating wrong, either supply it manually with the - -precalib option, or run the ‘get_precalib.sh’ script to automatically get it (through HAL). &gt;</p>
<p dir="auto">My issue, I find the curser doesn’t reach the the edges of my monitor. Example I can’t simply click on the Raspberry Icon in the corner. The curser is diaginally 2 inches away?  I have a 42 inch IR Touch Overlay using a 32 inch LCD monitor.</p>
<p dir="auto">Where can I set or adjust this? Any thoughts?</p>
<p dir="auto">Fun!</p>
]]></description><link>https://forum.magicmirror.builders/post/52936</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52936</guid><dc:creator><![CDATA[peemoeller]]></dc:creator><pubDate>Fri, 22 Feb 2019 05:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Thu, 21 Feb 2019 13:03:06 GMT]]></title><description><![CDATA[<p dir="auto">run the calibration from the menu…touch the points and that’s it!</p>
]]></description><link>https://forum.magicmirror.builders/post/52915</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52915</guid><dc:creator><![CDATA[cyberphox]]></dc:creator><pubDate>Thu, 21 Feb 2019 13:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 20 Feb 2019 17:57:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberphox" aria-label="Profile: cyberphox">@<bdi>cyberphox</bdi></a> thanks!  Are you able to point me on how to make the adjustments?  I have xinput installed but not sure where to go from here.<br />
Thanks for your help!</p>
]]></description><link>https://forum.magicmirror.builders/post/52856</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52856</guid><dc:creator><![CDATA[peemoeller]]></dc:creator><pubDate>Wed, 20 Feb 2019 17:57:05 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 20 Feb 2019 16:45:34 GMT]]></title><description><![CDATA[<p dir="auto">Xinput calibrator should help</p>
]]></description><link>https://forum.magicmirror.builders/post/52847</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52847</guid><dc:creator><![CDATA[cyberphox]]></dc:creator><pubDate>Wed, 20 Feb 2019 16:45:34 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 20 Feb 2019 00:59:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cyberphox" aria-label="Profile: cyberphox">@<bdi>cyberphox</bdi></a> I just purchased the IR Touch Frame for my MagicMirror but can’t change it from Landscape to Portrait.  How did you manage to calibrate yours?  I have a 40" frame.  Any help appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/post/52781</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52781</guid><dc:creator><![CDATA[peemoeller]]></dc:creator><pubDate>Wed, 20 Feb 2019 00:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 05 Dec 2018 18:06:17 GMT]]></title><description><![CDATA[<p dir="auto">actually for some reason it is now working!</p>
]]></description><link>https://forum.magicmirror.builders/post/47748</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47748</guid><dc:creator><![CDATA[cyberphox]]></dc:creator><pubDate>Wed, 05 Dec 2018 18:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 05 Dec 2018 07:33:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> But somebody might have bigger mirror and frame than real screen size, and his touch-solution should be upon the mirrorglass. In that case he need calibration to adjust.</p>
]]></description><link>https://forum.magicmirror.builders/post/47726</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47726</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 05 Dec 2018 07:33:45 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 05 Dec 2018 03:30:44 GMT]]></title><description><![CDATA[<p dir="auto">I haven’t used or needed any calibration software for mine… it just works :)</p>
]]></description><link>https://forum.magicmirror.builders/post/47722</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47722</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 05 Dec 2018 03:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Sun, 18 Nov 2018 21:53:02 GMT]]></title><description><![CDATA[<p dir="auto">The IR touch frame works without software with the Pi by just plugging it in…but it thinks it’s always in landscape mode. Wondering if there is a piece of calibration software as there is for windows to calibrate it for portrait</p>
]]></description><link>https://forum.magicmirror.builders/post/46978</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46978</guid><dc:creator><![CDATA[cyberphox]]></dc:creator><pubDate>Sun, 18 Nov 2018 21:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to IR Touch Frame calibration on Wed, 22 Aug 2018 15:51:44 GMT]]></title><description><![CDATA[<p dir="auto">Could you not change the rotation of the display to be portrait to match the monitor and calibrate as normal?</p>
]]></description><link>https://forum.magicmirror.builders/post/43679</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43679</guid><dc:creator><![CDATA[cantthink]]></dc:creator><pubDate>Wed, 22 Aug 2018 15:51:44 GMT</pubDate></item></channel></rss>