Skip to content

Automatically generate a calibration matrix for libinput

Michael Hamann requested to merge michitux:libinput_calibration into master

This takes the calibration matrix for Wayland and divides the pixel offsets by the device width/height. This is necessary as libinput for X.org seems to use coordinates between 0 and 1.

Please discuss if this is the right approach, if there should be more precautions/checks and what kind of tests would be necessary. I have only tested this for my own device (Samsung Galaxy Note 8.0). The configuration for the Nokia N900 is another example for a device with a non-trivial calibration matrix that is also adjusted for libinput for X.org.

Merge request reports