27. Dezember, 2017
Raspberry Pi: Rotate Official Touch Display by 90°
I wanted to rotate my Rasperry Pi Touch Display by 90 degrees. But I noticed this isn’t possible via boot parameters in the config.txt file.
It is possible to rotate the display in config.txt, but the touch input will not work correctly. There is also a change in the newest raspbian xinput driver releases.
xinput set-prop 'FT5406 memory based driver' 'Evdev Axes Swap' 1
does NOT work anymore.
So here is the solution:
1. Rotate Display in /boot/config.txt
Add line:
display_rotate=3
2. Install xinput
sudo apt-get install xinput
3. Find your Driver
xinput --list
Or over SSH:
DISPLAY=:0 xinput --list
4. Rotate touch input via xinput
You need to matrix transform the input coordinates
xinput set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1