Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-14 Thread Ping Cheng
On Sunday, December 13, 2015, 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

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-08 Thread Peter Hutterer
On Tue, Dec 08, 2015 at 05:37:52PM -0800, Jason Gerecke wrote: > On Sun, Dec 6, 2015 at 8:22 PM, Peter Hutterer > wrote: > > On Thu, Dec 03, 2015 at 07:57:30PM -0800, Jason Gerecke wrote: > >> On Wed, Dec 2, 2015 at 5:03 PM, Peter Hutterer >

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-08 Thread Jason Gerecke
On Sun, Dec 6, 2015 at 8:22 PM, Peter Hutterer wrote: > On Thu, Dec 03, 2015 at 07:57:30PM -0800, Jason Gerecke wrote: >> On Wed, Dec 2, 2015 at 5:03 PM, Peter Hutterer >> wrote: >> > On Wed, Dec 02, 2015 at 04:21:56PM -0800, Jason Gerecke

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-07 Thread Bill Spitzak
On Sun, Dec 6, 2015 at 8:22 PM, Peter Hutterer wrote: > > if you touch the surface so light that it flickers between 0 and nonzero > pressure, then the up/down storm is representative of the user's action. > That is not the case when you have a magic threshold, because

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-06 Thread Peter Hutterer
On Thu, Dec 03, 2015 at 07:57:30PM -0800, Jason Gerecke wrote: > On Wed, Dec 2, 2015 at 5:03 PM, Peter Hutterer > wrote: > > On Wed, Dec 02, 2015 at 04:21:56PM -0800, Jason Gerecke wrote: > >> On Tue, Dec 1, 2015 at 5:46 PM, Peter Hutterer >

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-03 Thread Jason Gerecke
On Wed, Dec 2, 2015 at 5:03 PM, Peter Hutterer wrote: > On Wed, Dec 02, 2015 at 04:21:56PM -0800, Jason Gerecke wrote: >> On Tue, Dec 1, 2015 at 5:46 PM, Peter Hutterer >> wrote: >> > If a tool wears out, it may have a pre-loaded pressure

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-02 Thread Bill Spitzak
On Tue, Dec 1, 2015 at 5:46 PM, Peter Hutterer wrote: > > + switch (tool->type) { > + case LIBINPUT_TABLET_TOOL_TYPE_PEN: > + strtype = "PEN"; > + break; > + case LIBINPUT_TABLET_TOOL_TYPE_BRUSH: > + strtype =

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-02 Thread Jason Gerecke
On Tue, Dec 1, 2015 at 5:46 PM, 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. > > The X.Org wacom driver has

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-02 Thread Peter Hutterer
On Wed, Dec 02, 2015 at 04:21:56PM -0800, Jason Gerecke wrote: > On Tue, Dec 1, 2015 at 5:46 PM, 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

[PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-01 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. The X.Org wacom driver has automatic pressure preload detection, but it is unreliable. A quick tap can trigger the

Re: [PATCH libinput 6/8] tablet: support tool-specific pressure offsets

2015-12-01 Thread Peter Hutterer
On Tue, Dec 01, 2015 at 06:48:41PM -0800, Bill Spitzak wrote: > On Tue, Dec 1, 2015 at 5:46 PM, Peter Hutterer > wrote: > > > > > + switch (tool->type) { > > + case LIBINPUT_TABLET_TOOL_TYPE_PEN: > > + strtype = "PEN"; > > +