RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Unable to rotate screen Raspberry Pi 4

    Scheduled Pinned Locked Moved Help and Support
    raspberry pi 4autostart.shretropie 4.7screen rotate
    6 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KaaaaasKop
      last edited by

      Hello there! I have a problem with rotating the screen.

      Pi Model or other hardware: (4B)
      Power Supply used: (Powerbank)
      RetroPie Version Used (4.7.1):
      Built From: (retropie-buster-4.7.1-rpi4_400)
      USB Devices connected: Controller
      Controller used: IPEGA

      The config.txt display_rotate does not work, and I am to understand this is because of how Raspberry Pi 4 uses a different driver or something, so I tried doing it at autostart.sh with --screenrotate 1, but for some reason, I cannot save it, only exit it with ESC or CTRL+C, but I cannot save it. I cannot go to the 'OK' and 'Cancel' parts of the autostart.sh file in the retropie config.

      I have also tried using xrandr in the terminal, but I get the feeling that is something related to a different OS...

      I also tried #dtoverlay=vc4-fkms-V3D, but then it won't boot, even though the screen rotates then. Something about GPU I believe?

      I have been trying things for hours, but I just can't figure it out because I don't know what I'm doing. I can play the games, but I want landscape orientation rather than portrait. (So horizontal instead of vertical.)

      What should I do? Thank you in advance!

      KaaaaasKop.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @KaaaaasKop
        last edited by

        @kaaaaaskop said in Unable to rotate screen Raspberry Pi 4:

        The config.txt display_rotate does not work, and I am to understand this is because of how Raspberry Pi 4 uses a different driver or something, so I tried doing it at autostart.sh with --screenrotate 1, but for some reason, I cannot save it, only exit it with ESC or CTRL+C, but I cannot save it. I cannot go to the 'OK' and 'Cancel' parts of the autostart.sh file in the retropie config.

        You need to use the Tab key to exit the editor and be able to press Ok/Cancel.

        Don't modify the config.txt and remove the vc4-fkms-v3d overlay, that's not a supported configuration and RetroPie will not work (you've already experienced it).

        K 1 Reply Last reply Reply Quote 0
        • K
          KaaaaasKop @mitu
          last edited by

          @mitu Thank you! That worked, now to figure out how to make the resolution work and how to make the games rotate properly, and after that I can FINALLY enjoy my first attempt at my own retro handheld :)

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Here's a similar post with some hints. For the resolution, EmulationStation supports setting it via the parameters, so you can modify the autostart.sh with

            emulationstation --screenrotate 1 --resolution <width> <height>
            

            to have it start with the rotated resolution.

            K 1 Reply Last reply Reply Quote 0
            • K
              KaaaaasKop @mitu
              last edited by

              @mitu Thank you! Resolution gave weird results, but screensize seems to work :) For emulationstation that is.

              I also managed to rotate the screen properly for the games, but they only have a very small box in the middle, the rest is black. I shall figure this out, and once I do I can finally play, haha.

              DougAD 1 Reply Last reply Reply Quote 0
              • DougAD
                DougA @KaaaaasKop
                last edited by

                @kaaaaaskop Did you ever sort this out? I’m at the same position you were when you posted this.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.