From: Egbert Eich <e...@suse.com> Following the discussion about
[PATCH] Add an option to disable pressure recalibration I looked into implementing a heuristic that attempts to avoid button event loss due to pressure rebasing: If a device is moved onto the tablet very quickly the first pressure event send by the device may be non-zero leading to the assumption the pen is worn out. The new code now tries to detect this situation by recording the maximum pressure on a press-release cycle. If this cycle doesn't trigger a button event 'normally' but later on the pressure bias decreases (as it is constantly adapted to the lowest pressure value seen) and the maximum pressure would have triggered a button press with the new pressure bias, a button event is generated. This takes care of majority of situations where a button event would have been lost. Still there are some notorious cases - especially in the usage pattern I' currently looking at: There tablets are used for air traffic controller workplaces. In this environment pens are not used for drawing but mostly for 'klick' or 'klick-and-drag' style operations. For air traffic safety it is therefore mandated that pressure recalibration has to be disabled. Therefore I have updated my patch for this as well. Egbert Eich (2): Attempt to not lose events to pressure recalibration Add an option to disable pressure recalibration include/wacom-properties.h | 4 +++ man/wacom.man | 10 +++++++ man/xsetwacom.man | 9 ++++++ src/wcmCommon.c | 72 +++++++++++++++++++++++++++++++++++++--------- src/wcmValidateDevice.c | 6 ++++ src/wcmXCommand.c | 23 +++++++++++++++ src/xf86Wacom.h | 2 +- src/xf86WacomDefs.h | 6 ++++ test/wacom-tests.c | 12 ++++---- tools/xsetwacom.c | 11 ++++++- 10 files changed, 132 insertions(+), 23 deletions(-) -- 1.8.4.5 ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel