From: Jan Kandziora <jjj@gmx.de>
To: linux-input@vger.kernel.org
Subject: Aiptek T-6000U staying in relative mode.
Date: Fri, 23 May 2014 03:48:17 +0200 [thread overview]
Message-ID: <537EA8E1.6020109@gmx.de> (raw)
Hi all,
recently I tried wanted to use my tablet again with linux-3.11.6. After
a while I found out the kernel driver doesn't succeed to bring the
tablet to absolute mode. After fiddling around with the kernel driver,
I found it is related to the order of commands sent to the tablet while
initialization. My tablet insists the absolute mode command the last
one sent. So I patched my aiptek.c as follows:
-----------------------------------------------------------------------------------------
--- drivers/input/tablet/aiptek.c.orig 2014-05-23 03:35:05.402422214 +0200
+++ drivers/input/tablet/aiptek.c 2014-05-23 03:31:27.351508397 +0200
@@ -1003,6 +1003,18 @@
return ret;
input_set_abs_params(aiptek->inputdev, ABS_PRESSURE, 0, ret - 1, 0, 0);
+ /* Enable the macro keys */
+ if ((ret = aiptek_command(aiptek, 0x11, 0x02)) < 0)
+ return ret;
+#if 0
+ /* Execute FilterOn */
+ if ((ret = aiptek_command(aiptek, 0x17, 0x00)) < 0)
+ return ret;
+#endif
+ /* Execute AutoGainOn */
+ if ((ret = aiptek_command(aiptek, 0x12, 0xff)) < 0)
+ return ret;
+
/* Depending on whether we are in absolute or relative mode, we will
* do a switchToTablet(absolute) or switchToMouse(relative) command.
*/
@@ -1019,19 +1031,6 @@
}
}
- /* Enable the macro keys */
- if ((ret = aiptek_command(aiptek, 0x11, 0x02)) < 0)
- return ret;
-#if 0
- /* Execute FilterOn */
- if ((ret = aiptek_command(aiptek, 0x17, 0x00)) < 0)
- return ret;
-#endif
-
- /* Execute AutoGainOn */
- if ((ret = aiptek_command(aiptek, 0x12, 0xff)) < 0)
- return ret;
-
/* Reset the eventCount, so we track events from last (re)programming
*/
aiptek->diagnostic = AIPTEK_DIAGNOSTIC_NA;
-----------------------------------------------------------------------------------------
That way it works in both relative and absolute mode and the macro keys are enabled, too.
There are some problems remaining with aiptek.c and my tablet. Anyone else here who has
aiptek hardware to test if my patches break anything with their tablets?
Kind regards
Jan
reply other threads:[~2014-05-23 1:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537EA8E1.6020109@gmx.de \
--to=jjj@gmx.de \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.