Bug 79071 - Export touchscreen size to X clients
Summary: Export touchscreen size to X clients
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-22 14:52 UTC by Bastien Nocera
Modified: 2014-05-23 07:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Bastien Nocera 2014-05-22 14:52:16 UTC
Touchscreens usually have in their report descriptors information about the physical size of the touchscreen they're attached to. For example, it would be possible to see that a touchscreen was 23" big, so gnome-settings-daemon could automatically match it with the 23" display that's configured.

That information is currently not exported to X clients, so gnome-settings-daemon cannot consume it.
Comment 1 Peter Hutterer 2014-05-22 22:06:17 UTC
the XI valuator class structs have the range and the resolution in units/m, that should give you the physical size (where the device doesn't lie about it). Is this good enough?

http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XI2proto.txt#n985
Comment 2 Bastien Nocera 2014-05-23 07:21:52 UTC
Benjamin Tissoires pointed this out, and yes, it's good enough for us to use even if the way that it's exported is slightly more convoluted than I would have expected.


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.