Code: Select all
xinput list
xinput list-props 'FT5406 memory based driver'
Code: Select all
display_rotate=1
Code: Select all
xinput --set-prop 'FT5406 memory based driver' 'Evdev Axis Inversion' 0 1
xinput --set-prop 'FT5406 memory based driver' 'Evdev Axes Swap' 1
I've tested with latest apt-get kernel (Linux domnfs 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux) which worked.DidaJI wrote:On the kernel version 4.4.38 is everything okay but on the version 4.4.43 it writes this one error.
Code: Select all
xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
That means that you haven't typed the command correctly. There is a missing quote mark or something. The command line is still waiting for you to type in the matching end quote.madbutter wrote:Didn't seem to work for me. I tried it in a terminal and it just sits there with a > until I Ctrl-C out
Code: Select all
[email protected] ~ $ echo 'hello
> what?
> Oh, I missed the endquote
> here it is'
hello
what?
Oh, I missed the endquote
here it is
[email protected] ~ $
That command is a right rotate. If you want a left rotate then try:DidaJI wrote:This one command:
"xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1" switch x-axis and y-axis for me.
Axis already so move right, but I need still switch direction left<>right and up<>down.
Code: Select all
xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
Code: Select all
xinput list
Code: Select all
DISPLAY=:0.0 xinput list
Code: Select all
DISPLAY=:0.0 xinput --set-prop 'ADS7846 Touchscreen' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
or
DISPLAY=:0.0 xinput --set-prop 'ADS7846 Touchscreen' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
@madbutter reported adding to /etc/xdg/lxsession/LXDE-pi/autostartgulliverrr wrote:The above change is gone though after restart. Is there a way to make it permanent or do I need to run it as a script on boot?
You can't achieve a translation with a 2x2 matrix. You may want (0,0) to end up at (1280,720) when display is rotated 180 degrees.dasmanul wrote:Can somebody explain to me why the transformation matrix for transforming 2D coordinates is 3x3?
Code: Select all
⎡ -1 0 1 ⎤
⎜ 0 -1 1 ⎥
⎣ 0 0 1 ⎦
Code: Select all
⎡ -1 0 1 ⎤⎡x⎤
⎜ 0 -1 1 ⎥⎜y⎥
⎣ 0 0 1 ⎦⎣1⎦