Skip to contentSkip to conversation

utils for touchscreen calibration

PATCH In review [email protected] 4 participants 11 messages Jul 26, 2011 – Aug 3, 2011

lore
Share & tools
lore
#0 lore raw

cover utils for touchscreen calibration

From: Zhai Edwin <[email protected]>

These are some debug and calibration utils for touchscreen. Xinput and evtest can also be used for other input device. I'm not sure about where they should go under meta. Any comments?

Thanks,
Edwin

The following changes since commit e0fc42b51a8209dac1163ae8126f8c687b6bfddf:

distro_tracking_fields.inc: update RECIPE_MANUAL_CHECK_DATE for screen and tcf-agent (2011-06-29 15:04:59 +0100)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib gzhai/master
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/master

Zhai Edwin (3):
xinput: Add 1.5.3 as new recipes
xinput-calibrator: Add 0.7.5 as new recipe
evtest: Add 1.25 as new recipe

 meta/recipes-graphics/evtest/evtest_1.25.bb        |   16 +++++++++++++
 .../xinput-calibrator/xinput-calibrator_0.7.5.bb   |   24 ++++++++++++++++++++
 meta/recipes-graphics/xorg-app/xinput_1.5.3.bb     |    9 +++++++
 3 files changed, 49 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-graphics/evtest/evtest_1.25.bb
 create mode 100644 meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
 create mode 100644 meta/recipes-graphics/xorg-app/xinput_1.5.3.bb
#1 lore raw

PATCH 1/3 xinput: Add 1.5.3 as new recipes

From: Zhai Edwin <[email protected]>

---
 meta/recipes-graphics/xorg-app/xinput_1.5.3.bb |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-graphics/xorg-app/xinput_1.5.3.bb
meta/recipes-graphics/xorg-app/xinput_1.5.3.bb new file +9 -0
new file mode 100644
index 0000000..cc71857
@@ -0,0 +1,9 @@
+require xorg-app-common.inc
+DESCRIPTION = "a utility to configure and test XInput devices"
+DEPENDS += " libxi"
+PR = "r0"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=22c34ea36136407a77702a8b784f9bd0"
+
+SRC_URI[md5sum] = "1e2f0ad4f3fa833b65c568907f171d28"
+SRC_URI[sha256sum] = "6aade131cecddaeefc39ddce1dd5e8473f6039c2e4efbfd9fbb5ee2a75885c76"
Signature · 1 line
1.7.1
#2 lore raw

PATCH 2/3 xinput-calibrator: Add 0.7.5 as new recipe

In reply to [email protected]

From: Zhai Edwin <[email protected]>

---
 .../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
meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb new file +24 -0
new file mode 100644
index 0000000..5a868f7
@@ -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
+}
Signature · 1 line
1.7.1
#3 lore raw

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

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 [email protected] het volgende geschreven:

Quoted 46 lines

From: Zhai Edwin <[email protected]>

---
.../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

meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb new file +24 -0
new file mode 100644
index 0000000..5a868f7
@@ -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
+}
Signature · 7 lines
1.7.1


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
#4 lore raw

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

Quoted 2 lines · Koen Kooi

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

#5 lore raw

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

Op 26 jul. 2011, om 15:26 heeft Richard Purdie het volgende geschreven:

Quoted 8 lines · Koen Kooi
Quoted 2 lines

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 :)

#6 lore raw

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

In reply to Richard Purdie
Quoted 10 lines · Richard Purdie
Quoted 2 lines · Koen Kooi

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...

Quoted 11 lines

Cheers,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#7 lore raw

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

Quoted 14 lines · Edwin
Quoted 10 lines · Richard Purdie
Quoted 2 lines · Koen Kooi

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...

Quoted 7 lines

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.

Quoted 16 lines
Quoted 11 lines

Cheers,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#8 lore raw

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

Op 3 aug. 2011, om 17:00 heeft Khem Raj het volgende geschreven:

Quoted 21 lines · Edwin
Quoted 20 lines
Quoted 10 lines · Richard Purdie
Quoted 2 lines · Koen Kooi

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?

Quoted 3 lines
Quoted 1 line

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.

#9 lore raw

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

In reply to Koen Kooi

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.

Quoted 73 lines · Koen Kooi

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 [email protected] het volgende geschreven:

Quoted 5 lines

From: Zhai Edwin <[email protected]>

---
.../xinput-calibrator/xinput-calibrator_0.7.5.bb | 24

++++++++++++++++++++

Quoted 2 lines
1 files changed, 24 insertions(+), 0 deletions(-)

create mode 100644

meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Quoted 4 lines

new file mode 100644
index 0000000..5a868f7
--- /dev/null
+++

b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Review line 2

Quoted 3 lines
(quoted diff) +2 -0
@@ -0,0 +1,24 @@
+DESCRIPTION = "A generic touchscreen calibration program for X.Org"
+HOMEPAGE = 

"http://www.freedesktop.org/wiki/Software/xinput_calibrator"

meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Quoted 3 lines
meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb new file +3 -0
+
+LICENSE = "MIT/X11"
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466\ <file://COPYING;md5=d9a6926aaad6b8f38bb4f995fe088466%5C>

Review line 6

Quoted 1 line
(quoted diff) +1 -0
+                    

file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc"

meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Quoted 8 lines
meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb new file +8 -0
+
+DEPENDS = "virtual/libx11 libxi"
+
+inherit autotools
+
+RDEPENDS_${PN} = "xinput"
+
+SRC_URI = 

"http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz"

Review line 16

Quoted 2 lines
(quoted diff) +2 -0
+SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa"
+SRC_URI[sha256sum] = 

"baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971"

meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb

Quoted 6 lines
meta/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb new file +6 -0
+
+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

Review line 23

Quoted 1 line
(quoted diff) +1 -0
+        install -m 0755 

scripts/xinput_calibrator_get_hal_calibration.sh ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh

Quoted 9 lines
(quoted diff) +1 -1
+}
--

1.7.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#10 lore raw

PATCH 3/3 evtest: Add 1.25 as new recipe

In reply to [email protected]

From: Zhai Edwin <[email protected]>

---
 meta/recipes-graphics/evtest/evtest_1.25.bb |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-graphics/evtest/evtest_1.25.bb
meta/recipes-graphics/evtest/evtest_1.25.bb new file +16 -0
new file mode 100644
index 0000000..ddd451b
@@ -0,0 +1,16 @@
+DESCRIPTION = "Simple tool for input event debugging."
+HOMEPAGE = "http://people.freedesktop.org/~whot/evtest/"
+SECTION = "console/utils"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+PR = "r0"
+
+DEPENDS = "libxml2"
+
+SRC_URI = "http://cgit.freedesktop.org/~whot/evtest/snapshot/evtest-${PV}.tar.bz2"
+SRC_URI[md5sum] = "770d6af03affe976bdbe3ad1a922c973"
+SRC_URI[sha256sum] = "3d34123c68014dae6f7c19144ef79ea2915fa7a2f89ea35ca375a9cf9e191473"
+
+inherit autotools
Signature · 1 line
1.7.1