summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-30 03:12:50 -0700
committerJeff Brown <jeffbrown@google.com>2010-08-30 03:12:50 -0700
commit4dad83def98fd072aec0d797d12873bd12795b67 (patch)
tree54f6b006177b858468e62294e0d88aa2483e40a1
parente23f4f1c34468462840c75504468154b29164fd2 (diff)
downloadpassion-common-4dad83def98fd072aec0d797d12873bd12795b67.tar.gz
Add calibration file for passion touchscreen.
Change-Id: I6be3a259a88c35baef827ef59c6c98700b404e26
-rw-r--r--passion.mk1
-rw-r--r--synaptics-rmi-touchscreen.idc37
2 files changed, 38 insertions, 0 deletions
diff --git a/passion.mk b/passion.mk
index 121ddb5..094f379 100644
--- a/passion.mk
+++ b/passion.mk
@@ -47,6 +47,7 @@ PRODUCT_LOCALES := hdpi
PRODUCT_COPY_FILES += \
device/htc/passion-common/mahimahi-keypad.kl:system/usr/keylayout/mahimahi-keypad.kl \
device/htc/passion-common/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
+ device/htc/passion-common/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc \
device/htc/passion-common/vold.fstab:system/etc/vold.fstab
diff --git a/synaptics-rmi-touchscreen.idc b/synaptics-rmi-touchscreen.idc
new file mode 100644
index 0000000..b82c544
--- /dev/null
+++ b/synaptics-rmi-touchscreen.idc
@@ -0,0 +1,37 @@
+# Input Device Calibration File
+
+# Touch Area
+touch.touchArea.calibration = pressure
+
+# Tool Area
+# Raw width field measures approx. 1 unit per millimeter
+# of tool area on the surface where a raw width of 1 corresponds
+# to about 17mm of physical size. Given that the display resolution
+# is 10px per mm we obtain a scale factor of 10 pixels / unit and
+# a bias of 160 pixels. In addition, the raw width represents a
+# sum of all contact area so we note this fact in the calibration.
+touch.toolArea.calibration = linear
+touch.toolArea.linearScale = 10
+touch.toolArea.linearBias = 160
+touch.toolArea.isSummed = 1
+
+# Pressure
+# Driver reports signal strength as pressure.
+# A normal thumb touch while touching the back of the device
+# typically registers about 100 signal strength units although
+# this value is highly variable and is sensitive to contact area,
+# manner of contact and environmental conditions. We set the
+# scale so that a normal touch with good signal strength will be
+# reported as having a pressure somewhere in the vicinity of 1.0,
+# a featherlight touch will be below 1.0 and a heavy or large touch
+# will be above 1.0. We don't expect these values to be accurate.
+touch.pressure.calibration = amplitude
+touch.pressure.source = default
+touch.pressure.scale = 0.01
+
+# Size
+touch.size.calibration = normalized
+
+# Orientation
+touch.orientation.calibration = none
+