Re: [Linuxwacom-devel] Lenovo X201 Tablet troubles

2011-01-20 Thread AndrewP
Are you sure it should go there? I couldn't compile with this correction. http://dpaste.org/dF7J/ On Thu, Jan 20, 2011 at 14:21, Chris Bagwell wrote: > So, it sounds like its basically working for you now? > > For tilt reporting pressure, I suspect this is just way induc

[Linuxwacom-devel] [RFC PATCH 2/5] Replace all static methods with new STATIC define.

2011-01-20 Thread Peter Hutterer
This is a hack for the unit tests. They rebuild the driver without any static symbols so we can hook into each function and test it independently if needed. Signed-off-by: Peter Hutterer --- src/wcmCommon.c | 46 src/wcmConfig.c | 30 +

[Linuxwacom-devel] [RFC PATCH v2 2/5] Add static hack for unit-tests.

2011-01-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- Actually, this one is enough, we don't need the STATIC patch. Can be squashed in withthe preevious PATCH 3/5. src/xf86Wacom.h |6 ++ test/Makefile.am |2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/xf86Wacom.h b/src/xf86Wac

[Linuxwacom-devel] [RFC PATCH 3/5] Add a testing framework for the driver.

2011-01-20 Thread Peter Hutterer
This uses glib's testing framework provided glib-devel was available at configure time (same as the X server's testing framework). How this works: The wacom driver is recompiled for the testing framework and linked into the wacom-tests binary (there's a warning about that but ignore that). Since t

[Linuxwacom-devel] [RFC PATCH 5/5] test: add some tests for pressure normalization

2011-01-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/wacom-tests.c | 40 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/test/wacom-tests.c b/test/wacom-tests.c index c4c78fe..7c88fe4 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -41,9 +4

[Linuxwacom-devel] [RFC PATCH 4/5] test: simple test for WcmCommon refcounting.

2011-01-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/wacom-tests.c | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/test/wacom-tests.c b/test/wacom-tests.c index 8209397..c4c78fe 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -4,10 +4,46

[Linuxwacom-devel] [RFC PATCH 1/5] Use absolute patch from $(top_srcdir) for source files.

2011-01-20 Thread Peter Hutterer
This is in preparation for the integration of a testing suite. Signed-off-by: Peter Hutterer --- src/Makefile.am | 19 +-- 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 818aaa4..f3b9a5f 100644 --- a/src/Makefile.am +++ b

[Linuxwacom-devel] [RFC PATCH 0/5] Wacom testing framework

2011-01-20 Thread Peter Hutterer
This is an RFC for something I have needed for a while. As you noticed, the fast pace of the driver also introduces unintended regressions. Many code changes are incredibly hard to test however since they sometimes rely on specific hardware, a specific setup or even timing. Many bugs can be found

Re: [Linuxwacom-devel] Add 2 new Bamboo Pen & Touch models.

2011-01-20 Thread Peter Hutterer
On Thu, Jan 20, 2011 at 02:12:27PM -0600, Favux ... wrote: > We should add the 0xd6 and 0xd7 since they are already in > input-wacom-0.10.10-1. Hopefully the final two models in this series. merged, thanks. Cheers, Peter > From 1558ffeebf3cdf3194d6b65702a93c952fa845c8 Mon Sep 17 00:00:00 2001

Re: [Linuxwacom-devel] serial driver patch for newer Xorg

2011-01-20 Thread Peter Hutterer
On Wed, Jan 19, 2011 at 02:02:44PM +0100, Johannes Amorosa wrote: > I'm using Ubuntu 10.10 (64bit Server) and got more or less successfully > a Digitizer II tablet running via this How to: > http://ubuntuforums.org/showpost.php?p=6546012&postcount=1 > > I used the unofficial patched downgraded dri

Re: [Linuxwacom-devel] Lenovo X201 Tablet troubles

2011-01-20 Thread Nicolas Carranza
I was having a similar problem on my x201: I had to press "too much" for it to detect pressure. I decided to "open" the pen, I didn't care if it was going to break it in the process... I didn't want to use it the way it was. I found this blog post encouraging: http://wishidknownthat.blogspot.co

Re: [Linuxwacom-devel] [PATCH] Check MT_TOOL_FINGER for WCM_2FGT -withdraw

2011-01-20 Thread Chris Bagwell
On Thu, Jan 20, 2011 at 2:28 PM, Ping Cheng wrote: > On Thu, Jan 20, 2011 at 11:31 AM, Chris Bagwell wrote: >> >> Lets try to solve the ABSOLUTE mode problem and then I think it helps >> solves 1FGT as well.  In wcmDeviceTypeKeys(), I was thinking we should >> add something like this: >> >> /* De

Re: [Linuxwacom-devel] [PATCH] Check MT_TOOL_FINGER for WCM_2FGT -withdraw

2011-01-20 Thread Ping Cheng
On Thu, Jan 20, 2011 at 11:31 AM, Chris Bagwell wrote: > > Lets try to solve the ABSOLUTE mode problem and then I think it helps > solves 1FGT as well.  In wcmDeviceTypeKeys(), I was thinking we should > add something like this: > > /* Detect older convention for touchscreen inputs that do not sup

[Linuxwacom-devel] Add 2 new Bamboo Pen & Touch models.

2011-01-20 Thread Favux ...
We should add the 0xd6 and 0xd7 since they are already in input-wacom-0.10.10-1. Hopefully the final two models in this series. Dave From 1558ffeebf3cdf3194d6b65702a93c952fa845c8 Mon Sep 17 00:00:00 2001 From: David Foley Date: Thu, 20 Jan 2011 13:59:20 -0600 Subject: [PATCH] wcmUSB.c: 2-new-ba

Re: [Linuxwacom-devel] [PATCH] Check MT_TOOL_FINGER for WCM_2FGT -withdraw

2011-01-20 Thread Chris Bagwell
On Thu, Jan 20, 2011 at 12:12 PM, Ping Cheng wrote: > On Wed, Jan 19, 2011 at 12:46 PM, Chris Bagwell wrote: >> On Wed, Jan 19, 2011 at 12:41 PM, Ping Cheng wrote: >>> On Tue, Jan 18, 2011 at 6:19 PM, Chris Bagwell wrote: >> Is there driver your interested in?  Its difficult to talk in

Re: [Linuxwacom-devel] [PATCH] Check MT_TOOL_FINGER for WCM_2FGT -withdraw

2011-01-20 Thread Ping Cheng
On Wed, Jan 19, 2011 at 12:46 PM, Chris Bagwell wrote: > On Wed, Jan 19, 2011 at 12:41 PM, Ping Cheng wrote: >> On Tue, Jan 18, 2011 at 6:19 PM, Chris Bagwell wrote: >>> > Is there driver your interested in?  Its difficult to talk in abstract. I'm moving the existing _TAP_ based US

Re: [Linuxwacom-devel] [PATCH 10/11] Remove useless else block.

2011-01-20 Thread Ping Cheng
On Tue, Jan 18, 2011 at 6:09 PM, Chris Bagwell wrote: > > Same here.  This was the same patch that I dropped related to relative fixes. > > I did test removing the else statement and it worked fine on my bamboo > even with small movements. Yes, it should be since > Today factorX/Y will always be

Re: [Linuxwacom-devel] Lenovo X201 Tablet troubles

2011-01-20 Thread Chris Bagwell
So, it sounds like its basically working for you now? For tilt reporting pressure, I suspect this is just way inductive technology works with limitations touchscreens impose. Maybe Ping can confirm. The only additional tweaks I can think of: 1) Maybe pressure values from hardware should be igno

Re: [Linuxwacom-devel] Lenovo X201 Tablet troubles

2011-01-20 Thread AndrewP
Finally I saw maxZ=255 in Xorg.0.log when set maxZ to 255 in git drivers also xinput shows level 2048 when I press much stronger. But still it catches pressure very willingly: I get values about 800-1000 with light press. 0-168 when not even touching it. Don't see anything wrong when holding pen ex