Bug 90107 - Handle abs ranges of [0, 0]
Summary: Handle abs ranges of [0, 0]
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 90090
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-19 22:57 UTC by Peter Hutterer
Modified: 2016-01-05 05:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Hutterer 2015-04-19 22:57:35 UTC
Related to Bug 90090 but let's keep that bug the device-specific one.

The kernel allows a min==max abs range provided the values are 0. This essentially means "we don't know", an example for a fix for such a device is here:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6f1891d01956cad406d2af8ed2e9cef6108bfc

libinput should deal with those devices, especially where it doesn't actually use the axis anyway. In the above case of a touchscreen - we don't use pressure so we can just ignore a bad setting.

For x/y and the MT axes we should always require a valid range.
Comment 1 Peter Hutterer 2016-01-05 05:47:15 UTC
This was mostly addressed by this commit for odd axes, for everything else we just deal with it when it comes up.

commit 776bf4938dc4f3228fbfb45a5df4d18639b146de
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Fri Apr 17 15:59:36 2015 +1000

    evdev: accept but disable ABS_MISC and above for min/max == 0


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.