@mheidt I already had searched the forum but did not find an answer to this problem.
I’m using the metronome for my tests, where the right dial can be operated by touching the left one and vice versa.
I have tried setting the transformation matrix with xinput using the
following commands.
root@zynthian:~# xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ADS7846 Touchscreen id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
root@zynthian:~# xinput list-props 6
Device ‘ADS7846 Touchscreen’:
Device Enabled (115): 1
Coordinate Transformation Matrix (116): -1.000000, 0.000000, 1.000000, 0.000000, -1.000000, 1.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix (245): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix Default (246): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (247): 1, 0
libinput Send Events Mode Enabled (248): 0, 0
libinput Send Events Mode Enabled Default (249): 0, 0
Device Node (250): “/dev/input/event0”
Device Product ID (251): 0, 0
libinput Horizontal Scroll Enabled (252): 0
I tried several variations that appeared logical to me, and they changed the behavior, but none to the desired effect.
root@zynthian:~# xinput set-prop 6 “libinput Calibration Matrix” -1 0 0 0 1 0 0 0 1
root@zynthian:~# xinput set-prop 6 “libinput Calibration Matrix” 1 0 0 0 1 0 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -0.1 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -0.5 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” 0.5 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” 0.2 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -0.2 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -2 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -1 0 1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -1 0 0 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -1 0 -1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” 1 0 -1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” -1 0 -1 0 -1 1 0 0 1
root@zynthian:~# xinput set-prop 6 “Coordinate Transformation Matrix” 1 0 -1 0 -1 1 0 0 1
I also had experimented with dtoverlay settings, this is my current config:
dtoverlay=piscreen2r-notouch,rotate=270
dtoverlay=ads7846,speed=50000,cs=1,penirq=17,penirq_pull=2,swapxy=1,xohms=150,pmax=255
#dtoverlay=ads7846,speed=2000000,cs=1,penirq=17,penirq_pull=2,swapxy=1,xohms=100,pmax=255
Best regards,
Michael