From ff636a015c26dd71d8a4ad5827eff6f6dabbb439 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 9 Feb 2007 18:15:22 +0000 Subject: xserver-common 1.13: Add patch to skip touchscreen calibration if there's no TS. * Fixes GPE startup on TS-less machines like efika, qemu-arm, x86, lots of others. --- packages/xserver-common/files/calibrate-only-if-ts.patch | 9 +++++++++ packages/xserver-common/xserver-common_1.13.bb | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 packages/xserver-common/files/calibrate-only-if-ts.patch (limited to 'packages/xserver-common') diff --git a/packages/xserver-common/files/calibrate-only-if-ts.patch b/packages/xserver-common/files/calibrate-only-if-ts.patch new file mode 100644 index 0000000000..7be808ba04 --- /dev/null +++ b/packages/xserver-common/files/calibrate-only-if-ts.patch @@ -0,0 +1,9 @@ +--- a/run-calibrate.sh.org 2006-10-12 10:19:42.000000000 +0000 ++++ b/run-calibrate.sh 2007-02-09 17:54:55.000000000 +0000 +@@ -1,3 +1,5 @@ + #! /bin/sh + +-exec xtscal ++if [ -e /dev/input/touchscreen0 ]; then ++ exec xtscal ++fi diff --git a/packages/xserver-common/xserver-common_1.13.bb b/packages/xserver-common/xserver-common_1.13.bb index b051b5aea2..ebe54ecd19 100644 --- a/packages/xserver-common/xserver-common_1.13.bb +++ b/packages/xserver-common/xserver-common_1.13.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts and support files" LICENSE = "GPL" SECTION = "x11" RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo xtscal" -PR = "r1" +PR = "r2" PACKAGE_ARCH = "all" @@ -10,7 +10,8 @@ PACKAGE_ARCH = "all" inherit gpe SRC_URI_append = " file://setDPI.sh \ - file://xserver-imageon.patch;patch=1" + file://xserver-imageon.patch;patch=1 \ + file://calibrate-only-if-ts.patch;patch=1" do_install_append() { install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi" -- cgit v1.2.3