Sam just shared a new tutorial: "How to Rotate Raspberry Pi Video Display"
Like many things in the Raspberry Pi ecosystem, functions such as rotating the display output can be a little unintuitive at first. Or perhaps you’re not sure how to get rid of that annoying black outline on your screen. So, we’ve put tog…
Read more
Hi. Just saw the tutorial on how to horizontally flip or 90 degree flip the view on retropie. I could get both to work separately, but not together. I tried listing both lines of code in succession and in combination, but nothings worked. Can you help me?
Thanks,
Hi Ryan,
To do both, you just need to add the 2 numbers together. So for rotate 90 and horizontal flip, you would use 0x10001 as the number.
Hi all,
I’m working with a Seeyoo kiosk with a touchscreen and a Raspberry Pi 3 b+. I got the Pi screen rotated to portrait, but I can’t get the touchscreen to change. I tried adding both display and LCD rotate, but it still won’t work. Any ideas? Thanks for any help!
Hi Kristi,
Welcome to the forum 
Display rotate shouldn’t impact the touch screen so that won’t help. LCD rotate should work with the official Pi touchscreen, but if you use both display and LCD rotate at once it might just cancel out and do nothing.
Could you let us know what touchscreen is used in the Seeyoo kiosks so we can have a look into the hardware/drivers and see if we can find a configuration setting that may work for you?
Hi Kristi,
From the looks of things, others have run into the same problem as you:
https://forums.raspberrypi.com/viewtopic.php?t=203241
Generally the way around it is xinput coordinate transformation -
https://wiki.ubuntu.com/X/InputCoordinateTransformation
It’s a little tricky, but should do what you’re after.
Let us know how you go!
-James
Hi,
I was wondering whether it was possible to rotate the display in the lite OS, without the GUI
Cheers
Hi Gabriel,
Are you on a Pi 3 or older? If so, you should be able to use /boot/config.txt to rotate things as shown in this thread:
https://forums.raspberrypi.com/viewtopic.php?t=265449
Things get hairy if you’re on a Pi 4, I’m not sure if it can be done, but let us know if this is you!
-James
This does not work for me on Pi 5 with Pi Touchscreen 2. I’ve tried everything I have been able to find in documentation and doing web searches, but absolutely nothing works. I need the screen to rotate to work with the KKSB Display Stand. I’m trying to put together an Internet Radio (not having much luck with that either, if anyone can point to any really good tutorials that covers the whole process).
Hey there, @Graeme323362,
Could you please check the name of the DSI connector you’re using on the your Pi with the following command.
grep -H . /sys/class/drm/card*-DSI-*/status
Pi 5 may expose the screen as DSI-1 or DSI-2, depending on the connector used. Then use the connector reported as connected in /boot/firmware/cmdline.txt, for example:
video=DSI-2:720x1280@60,rotate=90
Keep everything in cmdline.txt on one line, then reboot. If that still fails, post the command output and your complete cmdline.txt with any sensitive details removed.
Hey there, @Graeme323362,
I think I see the problem here. cmdline.txt needs to be on a single line. The system won’t read anything after the first line.
Everything else looks to be correct so if you move video line to the end of the first one and reboot, you should rotate the display.
Thanks Jane,
That worked, well sort of - I had to change it to 270 as it was upside down.
Strange that it has to be all on one line; that makes readability difficult. I was a programmer for a couple of years, over twenty years ago, after getting an IT diploma when a shoulder injury finished my aviation career, so I guess I assumed things would be the same as I was used to. I did see that you had written all on one line in the original e-mail, but thought that wouldn’t be right. I guess I should have tried that.
Now to make some time to try to get the Internet radio to work!
Thanks very much for following this up. Greatly appreciated.
Glad to hear you got it working, @Graeme323362,
Yeah, it’s a bit of a headache to read, but I suppose the devs were thinking more for the ease of machine reading than for a human.

