RPi4 - Looking for tips to rotate screen 90 degrees

Support for connecting hardware to the Raspberry Pi GPIO

Moderators: russ, Ralph

Post Reply
Message
Author
mrozema
Posts: 12
Joined: Wed Jul 26, 2017 9:05 pm
Location: Calgary, AB, Canada

RPi4 - Looking for tips to rotate screen 90 degrees

#1 Post by mrozema »

Hi folks,
I have a RPi4 with the official 7" touchscreen. I'm having a tough time figuring out how to rotate the display 90 degrees to portrait and have Air Player/Air Manager detect it as such. So far, the information that folks have posted for olders RPi models does not seem to work for me on the RPi4.

My goal is to emulate the portrait layout of the Garmin GDU 470, part of the G3X system.
g3xtouch-7port.jpg
I sure could use the community's help!

User avatar
Ralph
Posts: 7867
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#2 Post by Ralph »

If you do a search on the forums then I'm sure you'll find the answer.

mrozema
Posts: 12
Joined: Wed Jul 26, 2017 9:05 pm
Location: Calgary, AB, Canada

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#3 Post by mrozema »

Rotating the screen is the easy part. I can make it boot in portrait mode, but when Air Player runs, it does not rotate and also flickers wildly. Are there Air Player settings I can get into on the Pi via SSH?

Here's some video evidence of what I'm seeing: https://youtu.be/I3TgmNj_LTo

SimPassion
Posts: 5336
Joined: Thu Jul 27, 2017 12:22 am

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#4 Post by SimPassion »

I guess the flickering is due to an internal weird (bad contacts) wiring from the flat screen ribbon to the mainboard

Gilles

mrozema
Posts: 12
Joined: Wed Jul 26, 2017 9:05 pm
Location: Calgary, AB, Canada

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#5 Post by mrozema »

Its fine in landscape mode.

User avatar
Corjan
Posts: 2933
Joined: Thu Nov 19, 2015 9:04 am

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#6 Post by Corjan »

Hi,


There is a limitation currently, where the panel must be the exact resolution of the Pi.

Are you maybe running a landscape panel in portrait mode?
If so, try creating a panel that has the exact portrait resolution.


Not sure if that is indeed the issue, but worth a shot,

Corjan

mrozema
Posts: 12
Joined: Wed Jul 26, 2017 9:05 pm
Location: Calgary, AB, Canada

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#7 Post by mrozema »

If I am running a landscape panel, its not intentional, but I don't think I am.
As you know, the raspberry pi touch is 800x480 in landscape, so I have reversed the dimensions on my panel and instrument settings to match.

Here's my test panel settings.
image.png
Then details for my moving map.
image.png
Looking closer at the visual, the map instrument appears stretched horizontal, likely to 800px, and squished to 480px vertically.
unnamed.jpg

SimPassion
Posts: 5336
Joined: Thu Jul 27, 2017 12:22 am

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#8 Post by SimPassion »

So, I've not seen this in your video previously
not an hardware issue, but potentially a display arbitration between the RPi logs and the AM instrument ...

for the orientation, if the AM instrument is ready for the resolution to fit the Landscape scheme, then you'll have to invert the width and height in the RPi system

Gilles

User avatar
Corjan
Posts: 2933
Joined: Thu Nov 19, 2015 9:04 am

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#9 Post by Corjan »

Hi,

Just realized that it is not using HDMI. We have never tested with the MIPI interface, only with HDMI.
Not sure it that should be working the same. I’ll see if we can get a hold of the official rpi touchscreen, so we can do some testing.

Corjan

mrozema
Posts: 12
Joined: Wed Jul 26, 2017 9:05 pm
Location: Calgary, AB, Canada

Re: RPi4 - Looking for tips to rotate screen 90 degrees

#10 Post by mrozema »

SimPassion wrote: Fri Apr 24, 2020 8:37 pm So, I've not seen this in your video previously
not an hardware issue, but potentially a display arbitration between the RPi logs and the AM instrument ...

for the orientation, if the AM instrument is ready for the resolution to fit the Landscape scheme, then you'll have to invert the width and height in the RPi system

Gilles
My instrument in AM is designed for 480x800 (portrait).
Corjan wrote: Sat Apr 25, 2020 11:26 am Hi,

Just realized that it is not using HDMI. We have never tested with the MIPI interface, only with HDMI.
Not sure it that should be working the same. I’ll see if we can get a hold of the official rpi touchscreen, so we can do some testing.

Corjan
Let me know if there's anything I can to help test this.

Post Reply