diff options
author | Frederic Bompart <frederic@unknown.openembedded.org> | 2005-10-03 16:16:28 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-10-03 16:16:28 +0000 |
commit | dcd5991ec103e8c07fe0bb68f7e9c4de0568ae05 (patch) | |
tree | 2a273a46b8f223fdb1b8ddcd6cabe42877b864bd /packages/tslib/tslib | |
parent | b55d713e016c253d5b471eeefd239c5c4d9a1090 (diff) | |
download | openembedded-dcd5991ec103e8c07fe0bb68f7e9c4de0568ae05.tar.gz |
let tslib on simpad work with both kernel 2.4 and 2.6
Diffstat (limited to 'packages/tslib/tslib')
-rw-r--r-- | packages/tslib/tslib/simpad/tslib.sh | 14 | ||||
-rw-r--r-- | packages/tslib/tslib/ts.conf-simpad (renamed from packages/tslib/tslib/simpad/ts.conf) | 0 | ||||
-rw-r--r-- | packages/tslib/tslib/ts.conf-simpad-2.4 | 5 |
3 files changed, 17 insertions, 2 deletions
diff --git a/packages/tslib/tslib/simpad/tslib.sh b/packages/tslib/tslib/simpad/tslib.sh index e87a2095c4..8bb94a037f 100644 --- a/packages/tslib/tslib/simpad/tslib.sh +++ b/packages/tslib/tslib/simpad/tslib.sh @@ -1,5 +1,15 @@ #!/bin/sh -TSLIB_TSDEVICE=/dev/input/event0 +case `uname -r` in +2.4*) + TSLIB_TSDEVICE=/dev/touchscreen/ucb1x00 + TSLIB_CONFFILE=/usr/share/tslib/ts.conf-simpad-2.4 + ;; +*) + TSLIB_TSDEVICE=/dev/input/event0 + TSLIB_CONFFILE=/usr/share/tslib/ts.conf-simpad + ;; +esac + +export TSLIB_TSDEVICE TSLIB_CONFFILE -export TSLIB_TSDEVICE diff --git a/packages/tslib/tslib/simpad/ts.conf b/packages/tslib/tslib/ts.conf-simpad index 09309719f2..09309719f2 100644 --- a/packages/tslib/tslib/simpad/ts.conf +++ b/packages/tslib/tslib/ts.conf-simpad diff --git a/packages/tslib/tslib/ts.conf-simpad-2.4 b/packages/tslib/tslib/ts.conf-simpad-2.4 new file mode 100644 index 0000000000..035e794cb4 --- /dev/null +++ b/packages/tslib/tslib/ts.conf-simpad-2.4 @@ -0,0 +1,5 @@ +module_raw ucb1x00 +module pthres pmin=1 +module variance delta=10 +module dejitter delta=150 +module linear |