Re: [PATCH v2 libinput] tablet: support tool-specific pressure offsets

2015-12-10 Thread Peter Hutterer
On Thu, Dec 10, 2015 at 06:50:55PM -0800, Ping Cheng wrote: > On Thu, Dec 10, 2015 at 1:31 AM, Peter Hutterer > wrote: > > If a tool wears out, it may have a pre-loaded pressure offset. In that case, > > even when the tool is not physically in contact with the tablet surface it > > will send press

Re: [PATCH v2 libinput] tablet: support tool-specific pressure offsets

2015-12-10 Thread Ping Cheng
On Thu, Dec 10, 2015 at 1:31 AM, Peter Hutterer wrote: > If a tool wears out, it may have a pre-loaded pressure offset. In that case, > even when the tool is not physically in contact with the tablet surface it > will send pressure events. > > Use automatic pressure offset detection, similar to wh

[PATCH v2 libinput] tablet: support tool-specific pressure offsets

2015-12-10 Thread Peter Hutterer
If a tool wears out, it may have a pre-loaded pressure offset. In that case, even when the tool is not physically in contact with the tablet surface it will send pressure events. Use automatic pressure offset detection, similar to what the X.Org wacom driver does. On proximity-in, check the pressu