daveyjr1957
Posts: 2
Joined: Mon Feb 13, 2017 11:35 am

Pi 7" screen rotation problems

Mon Feb 13, 2017 11:46 am

Hi
I have my pi - screen and matching case (all for PiHut).
All working fine except that the screen image is upside down. The seller tells me that I need to enter LCD = 2 into the config file. I have tried to do this using leaf through the GUI but its read only. When I use terminal using 'sudo' I can not get it to move the the "Boot" directory.
Any advice greatly appreciated.
Dave

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi 7" screen rotation problems

Mon Feb 13, 2017 11:49 am

Add

Code: Select all

lcd_rotate=2
into /boot/config.txt and reboot.

Use sudo nano /boot/config.txt in an LXTerminal window to edit it. If you can't work out how to do that hold or tap [SHIFT] during boot and use the NOOBS recovery system config editor to do it.
Last edited by DougieLawson on Mon Feb 13, 2017 11:51 am, edited 1 time in total.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Pi 7" screen rotation problems

Mon Feb 13, 2017 11:50 am

Hi and welcome to the forum.
The actual config line needs to be

Code: Select all

lcd_rotate=2
I've never used leaf, but for nano from the CLI use

Code: Select all

sudo nano /boot/config.txt
at the end of the file enter

Code: Select all

lcd_rotate=2
Then enter Control-X and Y to agree to save (or something similar).

FYI the lcd_rotate=2 is correct for the official screen only.
Hope this helps,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

daveyjr1957
Posts: 2
Joined: Mon Feb 13, 2017 11:35 am

Re: Pi 7" screen rotation problems

Wed Feb 15, 2017 4:02 pm

Dear All
Thanks for the advice - support and yes that is it. :lol:
Still cant open and write without using sudo su , then opening nano?
But done now thanks.

Return to “Beginners”