# 7” Touch Screen - rotate screen issue

**URL:** <https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102>\
**Category:** Support\
**Created:** [October 17, 2015, 3:23pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102 "2015-10-17T15:23:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majo](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Majo](https://forums.pimoroni.com/u/Majo)\
**Post date:** [October 17, 2015, 3:23pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/1 "2015-10-17T15:23:59Z")

</div>

Hi

I have problem to rotate screen on my new 7” Touch Screen with original stand. I have updated system according to instruction and also added **lcd\_rotate=2** line to **/boot/config.txt**. but the screen is still upside down.  
Can you please send me some more instructions how to rotate it?

Thanks

Majo

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 17, 2015, 3:37pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/2 "2015-10-17T15:37:34Z")

</div>

That should do the trick. Could you post the contents of your /boot/config.txt, use triple backticks to format it as code

````
```text
like so
```

````

You’re also running Raspbian?

---

<div class="post-metadata">

**Author:** ![Majo](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Majo](https://forums.pimoroni.com/u/Majo)\
**Post date:** [October 17, 2015, 7:57pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/3 "2015-10-17T19:57:44Z")

</div>

Please find attached my config.txt file. I have SD card with NOOBS

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/pimoroni/original/1X/e6da78fbf76bce6d70c091a8c9a9929091a2e66f.jpg)

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 17, 2015, 8:04pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/4 "2015-10-17T20:04:18Z")

</div>

Bizarre. I can’t see anything untoward. My best guess is that you’re not quite updated. What does it say if you fire up a terminal and run this?:

`uname -a`

I’d suggest running this again to see what happens. You can do definitively this by running:

```bash
sudo apt-get update
sudo apt-get install --reinstall libraspberrypi0 libraspberrypi-{bin,dev,doc} raspberrypi-bootloader
sudo reboot

```

---

<div class="post-metadata">

**Author:** ![Majo](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Majo](https://forums.pimoroni.com/u/Majo)\
**Post date:** [October 17, 2015, 8:37pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/5 "2015-10-17T20:37:10Z")

</div>

it shows this

```
Linux raspberrypi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l GNU/Linux

```

I have updated according to yours instructions and still the same under `uname -a`

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 19, 2015, 4:40pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/6 "2015-10-19T16:40:12Z")

</div>

Been sent to the forums from twitter, I have exactly the same problem with the same config.txt and same info when i type uname -a

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 8:04am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/7 "2015-10-20T08:04:03Z")

</div>

Is this with Raspbian Jessie?

Actually, are you both using NOOBS? I’ve got a hypothesis. There aren’t many reasons I can conceive why this would happen, but something like the NOOBS startup not supporting this command while vanilla Raspbian does would seem plausible.

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 8:29am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/8 "2015-10-20T08:29:09Z")

</div>

mine is with raspbian

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 8:33am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/9 "2015-10-20T08:33:03Z")

</div>

Whoops- see above, I revised my question for maximum confusion :D

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 8:49am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/10 "2015-10-20T08:49:25Z")

</div>

I’m using noobs, but if your theory relates to safe mode I’ve already put avoid\_safe\_mode=1 into config.txt

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 9:08am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/11 "2015-10-20T09:08:13Z")

</div>

Also just found out that the leg of the stand is in the way of the USB ports. So far not pleased with this product!

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 9:26am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/12 "2015-10-20T09:26:07Z")

</div>

I think I’m going to have to set up NOOBS and investigate- I know `lcd_rotate` works on the raw Raspbian Jessie and Raspbian Wheezy images so it’s likely something to do with NOOBS.

> [@markmagness](#):
>
> Also just found out that the leg of the stand is in the way of the USB ports.

We took a calculated risk with that decision- figuring most people would plug at least a WiFi dongle and possibly also a wireless keyboard dongle into those ports.

The upside-down-ness was unavoidable, since a software update rotated the display after we’d already created the stand, and we ( or at least I, I don’t want to throw anyone under the bus ) still believe this way is the right way up due to the HDMI, power and audio cables.

Was this a NOOBS that came on a NOOBS SD card, or did you install it yourself from the downloads here: [Raspberry Pi OS – Raspberry Pi](https://www.raspberrypi.org/downloads/noobs/)

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 9:38am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/13 "2015-10-20T09:38:00Z")

</div>

It was on a NOOBS SD Card

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 10:08am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/14 "2015-10-20T10:08:23Z")

</div>

Okay! I’ve managed to replicate the problem, that’s a good first step. It’s definitely something to do with NOOBS, although I’m really not sure _what_. I’m guessing NOOBS has a slightly different initial image that doesn’t support the `lcd_rotate` command.

I can’t fix it, but I can report the problem to people who can.

In the meantime you could fix it by installing Raspbian, but if you’re using NOOBS for multi-boot then that’s not much use to you.

I’m going to try downloading the latest NOOBS and see if I can use it to patch up my SD card.

**Edit: Okay, don’t try that. It broke. Really, really, broke! They’re not kidding when they say `RECOVERY_FILES_DO_NOT_EDIT`**

---

<div class="post-metadata">

**Author:** ![tvoverbeek](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@tvoverbeek](https://forums.pimoroni.com/u/tvoverbeek)\
**Post date:** [October 20, 2015, 11:03am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/15 "2015-10-20T11:03:17Z")

</div>

Just to add to the confusion:  
I downloaded NOOBS 1.4.2 yesterday and put it on a SD card.  
Initial run has to be done with a HDMI or Analog display connected in order to install Raspbian.  
I had both connected and the 7 inch display remained dark.  
On first boot, the HDMI display showed the initial rainbow and then the NOOBS ‘press shift’ to enter recovery.  
Then Raspbian booted on the 7 inch display. Of course upside down (RPi2 HDMI/USBpower/AV connectors at top).  
Added lcd\_rotate=2 to /boot/config.txt and rebooted (no HDMI connected).  
Note that the Raspbian FAT32 boot partition is the 3rd partition on the SD card. The first 2 are for the NOOBS recovery.  
Raspbian came up right side up on the 7 inch. No initial rainbow display, since that goes to the HDMI.  
My guess, you are using an older version of NOOBS. This one (1.4.2) includes the 25.09.2015 4.1 kernel and boots straight into the desktop (=Jessie).  
Curious to know what the explanation is.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 11:33am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/16 "2015-10-20T11:33:41Z")

</div>

I’ve just set up the new version of NOOBS to try this for myself.

It’s definitely odd. No rainbow screen on the LCD, and boots up by default with Overscan on- causing havoc with the touchscreen etc.

I can confirm that `lcd_rotate=2` does work, too.

NOOBS adds a `disable_overscan=0` to the bottom, plus a whole bunch of overscan settings. All the settings above need set to 0 in order to turn it off- `disable_overscan=1` doesn’t seem to work. The LCD should probably ignore overscan altogether anyway since it doesn’t apply or make any sense whatsoever.

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 11:56am UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/17 "2015-10-20T11:56:15Z")

</div>

the version I have installed just boots with the ‘rainbow screen’ really small in the top right corner of the touchscreen, it also had those wierd overscan defaults too.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2015, 12:16pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/18 "2015-10-20T12:16:14Z")

</div>

That ‘really small in the top right corner’ rainbow screen is actually the low voltage warning. What power supply are you using, and how is your Pi connected to the touchscreen for power?

Does the rainbow stay, or just appear at boot?

---

<div class="post-metadata">

**Author:** ![markmagness](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/markmagness/32/479_2.png) [@markmagness](https://forums.pimoroni.com/u/markmagness)\
**Post date:** [October 20, 2015, 12:23pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/19 "2015-10-20T12:23:40Z")

</div>

just at boot. I’m using an official raspi psu. 5V 1A.

---

<div class="post-metadata">

**Author:** ![tvoverbeek](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@tvoverbeek](https://forums.pimoroni.com/u/tvoverbeek)\
**Post date:** [October 20, 2015, 6:08pm UTC](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102/20 "2015-10-20T18:08:00Z")

</div>

Something else, but related.  
It is possible to get the NOOBS screens on the 7 inch display.  
See this post on the Raspberry Pi forums (two files have to be replaced on the SD card before first boot):  
[https://www.raspberrypi.org/forums/viewtopic.php?p=823236#p823236](https://www.raspberrypi.org/forums/viewtopic.php?p=823236#p823236)

[Next page](https://forums.pimoroni.com/t/7-touch-screen-rotate-screen-issue/1102.md?page=2)
