I have been trying to simply rotate the screen on my Raspberry Pi so it looks like portrait mode. I can't seem to figure out the problem. I go to

sudo nano /boot/config.txt

And then I added both the lines

lcd_rotate = 2 
display_rotate = 3 

I have looked on all the forums and some say to use the first one and some say to use the second one. I have tried all different values and combinations to no avail. Please send help. Any help is more than appreciated.

  • Have you tried them seperately? Commented Mar 27, 2017 at 2:41
  • Yes I have but no luck
    – Matt Bart
    Commented Mar 27, 2017 at 2:55

1 Answer 1


The config to rotate HDMI display is display_rotate=3

SPACES are significant! You MUST enter commands exactly as described in the documentation. Putting in spurious commands is also a bad idea. Unless you actually have a LCD screen don't include.

I use a script to rotate my screen; see https://raspberrypi.stackexchange.com/a/62147/8697

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.