weston: add touchscreen_calibrator option

Graphics / Wayland / Weston - Louis-Francis Ratté-Boulianne [collabora.com] - 30 May 2018 11:46 EDT

Add an option to enable the touchscreen calibrator interface. This is a global on/off toggle, in lack of more fine-grained access restrictions.

As Weston should not hardcode system specifics, the actual permanent saving of a new calibration is left for a user supplied script or a program. Usually this script would write an appropriate udev rule to set LIBINPUT_CALIBRATION_MATRIX for the touch device.

Co-developed by Louis-Francis and Pekka.

v2:- use syspath instead of devpath

5a1b0cf0 weston: add touchscreen_calibrator option
compositor/main.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
man/weston.ini.man | 39 +++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+)

Upstream: cgit.freedesktop.org


  • Share