I've been trying lots of different things to get an LCD rotation to work 90 or 270 degrees. I came across this forum post: viewtopic.php?f=108&t=120793
which suggests installing xinput
Following the instructions by lanewinfield on Tue Sep 22, 2015 7:18 pm
(first page about a quarter of the way down), I was able to get the screen to rotate 90 degrees using the /boot/config.txt
file and display_rotate=1
I was then able to follow lanewinfield's other instructions to swap the axes, but this was when the Pi was already booted up. The moment I rebooted, the display was still rotated to portrait but the touch events had reverted, so that when I touched the right of the screen the cursor arrow was at the bottom of the screen, for example.
I tried following suggestions throughout the rest of the post, including creating a file screenflip.sh
and making it run at autostart, as suggested by twuelfing on Sat Oct 10, 2015 7:26 pm
(near the bottom of the first page with the blue text), but that didn't seem to work, and nor did the others.
I'm a little frustrated that what seems like a simple thing to do actually seems to be almost impossible!