capable of detection distances,
- pressure offset is only detected if the distance between the tool and the
tablet is high enough,
-- pressure offset is only used if it is 20% or less of the pressure range
- available to the tool. A pressure offset higher than 20% indicates either
+- pressure offset is only used if it is 50% or less of the pressure range
+ available to the tool. A pressure offset higher than 50% indicates either
a misdetection or a tool that should be replaced, and
- if a pressure value less than the current pressure offset is seen, the
offset resets to that value.
if (offset <= pressure->minimum)
return;
- if (offset > axis_range_percentage(pressure, 20)) {
+ if (offset > axis_range_percentage(pressure, 50)) {
evdev_log_error(device,
- "Ignoring pressure offset greater than 20%% detected on tool %s (serial %#x). "
+ "Ignoring pressure offset greater than 50%% detected on tool %s (serial %#x). "
"See %s/tablet-support.html\n",
tablet_tool_type_to_string(tool->type),
tool->serial,
struct libinput *li = dev->libinput;
struct axis_replacement axes[] = {
{ ABS_DISTANCE, 70 },
- { ABS_PRESSURE, 30 },
+ { ABS_PRESSURE, 60 },
{ -1, -1 },
};
int warning_triggered = 0;
libinput_log_set_handler(li, pressure_threshold_warning);
litest_tablet_proximity_in(dev, 5, 100, axes);
libinput_dispatch(li);
- assert_pressure(li, LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY, 0.30);
+ assert_pressure(li, LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY, 0.60);
ck_assert_int_eq(warning_triggered, 1);
litest_restore_log_handler(li);