If you need to rotate your screen in Raspbian you will find that it is not as simple as you are used to.
GPU memory split
Since screen rotation requires a little more from Raspberry GPU, you need to increase its memory.
In a terminal:
$ sudo raspi-config
And you will be present with the following screens:
To actually rotate your screen, in a terminal:
$ sudo leafpad /boot/config.txt
and add the following lines at the end of the file:
# Rotate screen display_rotate=[X] gpu_mem=128
Where [X] is one of the following:
- 0 – Normal
- 1 – Rotate 90º
- 2 – Rotate 180º
- 3 -Rotate 270º
- 0x10000 – Flip horizontally
- 0x20000 – Flip vertically
Now you just need to restart or logout/log in and your screen is rotated.