summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-08-29 17:19:15 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-29 17:19:15 +0200
commit73ad231ab65dcf85fc9f134a017a501a57a3c52c (patch)
tree97939718d6cf27348d776c79d670f81e71266181
parentf5e849eee199e22c2765e8d17388b80f825e7d6b (diff)
Improve bamboo touch resolution
Increase the virtual resolution of the bamboo touch by a factor of 16, and trim the fuzz parameters for a better small-motion experience. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
-rw-r--r--Makefile2
-rw-r--r--debian/changelog6
-rw-r--r--debian/postinst2
-rw-r--r--debian/postrm2
-rw-r--r--debian/prerm2
-rwxr-xr-xdebian/rules2
-rw-r--r--usr/src/dkms_source_tree/dkms.conf2
-rw-r--r--usr/src/dkms_source_tree/wacom_wac.c16
-rw-r--r--usr/src/dkms_source_tree/wacom_wac.h1
9 files changed, 22 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index bb74e3c..b8bf517 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
1NAME = wacom 1NAME = wacom
2VERSION = 1.0.0 2VERSION = 1.0.1
3SRC = usr/src 3SRC = usr/src
4 4
5TARBALL = $(NAME)-$(VERSION).dkms.tar.gz 5TARBALL = $(NAME)-$(VERSION).dkms.tar.gz
diff --git a/debian/changelog b/debian/changelog
index 5a88f4b..7815159 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1wacom-dkms (1.0.1) maverick; urgency=low
2
3 * Improve bamboo touch resolution
4
5 -- Henrik Rydberg <rydberg@bitmath.org> Sun, 29 Aug 2010 17:12:14 +0200
6
1wacom-dkms (1.0.0-0ubuntu1) maverick; urgency=low 7wacom-dkms (1.0.0-0ubuntu1) maverick; urgency=low
2 8
3 * Add support for Bamboo Touch 9 * Add support for Bamboo Touch
diff --git a/debian/postinst b/debian/postinst
index 15a53b5..1812293 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -3,7 +3,7 @@
3set -e 3set -e
4 4
5NAME=wacom 5NAME=wacom
6VERSION=1.0.0 6VERSION=1.0.1
7 7
8case "$1" in 8case "$1" in
9 configure) 9 configure)
diff --git a/debian/postrm b/debian/postrm
index bc7a47b..e809ff1 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3NAME=wacom 3NAME=wacom
4VERSION=1.0.0 4VERSION=1.0.1
5 5
6set -e 6set -e
7 7
diff --git a/debian/prerm b/debian/prerm
index c9b32cc..bc3e47d 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3NAME=wacom 3NAME=wacom
4VERSION=1.0.0 4VERSION=1.0.1
5 5
6set -e 6set -e
7 7
diff --git a/debian/rules b/debian/rules
index 4a052bf..6ee0e64 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
5#export DH_VERBOSE=1 5#export DH_VERBOSE=1
6 6
7NAME=wacom 7NAME=wacom
8VERSION=1.0.0 8VERSION=1.0.1
9 9
10configure: configure-stamp 10configure: configure-stamp
11configure-stamp: 11configure-stamp:
diff --git a/usr/src/dkms_source_tree/dkms.conf b/usr/src/dkms_source_tree/dkms.conf
index 219cfe0..9d2da13 100644
--- a/usr/src/dkms_source_tree/dkms.conf
+++ b/usr/src/dkms_source_tree/dkms.conf
@@ -1,5 +1,5 @@
1NAME=wacom 1NAME=wacom
2VERSION=1.0.0 2VERSION=1.0.1
3PACKAGE_NAME="$NAME" 3PACKAGE_NAME="$NAME"
4PACKAGE_VERSION="$VERSION" 4PACKAGE_VERSION="$VERSION"
5MAKE[0]="make -C ${kernel_source_dir} 5MAKE[0]="make -C ${kernel_source_dir}
diff --git a/usr/src/dkms_source_tree/wacom_wac.c b/usr/src/dkms_source_tree/wacom_wac.c
index 463d084..03a3fdc 100644
--- a/usr/src/dkms_source_tree/wacom_wac.c
+++ b/usr/src/dkms_source_tree/wacom_wac.c
@@ -869,8 +869,8 @@ static int wacom_bbt_irq(struct wacom_wac *wacom, size_t len)
869 int p = data[9 * i + 2]; 869 int p = data[9 * i + 2];
870 input_mt_slot(input, i); 870 input_mt_slot(input, i);
871 if (p) { 871 if (p) {
872 int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff; 872 int x = get_unaligned_be16(&data[9 * i + 3]) << 4;
873 int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff; 873 int y = get_unaligned_be16(&data[9 * i + 5]) << 4;
874 input_report_abs(input, ABS_MT_PRESSURE, p); 874 input_report_abs(input, ABS_MT_PRESSURE, p);
875 input_report_abs(input, ABS_MT_POSITION_X, x); 875 input_report_abs(input, ABS_MT_POSITION_X, x);
876 input_report_abs(input, ABS_MT_POSITION_Y, y); 876 input_report_abs(input, ABS_MT_POSITION_Y, y);
@@ -1136,9 +1136,13 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
1136 __set_bit(BTN_TOOL_FINGER, input_dev->keybit); 1136 __set_bit(BTN_TOOL_FINGER, input_dev->keybit);
1137 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit); 1137 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit);
1138 1138
1139 input_set_abs_params(input_dev, ABS_X, 0, features->x_max, 32, 0);
1140 input_set_abs_params(input_dev, ABS_Y, 0, features->y_max, 32, 0);
1141 input_set_abs_params(input_dev, ABS_PRESSURE, 0, features->pressure_max, 16, 0);
1142
1139 input_mt_create_slots(input_dev, 2); 1143 input_mt_create_slots(input_dev, 2);
1140 input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, features->x_max, 4, 0); 1144 input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, features->x_max, 32, 0);
1141 input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, features->y_max, 4, 0); 1145 input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, features->y_max, 32, 0);
1142 input_set_abs_params(input_dev, ABS_MT_PRESSURE, 0, features->pressure_max, 16, 0); 1146 input_set_abs_params(input_dev, ABS_MT_PRESSURE, 0, features->pressure_max, 16, 0);
1143 input_set_abs_params(input_dev, ABS_MT_TRACKING_ID, 0, MAX_TRACKING_ID, 0, 0); 1147 input_set_abs_params(input_dev, ABS_MT_TRACKING_ID, 0, MAX_TRACKING_ID, 0, 0);
1144 break; 1148 break;
@@ -1280,9 +1284,9 @@ static const struct wacom_features wacom_features_0xE3 =
1280static const struct wacom_features wacom_features_0x47 = 1284static const struct wacom_features wacom_features_0x47 =
1281 { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 31, INTUOS }; 1285 { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 31, INTUOS };
1282static const struct wacom_features wacom_features_0xD0_0 = 1286static const struct wacom_features wacom_features_0xD0_0 =
1283 { "Wacom Bamboo Touch", WACOM_PKGLEN_BBTOUCH, 480, 320, 255, 0, BAMBOO_TOUCH }; 1287 { "Wacom Bamboo Touch", WACOM_PKGLEN_BBTOUCH, 7680, 5120, 255, 0, BAMBOO_TOUCH };
1284static const struct wacom_features wacom_features_0xD0_2 = 1288static const struct wacom_features wacom_features_0xD0_2 =
1285 { "Wacom Bamboo Boot", WACOM_PKGLEN_BBFUN, 480, 320, 255, 0, BAMBOO_BOOT }; 1289 { "Wacom Bamboo Boot", WACOM_PKGLEN_BBFUN, 14760, 9225, 511, 63, WACOM_MO };
1286 1290
1287#define USB_DEVICE_WACOM(prod) \ 1291#define USB_DEVICE_WACOM(prod) \
1288 USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \ 1292 USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \
diff --git a/usr/src/dkms_source_tree/wacom_wac.h b/usr/src/dkms_source_tree/wacom_wac.h
index 770909c..0c5a35d 100644
--- a/usr/src/dkms_source_tree/wacom_wac.h
+++ b/usr/src/dkms_source_tree/wacom_wac.h
@@ -62,7 +62,6 @@ enum {
62 TABLETPC, 62 TABLETPC,
63 TABLETPC2FG, 63 TABLETPC2FG,
64 BAMBOO_TOUCH, 64 BAMBOO_TOUCH,
65 BAMBOO_BOOT,
66 MAX_TYPE 65 MAX_TYPE
67}; 66};
68 67