Skip to content

display_rotate, display_hdmi_rotate etc -- nothing rotates hdmi display any more #3789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pinheadmz opened this issue Aug 13, 2020 · 7 comments

Comments

@pinheadmz
Copy link

Just recently updated OS on a Pi4B 4GB model.

$ uname -a
Linux zippi 5.4.51-v7l+ #1327 SMP Thu Jul 23 11:04:39 BST 2020 armv7l GNU/Linux

I have this HDMI screen attached to HDMI port 0: https://www.ebay.com/itm/221952432326

I have always run this system headless, no GUI.

For some reason with a recent update I am unable to rotate the screen after trying all these options in /boot/config.txt:

display_rotate=2
display_hdmi_rotate=2
display_lcd_rotate=2
lcd_rotate=2
disable_fw_kms_setup=1

I'm seeing lots of forum posts about this:

https://raspberrypi.stackexchange.com/questions/82793/does-display-rotate-still-work
https://raspberrypi.stackexchange.com/questions/104073/display-rotate-not-working-in-raspberry-pi-64-bit
https://www.raspberrypi.org/forums/viewtopic.php?t=246146
...and several more.

I didn't see any open or closed issues after searching for display_rotate -- kinda stumped here. Any thoughts?

@pinheadmz pinheadmz changed the title display_rotate display_hdmi_rotate etc -- nothing works any more display_rotate, display_hdmi_rotate etc -- nothing rotates hdmi display any more Aug 13, 2020
@JamesH65
Copy link
Contributor

@pinheadmz
Copy link
Author

@JamesH65 Thank you sir!

Solution for me was adding this to the end of the line in /boot/cmdline.txt:

video=HDMI-A-1:800x480@60,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0,rotate=180

@colesnicov
Copy link

@JamesH65 Thank you sir!

Solution for me was adding this to the end of the line in /boot/cmdline.txt:

video=HDMI-A-1:800x480@60,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0,rotate=180

Hi team, yes 180°. But how about 90˚ or 270˚??

@colesnicov
Copy link

colesnicov commented May 5, 2024

Hello people. I've been trying to figure out something similar for a few days now here raysan5/raylib#3958 .

I try to rotate the display by 90˚ or 270˚ degrees, but it only works 180˚. I'm starting to give up. Would anyone know?
EDIT: It is this display https://www.waveshare.com/wiki/7.9inch_HDMI_LCD#Working_with_Raspberry_Pi

@popcornmix
Copy link
Collaborator

Screen rotation by 90/270 can be handled from desktop where 3d hardware is used for composition.
There is no general solution for this when running outside of desktop.

@colesnicov
Copy link

Good. I know it. But how does the desktop do it? I know it's possible, I had a desktop installed on it, but I don't need a desktop. Because of the kiosk.. It might be possible, via openbox, but I don't have time for that right now. I am programming a 3D kiosk with a 2D GUI. The old goal. Classic...

@colesnicov
Copy link

I think, from what I have found, the desktop makes a composition before rendering, where it immediately rotates the image. And the desktop does not necessarily need to use 3D for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants