summaryrefslogtreecommitdiff
path: root/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
diff options
context:
space:
mode:
authorOpenmoko anonymizer key <devel@lists.openmoko.org>2007-09-09 13:48:32 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2007-09-09 13:48:32 +0000
commitf33fc3c83eeec6da90dd0a3e7a578985fa0aa5af (patch)
tree55e9dee3e964448915e72842e9ec99dc732955fe /packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
parent881cc17f9853f2677579f5874e165ac2774db8cc (diff)
parentfb407f654d8492a1a08b769fa8a74634c8ed391e (diff)
merge of '6129c0fae0db59de2238bc4edb8130cfe7cddc48'
and 'b6be8d0c408671e0b3ce69563f1c511819083ede'
Diffstat (limited to 'packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch')
-rw-r--r--packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch b/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
new file mode 100644
index 0000000000..c1bc49f58e
--- /dev/null
+++ b/packages/xorg-xserver/xserver-kdrive/tslib-default-device.patch
@@ -0,0 +1,15 @@
+Index: xorg-server-1.4/hw/kdrive/linux/tslib.c
+===================================================================
+--- xorg-server-1.4.orig/hw/kdrive/linux/tslib.c 2007-09-08 19:58:08.000000000 +0200
++++ xorg-server-1.4/hw/kdrive/linux/tslib.c 2007-09-08 19:58:09.000000000 +0200
+@@ -121,6 +121,10 @@
+
+ private->raw_event_hook = NULL;
+ private->raw_event_closure = NULL;
++ if (!pi->path) {
++ pi->path = "/dev/input/touchscreen0";
++ ErrorF("[tslib/TslibEnable] no device path given, trying %s\n", pi->path);
++ }
+ private->tsDev = ts_open(pi->path, 0);
+ private->fd = ts_fd(private->tsDev);
+ if (!private->tsDev || ts_config(private->tsDev) || private->fd < 0) {