Subject: Touchscreen configuration/calibration with mir-kiosk snap

From: Darren Landoll <[email-masked]>
Date: Thu, 9 Feb 2017 13:38:03 -0500

I am testing the mir-kiosk snap on an amd64 kiosk/touchscreen PC. It has
Elo Touch based hardware and at least one of the axes appears to be swapped.

Is it currently possible to either statically or dynamically calibrate
touchscreen input for the mir-kiosk snap?

---

From: Daniel van Vugt <[email-masked]>
Date: Fri, 10 Feb 2017 09:26:15 +0800

Hi Darren,

Touchscreen settings are on the way, but not here yet:

https://code.launchpad.net/~andreas-pokorny/mir/add-touchscreen-settings/+merge/316314

And I can think of two open bugs related to incorrect input axes, that 
might relate to the problems you experience:

   https://bugs.launchpad.net/bugs/1349660
   https://bugs.launchpad.net/bugs/1610052

- Daniel

---

From: Andreas Pokorny <[email-masked]>
Date: Mon, 27 Feb 2017 17:00:12 +0100

Hi,
We use libinput to handle touchscreen input. Thus you can use udev
properties to affect how the values are reported:

https://wayland.freedesktop.org/libinput/doc/latest/udev_config.html

If you replace vendor and model id with the right values and the height of
the screen  (here assuming 1080) and if you add this to your udev rules:

ENV{ID_VENDOR_ID}=="04e7",ENV{ID_MODEL_ID}=="0020",ENV{LIBINPUT_CALIBRATION_MATRIX}="1
0 0  0 -1 1080"

It should swap the y coordinate axis.

regards
Andreas

On Thu, Feb 9, 2017 at 7:38 PM, Darren Landoll <[email-masked]>
wrote:

> --
> Mir-devel mailing list
> [email-masked]
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/mir-devel
>
>

---

From: Darren Landoll <[email-masked]>
Date: Thu, 28 Sep 2017 14:38:00 -0400

I finally had a chance to go back and try the libinput configuration via
udev rules. I've tried some different values and none seem to make a
difference for the calibration matrix. Is there something special I need to
do on the latest Ubuntu Core with the mir-kiosk snap (edge channel) to
apply the libinput configuration?

On Mon, Feb 27, 2017 at 11:00 AM, Andreas Pokorny <
[email-masked]> wrote:

> ENV{ID_VENDOR_ID}=="04e7",ENV{ID_MODEL_ID}=="0020",ENV{LIBINPUT_CALIBRATION_MATRIX}="1 0 0  0 -1 1080"
>
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/mir-devel
>>
>>
>