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

    Screen tearing in pi 4

    Scheduled Pinned Locked Moved Help and Support
    tearingmarqueepi 4
    21 Posts 7 Posters 5.4k 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.
    • dankcushionsD
      dankcushions Global Moderator @jigidyjim
      last edited by

      @jigidyjim not that i'm aware of. i don't know how the 2 displays are driven within kms, but it's presumably possible. one for the pi marquee people to look into, i suppose.

      1 Reply Last reply Reply Quote 0
      • S
        senseless @jigidyjim
        last edited by senseless

        @jigidyjim I managed to get this up and running using KMS. The tearing is no longer an issue for me and overall video performance seems better.

        I followed this thread and instructions from bluestang: https://retropie.org.uk/forum/topic/27299/low-framerate-on-main-emulationstation-menu-pi-4/115?lang=nl

        Initially using option 1 I lost audio in emulationstation and games. I needed to run the audio config of retropie and ensure that in the sound settings of emulationstation the audio card is on default and the audio device is on master.

        Took me quite some time to get everything working again but no more tearing. I also included the v3d_freq_min=500 option to ensure emulationstation runs at a stable 60 fps.

        The only thing that doesn't run anymore is my startup video and I get error messages about a failed component to create 'vc.ril.hvs'which does not seem to have any impact and is directly related to using KMS (I think). UPDATE: setting the OMX Player to use hardware accelation fixed it, but downside it that it does not display preview video's anymore.. weird.

        Hope this helps anyone attempting this.

        B J P 3 Replies Last reply Reply Quote 0
        • B
          bluestang @senseless
          last edited by

          @senseless

          The KMS video driver will never work with OMXplayer since it was designed to work with FKMS only.

          Once you switch over you can only use VLC. I would disable all OMX options in ES if you are using KMS.

          1 Reply Last reply Reply Quote 0
          • J
            jigidyjim @senseless
            last edited by

            @senseless awesome thanks!!!

            Just to clarify since I don’t see it mentioned in that thread - are you also using a marquee display? My rough understanding is that if I do all that my marquee will break?

            J S 2 Replies Last reply Reply Quote 0
            • J
              jigidyjim @jigidyjim
              last edited by

              I went over to the raspberry pi forums and it sounds like the official move to kernel 5.10 is almost here, so I might just wait for that instead!

              1 Reply Last reply Reply Quote 0
              • S
                senseless
                last edited by

                @bluestang

                Thanks, I didn't know that. Just dived into the whole retropie world and learning on the job :). Having a blast and dusting off my unix knowledge in the process haha. Good to hear the 5.10 release is coming and waiting for this is probably the best option for now ;).

                1 Reply Last reply Reply Quote 0
                • S
                  senseless @jigidyjim
                  last edited by

                  @jigidyjim said in Screen tearing in pi 4:

                  marquee display?

                  I'm not sure I fully understand your question or that we are talking about the same thing but I use bezels for all my systems and they still work/display during a game.

                  1 Reply Last reply Reply Quote 0
                  • P
                    phos @senseless
                    last edited by phos

                    @senseless

                    Would you be willing to create and share an IMG of your RetroPie install with KMS? I have followed the instructions from @bluestang as well as instructions elsewhere on the forums and have not been able to get KMS to boot on Pi 4.

                    If I had a working IMG, I could at least confirm it may be just a conflict between my VGA666 and KMS and not an error on my side.

                    Thank you, would be quite helpful to myself and others trying to get KMS working.

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bluestang @phos
                      last edited by

                      @phos said in Screen tearing in pi 4:

                      @senseless

                      Would you be willing to create and share an IMG of your RetroPie install with KMS? I have followed the instructions from @bluestang as well as instructions elsewhere on the forums and have not been able to get KMS to boot on Pi 4.

                      If I had a working IMG, I could at least confirm it may be just a conflict between my VGA666 and KMS and not an error on my side.

                      Thank you, would be quite helpful to myself and others trying to get KMS working.

                      Are you able to test KMS with a regular monitor or TV?

                      If the problem exists with the VGA666 than you may need to seek help on the Raspberry Pi forums.

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        phos @bluestang
                        last edited by

                        @bluestang

                        I don't have the proper HDMI cable to test, although I could get one.

                        I made a post detailing my issue. Trying to boot ES after the Pi boot up freezes via SSH only returns an SDL error.

                        https://retropie.org.uk/forum/topic/29488/working-kms-image-with-newest-retropie-on-pi-4-help-with-config-with-vga666?_=1612231814343

                        I did also try installing Raspberry Pi OS instead of RetroPie and I also get a freeze on boot up in RPiOS with KMS on. So, it could very well be an issue related to VGA666.

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          bluestang @phos
                          last edited by

                          @phos said in Screen tearing in pi 4:

                          @bluestang

                          I don't have the proper HDMI cable to test, although I could get one.

                          I made a post detailing my issue. Trying to boot ES after the Pi boot up freezes via SSH only returns an SDL error.

                          https://retropie.org.uk/forum/topic/29488/working-kms-image-with-newest-retropie-on-pi-4-help-with-config-with-vga666?_=1612231814343

                          I did also try installing Raspberry Pi OS instead of RetroPie and I also get a freeze on boot up in RPiOS with KMS on. So, it could very well be an issue related to VGA666.

                          Looks like VGA666 is not supported under KMS yet.

                          Keep an eye on this PR and when it’s merged give it go:

                          https://github.com/raspberrypi/linux/pull/4141

                          1 Reply Last reply Reply Quote 0
                          • J
                            jigidyjim
                            last edited by

                            I finally updated to kernel 5.10 now that it has been released officially.

                            However, I'm still trying to figure out how I can switch to the kms driver, so that I can get rid of my screen tearing.

                            My problem is that I am using Pi Marquee 2 to power my second display. If I switch to the kms driver, that stops working.

                            I looked through the source code of Pi Marquee 2, and it looks like it using "omxiv" to display pngs to the second display. And from what I've been reading, omxiv is based on omxplayer, and omxplayer will never be supported on the kms driver. At least, that is my very shallow understanding of the current state of the world.

                            But really I don't need the video support in all this as I'm not using it at all. All I'm using this for is displaying a simple png to the second display (though the image fades as it switches images are a nice touch!). I'm wondering if anyone knows of a way to do that other than omxiv? if such a program exists that can do that, maybe I'll try editing the python script myself and pointing it at some other program. No idea if it's that simple, but thought I'd ask!

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

                              @jigidyjim said in Screen tearing in pi 4:

                              I'm wondering if anyone knows of a way to do that other than omxiv?

                              Try using fbi, it's an image viewer that works on the console also.

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                jigidyjim @mitu
                                last edited by

                                @mitu said in Screen tearing in pi 4:

                                Try using fbi, it's an image viewer that works on the console also.

                                Thanks that looks promising. I’ll have to see if there’s a way to control which display it outputs to.

                                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.