dpc
Posts: 4
Joined: Sun Apr 07, 2013 4:30 pm

Rotate the touchscreen display? [SOLVED]

Tue Sep 15, 2015 11:23 pm

I was searching for configuration settings for rotating the new Raspberry Pi 7" touchscreen display.

I have a 3D printed stand that does nicely (http://www.thingiverse.com/thing:995394) for holding the display with attached RPi, but require the cables that power and connect the Pi+display to be at the top of the display in the stand.

Somewhere along the way on installing and configuring a fresh Raspbian image, updating the packages and doing an rpi-update, the Touchscreen display rotated 180° (upside down).

I checked /boot/overlays/README and while there are many displays in there with a rotate command, I couldn’t find the new 7” touchscreen display…

I also tried display_rotate=2 in /boot/config.txt . It works to rotate the display, but then the touchscreen points are not correct-- the input events are reflected to where they would be if the display were still upside down.

Thanks for any help or pointers!

dpc
Posts: 4
Joined: Sun Apr 07, 2013 4:30 pm

Re: Rotate the touchscreen display?

Tue Sep 15, 2015 11:40 pm

After a little more googling post-post, I noticed Pimoroni had in their FAQ mentioning:

lcd_rotate=2

I tried that instead of display_rotate=2 and BINGO! I thought I has seen something like that elsewhere, but I was not able to find it, so I am including here too.

http://forums.pimoroni.com/t/official-7 ... en-faq/959

User avatar
PeterO
Posts: 5958
Joined: Sun Jul 22, 2012 4:14 pm

Re: Rotate the touchscreen display? [SOLVED]

Wed Sep 16, 2015 9:34 am

It's covered on this forum as well !

viewtopic.php?f=43&t=120642#p815847

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

twuelfing
Posts: 14
Joined: Mon Sep 21, 2015 1:33 am

Re: Rotate the touchscreen display? [SOLVED]

Mon Sep 21, 2015 1:36 am

I have read through this thread and those linked within and what i am reading is that a method to rotate the screen 90 or 270 degrees AND rotate the touch interface isn't documented here.

I understand that a portrait orientation isn't as efficient, however for my application it is required due to space restrictions.
Does anyone have any idea how to rotate both the screen and the touch registration 90 degrees?

thanks for your help!

meigrafd
Posts: 97
Joined: Tue May 29, 2012 9:28 am
Location: Germany

Re: Rotate the touchscreen display? [SOLVED]

Mon Sep 21, 2015 9:50 am

Is there a way to rotate HDMI separately to the DSI Device?

Actually 'display_rotate' does not only rotate HDMI, it also rotates the DSI Display :(

I need to have another rotation for HDMI as for DSI.

lanewinfield
Posts: 21
Joined: Tue Apr 07, 2015 2:12 am

Re: Rotate the touchscreen display? [SOLVED]

Tue Sep 22, 2015 5:30 am

twuelfing wrote:I have read through this thread and those linked within and what i am reading is that a method to rotate the screen 90 or 270 degrees AND rotate the touch interface isn't documented here.

I understand that a portrait orientation isn't as efficient, however for my application it is required due to space restrictions.
Does anyone have any idea how to rotate both the screen and the touch registration 90 degrees?

thanks for your help!
Hi Twuelfing! I had the same issue and logged my workthrough on this thread: viewtopic.php?f=108&t=120793

Puneet Kumar pal
Posts: 4
Joined: Fri Nov 24, 2017 7:20 am

Re: Rotate the touchscreen display? [SOLVED]

Fri Nov 24, 2017 11:28 am

How can i rotate my raspberry pi touchscreen display portrait.
when i am using lcd_rotate=1/2/3/4 any one of them it rotate the screen but stay always landscape.
or if i use display_rotate=1/2/3/4 any of them then my screen is rotate but it not effect my touch it work in landscape position
please help me it's urgent.

rbhinvt
Posts: 3
Joined: Sun Jan 14, 2018 9:51 pm

Re: Rotate the touchscreen display?

Mon Jan 15, 2018 1:37 pm

I just added this display to my Raspi 3, and I would like it to be rotated 180deg as that is the correct orientation with the display case I have. Following the advice in this conversation I have entered

lcd_display=2

in /boot/config.txt

and re-boot. This makes no difference. The GUI interface is still displayed in the default orientation. I did an update to the most recent Rasbian right after hooking up the display so I am running v8 (jessie).

Any insight on this would be appreciated.

Thanks

BigE
Posts: 12
Joined: Tue Mar 27, 2018 2:04 pm

Re: Rotate the touchscreen display?

Tue Mar 27, 2018 2:44 pm

rbhinvt wrote:
Mon Jan 15, 2018 1:37 pm
I just added this display to my Raspi 3, and I would like it to be rotated 180deg as that is the correct orientation with the display case I have. Following the advice in this conversation I have entered

lcd_display=2

in /boot/config.txt

and re-boot. This makes no difference. The GUI interface is still displayed in the default orientation. I did an update to the most recent Rasbian right after hooking up the display so I am running v8 (jessie).

Any insight on this would be appreciated.

Thanks
hello,

similarly to the user above, I am in a similar conflict and any tutorial I use is mildly outdated by a few years.

im attempting to make a raspberry pi phone from david hunts page but unfortunately, anything i try results in near crashs (and on a side note for anyone whos building this, the FONA module almost smoked itself simply due to my stupidity)

simply put, i may have a solution to this: i found on one site, by launching the code: xinput --list , this will show you the displays that the program can pickup and i found that my display was noted as stmpe-ts. yours might be different but try subsituteing this into the /boot/config.txt and see how this works out.

regards

stacywebb
Posts: 1
Joined: Sat Aug 18, 2018 4:51 am

Re: Rotate the touchscreen display? [SOLVED]

Sat Aug 18, 2018 4:54 am

in the config.txt

Do not use
lcd_display=2

Use:
lcd_rotate=2

stevecobb76
Posts: 19
Joined: Tue Nov 18, 2014 2:09 pm

Re: Rotate the touchscreen display? [SOLVED]

Sat Jan 05, 2019 4:29 am

stacywebb wrote:
Sat Aug 18, 2018 4:54 am
in the config.txt

Do not use
lcd_display=2

Use:
lcd_rotate=2
this is confirmed working here!!
the 7" touch screen
AND
the touchscreen is spot on

wolfhound89
Posts: 5
Joined: Fri Nov 13, 2015 1:34 pm

Re: Rotate the touchscreen display? [SOLVED]

Fri Dec 13, 2019 3:18 pm

I know that this is an older post and it was solved for the original poster. However, I am still having issues with my touchscreen and I thought it would be a good idea to post my question here.

What if the lcd_rotate=2 does not work? I have reviewed the config file line by line and cannot find any issues.
Is there somewhere else I should be looking?

Thank you.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 27040
Joined: Sat Jul 30, 2011 7:41 pm

Re: Rotate the touchscreen display? [SOLVED]

Fri Dec 13, 2019 3:29 pm

wolfhound89 wrote:
Fri Dec 13, 2019 3:18 pm
I know that this is an older post and it was solved for the original poster. However, I am still having issues with my touchscreen and I thought it would be a good idea to post my question here.

What if the lcd_rotate=2 does not work? I have reviewed the config file line by line and cannot find any issues.
Is there somewhere else I should be looking?

Thank you.
Are you using a Pi4? That's slightly different.

There's a PR going through to update the instructions. See here...https://github.com/raspberrypi/document ... 1355/files
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

wolfhound89
Posts: 5
Joined: Fri Nov 13, 2015 1:34 pm

Re: Rotate the touchscreen display? [SOLVED]

Fri Dec 13, 2019 3:49 pm

My apologies. I am using a Pi 3 B+

TroyHester
Posts: 1
Joined: Tue Sep 29, 2020 5:41 pm

Re: Rotate the touchscreen display? [SOLVED]

Tue Sep 29, 2020 5:55 pm

Here are the lines to add to /boot/config.txt that worked for me on my Raspberry Pi 3B+:

Copy these lines into /boot/config.txt and uncomment the section you wish to use.

Code: Select all


# For 0 degree rotation:
# (no additional entries - default setting)

# For 90 degree rotation (top to right):
#display_lcd_rotate=1
#dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-x=1

# For 180 degree rotation (upside down)
#display_lcd_rotate=2
#dtoverlay=rpi-ft5406,touchscreen-inverted-x=1,touchscreen-inverted-y=1

# For 270 degree rotation (top to left)
#display_lcd_rotate=3
#dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-y=1



Return to “Official Foundation Display”