Pressure sensitivity issues with recent xf86-input-wacom

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Pressure sensitivity issues with recent xf86-input-wacom

James Pearson
We've been testing new Intuos Pro2 (PTH-660) tablets on CentOS 6 - as
CentOS/RHEL 6 doesn't have support for these, I've built
input-wacom-0.35.0, libwacom-0.24 and xf86-input-wacom-0.34.2 - which
allows the tablets to be recognised and used by the OS

However, in our testing with these tablets and older Intuos (4, 5, Pro)
tablets, pressure sensitivity gives very 'odd' results with certain 3rd
party applications - painting is only possible with minimal pressure -
using 'normal' pressure, and nothing happens - or other unexpected
results happen

Using the CentOS/RHEL 6 supplied 'xorg-x11-drv-wacom-0.32.0-1.el6'
(xf86-input-wacom-0.32.0) and pressure sensitivity works as expected

The problem appears to be the change:

https://sourceforge.net/p/linuxwacom/xf86-input-wacom/ci/3e56ce4429d9053da3b873f8717b830e3bdc5ea4/

"Increase full-scale pressure range from 0..2047 to 0..65535"

Rebuilding from git before that commit and all is fine - building with
that commit and we have the problem

It looks like these applications are expecting the pressure to be in the
range 0..2047 - which mean they only work with minimal pressure - and
anything over 2048 they can't cope with

Is this the fault of xf86-input-wacom - or the applications used?

As there appears to be no requirement to use the latest xf86-input-wacom
with the PTH-660 tablets, our simple 'fix' is to carry on using the
CentOS/RHEL 6 xorg-x11-drv-wacom RPM

Thanks

James Pearson
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Pressure sensitivity issues with recent xf86-input-wacom

Jason Gerecke
On Wed, May 24, 2017 at 7:48 AM, James Pearson
<[hidden email]> wrote:

> We've been testing new Intuos Pro2 (PTH-660) tablets on CentOS 6 - as
> CentOS/RHEL 6 doesn't have support for these, I've built
> input-wacom-0.35.0, libwacom-0.24 and xf86-input-wacom-0.34.2 - which
> allows the tablets to be recognised and used by the OS
>
> However, in our testing with these tablets and older Intuos (4, 5, Pro)
> tablets, pressure sensitivity gives very 'odd' results with certain 3rd
> party applications - painting is only possible with minimal pressure -
> using 'normal' pressure, and nothing happens - or other unexpected
> results happen
>
> Using the CentOS/RHEL 6 supplied 'xorg-x11-drv-wacom-0.32.0-1.el6'
> (xf86-input-wacom-0.32.0) and pressure sensitivity works as expected
>
> The problem appears to be the change:
>
> https://sourceforge.net/p/linuxwacom/xf86-input-wacom/ci/3e56ce4429d9053da3b873f8717b830e3bdc5ea4/
>
> "Increase full-scale pressure range from 0..2047 to 0..65535"
>
> Rebuilding from git before that commit and all is fine - building with
> that commit and we have the problem
>
> It looks like these applications are expecting the pressure to be in the
> range 0..2047 - which mean they only work with minimal pressure - and
> anything over 2048 they can't cope with
>
> Is this the fault of xf86-input-wacom - or the applications used?
>
> As there appears to be no requirement to use the latest xf86-input-wacom
> with the PTH-660 tablets, our simple 'fix' is to carry on using the
> CentOS/RHEL 6 xorg-x11-drv-wacom RPM
>
> Thanks
>
> James Pearson
Thanks for the report, James. We've had one other strikingly-similar
report, but have had difficulty getting enough feedback from the
reporter to isolate the cause.

Based on the issue being application-dependent I strongly suspect that
your conclusion is correct: they (or specific tools within them) only
expect to be fed with pressure values in the range 0-2047. Our driver
does report what range of values applications should expect, but since
we've used a range of 2047 for so long its not out of the question
that some applications or toolkits may not actually look at that
range. That said, I have been told conflicting information about
whether the issue is only reproducible with a PTH-660 or if other
tablets are also affected.

1) Is it possible for you to check if tablets other than the PTH-660
are affected by this issue? If *only* the PTH-660 is affected, then
something different is going on, perhaps within our driver.

2) I've written a patch which allows you to toggle between 2K / 65K
pressure levels. You can get it by cloning my repository from
`https://github.com/jigpu/xf86-input-wacom.git` and then
building/installing the `debug/pressure` branch. If you save the
attached configuration file into the `/etc/X11/xorg.conf.d` directory
and restart the X server you should get the message "Using 2K pressure
levels" in your Xorg log and see a range of "0.000000 - 2048.000000"
for each pressure axis listed in `xinput list --name-only | grep Wacom
| while read N; do echo $N; xinput list "$N" | grep -A1 Pressure;
done`. It would be good to know if this resolves the issue for you.

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

99-wacom-pressure-compat.conf (172 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pressure sensitivity issues with recent xf86-input-wacom

James Pearson
Jason Gerecke wrote:

>
> Thanks for the report, James. We've had one other strikingly-similar
> report, but have had difficulty getting enough feedback from the
> reporter to isolate the cause.
>
> Based on the issue being application-dependent I strongly suspect that
> your conclusion is correct: they (or specific tools within them) only
> expect to be fed with pressure values in the range 0-2047. Our driver
> does report what range of values applications should expect, but since
> we've used a range of 2047 for so long its not out of the question
> that some applications or toolkits may not actually look at that
> range. That said, I have been told conflicting information about
> whether the issue is only reproducible with a PTH-660 or if other
> tablets are also affected.
>
> 1) Is it possible for you to check if tablets other than the PTH-660
> are affected by this issue? If *only* the PTH-660 is affected, then
> something different is going on, perhaps within our driver.

Sorry, I wasn't clear in my original post, the problem affects _all_
Intuos tablet models we have (well, I've tested it with Intuos 4, Pro
and Pro2)

> 2) I've written a patch which allows you to toggle between 2K / 65K
> pressure levels. You can get it by cloning my repository from
> `https://github.com/jigpu/xf86-input-wacom.git` and then
> building/installing the `debug/pressure` branch. If you save the
> attached configuration file into the `/etc/X11/xorg.conf.d` directory
> and restart the X server you should get the message "Using 2K pressure
> levels" in your Xorg log and see a range of "0.000000 - 2048.000000"
> for each pressure axis listed in `xinput list --name-only | grep Wacom
> | while read N; do echo $N; xinput list "$N" | grep -A1 Pressure;
> done`. It would be good to know if this resolves the issue for you.

Building that driver and Xorg log reports:

[167964.109] (**) Option "Pressure2K" "true"
[167964.109] (**) Wacom Intuos Pro M Pen stylus: Using 2K pressure levels
[167964.236] (**) Option "Pressure2K" "true"
[167964.236] (**) Wacom Intuos Pro M Pen eraser: Using 2K pressure levels
[167964.252] (**) Option "Pressure2K" "true"
[167964.252] (**) Wacom Intuos Pro M Pen cursor: Using 2K pressure levels
[167964.268] (**) Option "Pressure2K" "true"
[167964.268] (**) Wacom Intuos Pro M Pen pad: Using 2K pressure levels

Running 'xinput list ...' gives:

Wacom Intuos Pro M Pen stylus
                   Label: Abs Pressure
                   Range: 0.000000 - 2048.000000
Wacom Intuos Pro M Pen eraser
                   Label: Abs Pressure
                   Range: 0.000000 - 2048.000000
Wacom Intuos Pro M Pen cursor
                   Label: Abs Pressure
                   Range: 0.000000 - 2048.000000
Wacom Intuos Pro M Pen pad

Plus, pressure sensitivity works as expected in the applications we're
using.

As an aside, I've just noticed that RHEL 7.4 beta is shipping with
xorg-x11-drv-wacom-0.34.2-1 (xf86-input-wacom-0.34.2) ...

Thanks

James Pearson
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Pressure sensitivity issues with recent xf86-input-wacom

Jason Gerecke
On Thu, May 25, 2017 at 7:42 AM, James Pearson
<[hidden email]> wrote:

> Jason Gerecke wrote:
>>
>> Thanks for the report, James. We've had one other strikingly-similar
>> report, but have had difficulty getting enough feedback from the
>> reporter to isolate the cause.
>>
>> Based on the issue being application-dependent I strongly suspect that
>> your conclusion is correct: they (or specific tools within them) only
>> expect to be fed with pressure values in the range 0-2047. Our driver
>> does report what range of values applications should expect, but since
>> we've used a range of 2047 for so long its not out of the question
>> that some applications or toolkits may not actually look at that
>> range. That said, I have been told conflicting information about
>> whether the issue is only reproducible with a PTH-660 or if other
>> tablets are also affected.
>>
>> 1) Is it possible for you to check if tablets other than the PTH-660
>> are affected by this issue? If *only* the PTH-660 is affected, then
>> something different is going on, perhaps within our driver.
>
> Sorry, I wasn't clear in my original post, the problem affects _all_
> Intuos tablet models we have (well, I've tested it with Intuos 4, Pro
> and Pro2)
>
>> 2) I've written a patch which allows you to toggle between 2K / 65K
>> pressure levels. You can get it by cloning my repository from
>> `https://github.com/jigpu/xf86-input-wacom.git` and then
>> building/installing the `debug/pressure` branch. If you save the
>> attached configuration file into the `/etc/X11/xorg.conf.d` directory
>> and restart the X server you should get the message "Using 2K pressure
>> levels" in your Xorg log and see a range of "0.000000 - 2048.000000"
>> for each pressure axis listed in `xinput list --name-only | grep Wacom
>> | while read N; do echo $N; xinput list "$N" | grep -A1 Pressure;
>> done`. It would be good to know if this resolves the issue for you.
>
> Building that driver and Xorg log reports:
>
> [167964.109] (**) Option "Pressure2K" "true"
> [167964.109] (**) Wacom Intuos Pro M Pen stylus: Using 2K pressure levels
> [167964.236] (**) Option "Pressure2K" "true"
> [167964.236] (**) Wacom Intuos Pro M Pen eraser: Using 2K pressure levels
> [167964.252] (**) Option "Pressure2K" "true"
> [167964.252] (**) Wacom Intuos Pro M Pen cursor: Using 2K pressure levels
> [167964.268] (**) Option "Pressure2K" "true"
> [167964.268] (**) Wacom Intuos Pro M Pen pad: Using 2K pressure levels
>
> Running 'xinput list ...' gives:
>
> Wacom Intuos Pro M Pen stylus
>                    Label: Abs Pressure
>                    Range: 0.000000 - 2048.000000
> Wacom Intuos Pro M Pen eraser
>                    Label: Abs Pressure
>                    Range: 0.000000 - 2048.000000
> Wacom Intuos Pro M Pen cursor
>                    Label: Abs Pressure
>                    Range: 0.000000 - 2048.000000
> Wacom Intuos Pro M Pen pad
>
> Plus, pressure sensitivity works as expected in the applications we're
> using.
>
> As an aside, I've just noticed that RHEL 7.4 beta is shipping with
> xorg-x11-drv-wacom-0.34.2-1 (xf86-input-wacom-0.34.2) ...
>
> Thanks
>
> James Pearson

Thanks for the quick turnaround on that testing. In the meantime, I've
looked through the codebases of several common application toolkits
(e.g. GTK2/3, Qt3/4/5) and they all appear to take into account our
driver's advertised pressure range. Between this and the information
you've provided, I'm relatively certain that the issue is specific to
those individual applications you've noticed it in.

I would report this as an issue to the application vendors. I'll
submit this patch for inclusion in the next release of our X driver,
but it's really just a workaround...

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss