vendor/samsung/q1u
Revision | 76967542402f0d478d2e72ef02c817e4a1e75b36 (tree) |
---|---|
Time | 2009-12-05 14:23:48 |
Author | Bryan Hundven <bryanhundven@gmai...> |
Commiter | Yi Sun |
Touchscreen pointercal work
With InputDevice.java looking for pointercal in /data/system/tslib,
and ts_calibrate and friends looking for pointercal in that same
location, we want to install our product specific pointercal to
/system/etc/pointercal and have ins_pointercal.sh (ran from
init.q1u.rc) to copy it to /data/system/tslib.
Work will be done later to the Home apk or init to check for a
touchscreen device, and if it finds one, it should check for
/system/etc/pointercal. If /system/etc/pointercal or /data/system/tslib
do not exist, then it should automatically run ts_calibrate.
@@ -38,6 +38,7 @@ $(INSTALLED_RAMDISK_TARGET): $(file) | ||
38 | 38 | $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),pointercal)) |
39 | 39 | $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ts.conf)) |
40 | 40 | $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ts.env)) |
41 | +$(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ins_pointercal.sh)) | |
41 | 42 | |
42 | 43 | ALL_FIRMWARES := $(shell cd $(LOCAL_PATH) && find firmware -type f) |
43 | 44 | $(eval $(foreach f,$(ALL_FIRMWARES),$(call add-prebuilt-target,$(TARGET_OUT_SHARED_LIBRARIES),$(f)))) |
@@ -13,3 +13,6 @@ on boot | ||
13 | 13 | setprop alsa.mixer.playback.speaker Master |
14 | 14 | export LD_PRELOAD /lib/libts.so:/lib/ts/pthres.so |
15 | 15 | |
16 | +service tslib /system/bin/sh /system/etc/ins_pointercal.sh | |
17 | + oneshot | |
18 | + |
@@ -0,0 +1,7 @@ | ||
1 | +#!/bin/sh | |
2 | +if [ -f /system/etc/pointercal ]; then | |
3 | + mkdir /data/system/tslib | |
4 | + chown 1000.1000 /data/system/tslib | |
5 | + cp /system/etc/pointercal /data/system/tslib/pointercal | |
6 | + chown 1000.1000 /data/system/tslib/pointercal | |
7 | +fi |
@@ -1,6 +1,6 @@ | ||
1 | 1 | TSLIB_CONSOLEDEVICE=none |
2 | 2 | TSLIB_FBDEVICE=/dev/fb0 |
3 | 3 | TSLIB_TSDEVICE=/dev/input/event5 |
4 | -TSLIB_CALIBFILE=/system/etc/pointercal | |
4 | +TSLIB_CALIBFILE=/data/system/tslib/pointercal | |
5 | 5 | TSLIB_CONFFILE=/system/etc/ts.conf |
6 | 6 | TSLIB_PLUGINDIR=/lib/ts |