* [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens
@ 2013-09-05 21:27 Alexandre Belloni
2013-09-05 21:40 ` Otavio Salvador
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2013-09-05 21:27 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
.../xserver-xorg-1.14.0/cfa10057-evdev.conf.patch | 23 ++++++++++++++++++++++
.../xserver-xorg-1.14.0/cfa10058-evdev.conf.patch | 22 +++++++++++++++++++++
.../xorg-xserver/xserver-xorg_1.14.0.bbappend | 5 +++++
3 files changed, 50 insertions(+)
create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10057-evdev.conf.patch
create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10058-evdev.conf.patch
create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_1.14.0.bbappend
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10057-evdev.conf.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10057-evdev.conf.patch
new file mode 100644
index 0000000..a52a0ef
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10057-evdev.conf.patch
@@ -0,0 +1,23 @@
+cfa10057: add temporary calibration data to be able to fully calibrate
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+---
+ config/10-evdev.conf | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/config/10-evdev.conf b/config/10-evdev.conf
+index cc83ab2..4afcfd7 100644
+--- a/config/10-evdev.conf
++++ b/config/10-evdev.conf
+@@ -37,4 +37,6 @@ Section "InputClass"
+ MatchIsTouchscreen "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
++ Option "Calibration" "185 4074 285 3946"
++ Option "SwapAxes" "1"
+ EndSection
+--
+1.8.1.2
+
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10058-evdev.conf.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10058-evdev.conf.patch
new file mode 100644
index 0000000..376301a
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.14.0/cfa10058-evdev.conf.patch
@@ -0,0 +1,22 @@
+cfa10058: add temporary calibration data to be able to fully calibrate
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+---
+ config/10-evdev.conf | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/config/10-evdev.conf b/config/10-evdev.conf
+index cc83ab2..3dbaff2 100644
+--- a/config/10-evdev.conf
++++ b/config/10-evdev.conf
+@@ -37,4 +37,5 @@ Section "InputClass"
+ MatchIsTouchscreen "on"
+ MatchDevicePath "/dev/input/event*"
+ Driver "evdev"
++ Option "Calibration" "249 3861 3861 249"
+ EndSection
+--
+1.8.1.2
+
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_1.14.0.bbappend b/recipes-graphics/xorg-xserver/xserver-xorg_1.14.0.bbappend
new file mode 100644
index 0000000..f8777e8
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg_1.14.0.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
+
+SRC_URI_append_cfa10057 = " file://cfa10057-evdev.conf.patch"
+SRC_URI_append_cfa10058 = " file://cfa10058-evdev.conf.patch"
+
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens
2013-09-05 21:27 [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens Alexandre Belloni
@ 2013-09-05 21:40 ` Otavio Salvador
2013-09-05 22:27 ` Alexandre Belloni
0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2013-09-05 21:40 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Thu, Sep 5, 2013 at 6:27 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
I think this is not for -demos but for the BSP as the calibration is
the same for any image. Why you don't use pointercal-xinput for this?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens
2013-09-05 21:40 ` Otavio Salvador
@ 2013-09-05 22:27 ` Alexandre Belloni
2013-09-06 12:15 ` Otavio Salvador
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2013-09-05 22:27 UTC (permalink / raw)
To: Otavio Salvador
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On 05/09/2013 23:40, Otavio Salvador wrote:
> On Thu, Sep 5, 2013 at 6:27 PM, Alexandre Belloni
> <alexandre.belloni@free-electrons.com> wrote:
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> I think this is not for -demos but for the BSP as the calibration is
> the same for any image. Why you don't use pointercal-xinput for this?
>
Hum, I saw pointercal-xinput in -demos so I moved it there. I was under
the impression that for a resistive touchscreen, you need to calibrate
each board but maybe I'm wrong. According to
http://www.lindusembedded.com/blog/2013/02/07/adding-touch-support-in-yocto/,
xinput-calibrator<https://github.com/tias/xinput_calibrator> is only
working when the touchscreen has already been calibrated once. This does
exactly that but without pointercal.xinput being created so we get
xinput-calibrator on first boot.
I didn't exactly test everything myself (my touchscreen is not working)
and I may be wrong. I'm really open on that particular topic as long as
we get the touchscreen working ;)
Regards,
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens
2013-09-05 22:27 ` Alexandre Belloni
@ 2013-09-06 12:15 ` Otavio Salvador
0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-09-06 12:15 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Thu, Sep 5, 2013 at 7:27 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> On 05/09/2013 23:40, Otavio Salvador wrote:
>> On Thu, Sep 5, 2013 at 6:27 PM, Alexandre Belloni
>> <alexandre.belloni@free-electrons.com> wrote:
>>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
>> I think this is not for -demos but for the BSP as the calibration is
>> the same for any image. Why you don't use pointercal-xinput for this?
>>
>
> Hum, I saw pointercal-xinput in -demos so I moved it there. I was under
This was there because pointercal-xinput were in meta-openembedded in
past; will fix it.
> the impression that for a resistive touchscreen, you need to calibrate
> each board but maybe I'm wrong. According to
> http://www.lindusembedded.com/blog/2013/02/07/adding-touch-support-in-yocto/,
> xinput-calibrator<https://github.com/tias/xinput_calibrator> is only
> working when the touchscreen has already been calibrated once. This does
> exactly that but without pointercal.xinput being created so we get
> xinput-calibrator on first boot.
In fact xinput-calibrator spawns the process only if it does not find
a usable calibration; so in case you provide it, it won't start as it
can reuse the provided data.
> I didn't exactly test everything myself (my touchscreen is not working)
> and I may be wrong. I'm really open on that particular topic as long as
> we get the touchscreen working ;)
Good; I will send the patch to move pointercal-xinput to meta-fsl-arm,
as it is where it ought to be. Please check the possibility of using
it as it'd avoid a bbappend for xorg and it will be easier to
maintain in long term.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-06 12:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 21:27 [meta-fsl-demos][PATCH] xserver-xorg: add evdev configuration for the cfa-10057 and cfa-10058 touchscreens Alexandre Belloni
2013-09-05 21:40 ` Otavio Salvador
2013-09-05 22:27 ` Alexandre Belloni
2013-09-06 12:15 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.