Patchwork [2/3] xinput-calibrator: Add 0.7.5 as new recipe

login
register
mail settings
Submitter Zhai, Edwin
Date July 26, 2011, 12:30 p.m.
Message ID <73ea8ff94e4bda213df1a5a39615f4cd39899589.1311682779.git.edwin.zhai@intel.com>
Download mbox | patch
Permalink /patch/8551/
State New, archived
Headers show

Comments

Zhai, Edwin - July 26, 2011, 12:30 p.m.
From: Zhai Edwin <edwin.zhai@intel.com>

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
 .../xinput-calibrator/xinput-calibrator_0.7.5.bb   |   24 ++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
Koen Kooi - July 26, 2011, 12:53 p.m.
This one looks suspicously like the one in meta-oe. Apart from that, is it really needed in oe-core?

Op 26 jul. 2011, om 14:30 heeft edwin.zhai@intel.com het volgende geschreven:

> From: Zhai Edwin <edwin.zhai@intel.com>
> 
> Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
> ---
> .../xinput-calibrator/xinput-calibrator_0.7.5.bb   |   24 ++++++++++++++++++++
> 1 files changed, 24 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
> 
> diff --git a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
> new file mode 100644
> index 0000000..5a868f7
> --- /dev/null
> +++ b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
> @@ -0,0 +1,24 @@
> +DESCRIPTION = "A generic touchscreen calibration program for X.Org"
> +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
> +
> +LICENSE = "MIT/X11"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466\
> +                    file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc"
> +
> +DEPENDS = "virtual/libx11 libxi"
> +
> +inherit autotools
> +
> +RDEPENDS_${PN} = "xinput"
> +
> +SRC_URI = "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz"
> +SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa"
> +SRC_URI[sha256sum] = "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971"
> +
> +S = "${WORKDIR}/xinput_calibrator-${PV}"
> +
> +do_install_append() {
> +        install -d ${D}${bindir}
> +        install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
> +        install -m 0755 scripts/xinput_calibrator_get_hal_calibration.sh ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh
> +}
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Richard Purdie - July 26, 2011, 1:26 p.m.
On Tue, 2011-07-26 at 14:53 +0200, Koen Kooi wrote:
> This one looks suspicously like the one in meta-oe. Apart from that,
> is it really needed in oe-core?

Given that the xcalibrate extension has been removed from the xserver I
think we're going to either need to migrate the tools like xtscal or
adopt other tools. Certainly OE-Core should have a consistent story for
touchscreens...

Cheers,

Richard
Koen Kooi - July 26, 2011, 1:36 p.m.
Op 26 jul. 2011, om 15:26 heeft Richard Purdie het volgende geschreven:

> On Tue, 2011-07-26 at 14:53 +0200, Koen Kooi wrote:
>> This one looks suspicously like the one in meta-oe. Apart from that,
>> is it really needed in oe-core?
> 
> Given that the xcalibrate extension has been removed from the xserver I
> think we're going to either need to migrate the tools like xtscal or
> adopt other tools. Certainly OE-Core should have a consistent story for
> touchscreens…

If you're going to copy over the meta-oe recipes 1:1 it makes sense to merge the remaining x differences as well. It would make meta-oe a lot smaller :)
Zhai, Edwin - July 27, 2011, 12:56 a.m.
I borrowed it from meta-oe with minor modification.
xinput is very useful for debug and test of input device under X. 
xinput_calibrator is a must for touchscreen device.

Koen Kooi wrote:
>
> This one looks suspicously like the one in meta-oe. Apart from that, 
> is it really needed in oe-core?
>
> Op 26 jul. 2011, om 14:30 heeft edwin.zhai@intel.com het volgende 
> geschreven:
>
> > From: Zhai Edwin <edwin.zhai@intel.com>
> >
> > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
> > ---
> > .../xinput-calibrator/xinput-calibrator_0.7.5.bb   |   24 
> ++++++++++++++++++++
> > 1 files changed, 24 insertions(+), 0 deletions(-)
> > create mode 100644 
> meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
> >
> > diff --git 
> a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb 
> b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
>
> > new file mode 100644
> > index 0000000..5a868f7
> > --- /dev/null
> > +++ 
> b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
> > @@ -0,0 +1,24 @@
> > +DESCRIPTION = "A generic touchscreen calibration program for X.Org"
> > +HOMEPAGE = 
> "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
> > +
> > +LICENSE = "MIT/X11"
> > +LIC_FILES_CHKSUM = 
> "file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466\ 
> <file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466%5C>
> > +                    
> file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc" 
>
> > +
> > +DEPENDS = "virtual/libx11 libxi"
> > +
> > +inherit autotools
> > +
> > +RDEPENDS_${PN} = "xinput"
> > +
> > +SRC_URI = 
> "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz" 
>
> > +SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa"
> > +SRC_URI[sha256sum] = 
> "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971"
> > +
> > +S = "${WORKDIR}/xinput_calibrator-${PV}"
> > +
> > +do_install_append() {
> > +        install -d ${D}${bindir}
> > +        install -m 0755 scripts/xinput_calibrator_pointercal.sh 
> ${D}${bindir}/xinput_calibrator_once.sh
> > +        install -m 0755 
> scripts/xinput_calibrator_get_hal_calibration.sh 
> ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh
>
> > +}
> > --
> > 1.7.1
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Zhai, Edwin - Aug. 3, 2011, 7:53 a.m.
Richard Purdie wrote:
>
> On Tue, 2011-07-26 at 14:53 +0200, Koen Kooi wrote:
> > This one looks suspicously like the one in meta-oe. Apart from that,
> > is it really needed in oe-core?
>
> Given that the xcalibrate extension has been removed from the xserver I
> think we're going to either need to migrate the tools like xtscal or
> adopt other tools. Certainly OE-Core should have a consistent story for
> touchscreens...
>

RP,
There is another recipe pointercal-xinput that provides script for 
calibration based on xinput_calibrator's output. So moving xinput, 
xinput_calibrator and pointercal-xinput from meta-oe to oe-core make a 
consistent story?

If no objection, I'll do this...
>
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Khem Raj - Aug. 3, 2011, 3 p.m.
On 08/03/2011 12:53 AM, Zhai, Edwin wrote:
>
>
> Richard Purdie wrote:
>>
>> On Tue, 2011-07-26 at 14:53 +0200, Koen Kooi wrote:
>> > This one looks suspicously like the one in meta-oe. Apart from that,
>> > is it really needed in oe-core?
>>
>> Given that the xcalibrate extension has been removed from the xserver I
>> think we're going to either need to migrate the tools like xtscal or
>> adopt other tools. Certainly OE-Core should have a consistent story for
>> touchscreens...
>>
>
> RP,
> There is another recipe pointercal-xinput that provides script for
> calibration based on xinput_calibrator's output. So moving xinput,
> xinput_calibrator and pointercal-xinput from meta-oe to oe-core make a
> consistent story?
>
> If no objection, I'll do this...

yes please. I have not been able to caliberate screen using 
xinput-calibrator. I would try anything that will get me going.

>>
>> Cheers,
>>
>> Richard
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Koen Kooi - Aug. 3, 2011, 3:13 p.m.
Op 3 aug. 2011, om 17:00 heeft Khem Raj het volgende geschreven:

> On 08/03/2011 12:53 AM, Zhai, Edwin wrote:
>> 
>> 
>> Richard Purdie wrote:
>>> 
>>> On Tue, 2011-07-26 at 14:53 +0200, Koen Kooi wrote:
>>> > This one looks suspicously like the one in meta-oe. Apart from that,
>>> > is it really needed in oe-core?
>>> 
>>> Given that the xcalibrate extension has been removed from the xserver I
>>> think we're going to either need to migrate the tools like xtscal or
>>> adopt other tools. Certainly OE-Core should have a consistent story for
>>> touchscreens...
>>> 
>> 
>> RP,
>> There is another recipe pointercal-xinput that provides script for
>> calibration based on xinput_calibrator's output. So moving xinput,
>> xinput_calibrator and pointercal-xinput from meta-oe to oe-core make a
>> consistent story?
>> 
>> If no objection, I'll do this...
> 
> yes please. I have not been able to caliberate screen using xinput-calibrator. I would try anything that will get me going.

I've only used it under X and if you use xf86-input-evdev it "just works". The most recent system I tried was an ipaq hx4700 with kernel 3.0.

Patch

diff --git a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
new file mode 100644
index 0000000..5a868f7
--- /dev/null
+++ b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
@@ -0,0 +1,24 @@ 
+DESCRIPTION = "A generic touchscreen calibration program for X.Org"
+HOMEPAGE = "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
+
+LICENSE = "MIT/X11"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466\
+                    file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc"
+
+DEPENDS = "virtual/libx11 libxi"
+
+inherit autotools
+
+RDEPENDS_${PN} = "xinput"
+
+SRC_URI = "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz"
+SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa"
+SRC_URI[sha256sum] = "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971"
+
+S = "${WORKDIR}/xinput_calibrator-${PV}"
+
+do_install_append() {
+        install -d ${D}${bindir}
+        install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
+        install -m 0755 scripts/xinput_calibrator_get_hal_calibration.sh ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh
+}