Translating Evdev Axis Calibration to Matrix or something else?
I've upgraded from Debian 8 to Debian 9, and they've gotten rid of evdev. I had been using evdev to calibrate the resistive touch screen on one of my weirder computers (actually a Fujitsu ScanSnap N1800 kiosk scanner).
Here's what I used to use to calibrate it: Code:
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "Evdev Axis Calibration" 850 16083 1000 15853 Code:
xinput list-props "Fujitsu Takamisawa USB Touch Panel" Am I right in thinking I'm going to have to somehow translate my evdev corner calibration coordinates into a transformation matrix? Any idea how to do this other than trial and error? Thanks! |
I ended up just biting the bullet and redoing the calibration from scratch using "libinput Calibration Matrix".
I didn't want to get into the complexities of rotation and skewing, so I just did scaling and translation. This meant modifying four of the 9 matrix entries: Code:
A 0 C Code:
1 0 0 Code:
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "libinput Calibration Matrix" 1 0 0 0 1 0 0 0 1 The factors E and F determine y-axis scaling and translation. I just used trial and error to dial in the calibration until I was satisfied. The resulting command I ended up with was this: Code:
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "libinput Calibration Matrix" 1.07 0 -.05 0 1.09 -.07 0 0 1 |
All times are GMT -5. The time now is 02:34 AM. |