Patchwork [meta-fsl-demos] pointercal-xinput: Add pointercal.xinput to mxs

login
register
mail settings
Submitter Otavio Salvador
Date April 5, 2013, 1:56 a.m.
Message ID <1365127005-14476-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/47477/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - April 5, 2013, 1:56 a.m.
From: Daiane Angolini <daiane.angolini@freescale.com>

This is being add here as an intering solution while OE-Core does not
have full XInput support.

Change-Id: I7d0553c70ced46febe2819b457e25a7749f17c71
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput           | 2 ++
 recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend       | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100644 recipes-graphics/xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput
 create mode 100644 recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend
Eric BENARD - April 5, 2013, 6:43 a.m.
Le Thu,  4 Apr 2013 22:56:45 -0300,
Otavio Salvador <otavio@ossystems.com.br> a écrit :

> From: Daiane Angolini <daiane.angolini@freescale.com>
> 
> This is being add here as an intering solution while OE-Core does not
> have full XInput support.
> 
> Change-Id: I7d0553c70ced46febe2819b457e25a7749f17c71
> Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
>  .../xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput           | 2 ++
>  recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend       | 2 ++

you can't make this file generic for all mxs products : a calibration
file is specific to a touchscreen sensors _and_ one display. So it
should at least be board specific.

Eric
Otavio Salvador - April 5, 2013, 11:22 a.m.
On Fri, Apr 5, 2013 at 3:43 AM, Eric Bénard <eric@eukrea.com> wrote:
> Le Thu,  4 Apr 2013 22:56:45 -0300,
> Otavio Salvador <otavio@ossystems.com.br> a écrit :
>
>> From: Daiane Angolini <daiane.angolini@freescale.com>
>>
>> This is being add here as an intering solution while OE-Core does not
>> have full XInput support.
>>
>> Change-Id: I7d0553c70ced46febe2819b457e25a7749f17c71
>> Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
>> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>> ---
>>  .../xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput           | 2 ++
>>  recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend       | 2 ++
>
> you can't make this file generic for all mxs products : a calibration
> file is specific to a touchscreen sensors _and_ one display. So it
> should at least be board specific.

Agreed.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
Angolini Daiane-B19406 - April 5, 2013, 11:55 a.m.
Thanks Eric and Otavio.

Otavio, I will talk to you latter today, I will need help on how to handle the calibration for imx28 properly (I mean, not this mxs stuff, but the right calibration approach pointercall/evdev)

Please, make sure this patch was reverted if it was already applied.


(I'm sorry about the format of this email, I'm using webmail)

Daiane
Otavio Salvador - April 5, 2013, 11:57 a.m.
On Fri, Apr 5, 2013 at 8:55 AM, Angolini Daiane-B19406
<B19406@freescale.com> wrote:
> Thanks Eric and Otavio.
>
> Otavio, I will talk to you latter today, I will need help on how to handle the calibration for imx28 properly (I mean, not this mxs stuff, but the right calibration approach pointercall/evdev)

Sure; no problem.

> Please, make sure this patch was reverted if it was already applied.

It still on queue, not applied.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/recipes-graphics/xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput b/recipes-graphics/xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput
new file mode 100644
index 0000000..59f7630
--- /dev/null
+++ b/recipes-graphics/xinput-calibrator/pointercal-xinput/mxs/pointercal.xinput
@@ -0,0 +1,2 @@ 
+xinput set-int-prop "MXS touchscreen" "Evdev Axis Calibration" 32 194 3938 301 3878
+xinput set-int-prop "MXS touchscreen" "Evdev Axes Swap" 8 1
diff --git a/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend b/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend
new file mode 100644
index 0000000..a9c60f3
--- /dev/null
+++ b/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bbappend
@@ -0,0 +1,2 @@ 
+# Append path for freescale layer to include bsp pointercal.xinput
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"