RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Good news regarding tearing and low EmulationStation performance on Pi 4

    Scheduled Pinned Locked Moved General Discussion and Gaming
    performancevsyncpi 4kernel 5.4
    194 Posts 38 Posters 62.6k 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.
    • P
      PhoenixJedi @Rascas
      last edited by

      @Rascas So i have no idea how to get/compile kodi 19 for the pi4... im guessing theres no way youd be willing to walk me through it?

      1 Reply Last reply Reply Quote 0
      • RascasR
        Rascas
        last edited by

        This is getting of topic... but if you don't have an idea about it, don't bother with it, it is not something easy to do. If you want more information open a new topic or search Kodi forums, there is some information about it there already.

        1 Reply Last reply Reply Quote 1
        • J
          Jimi007 @saccublenda
          last edited by

          @saccublenda Hi I just wanted to find out hat theme is this that you are using. I like it

          saccublendaS 1 Reply Last reply Reply Quote 0
          • saccublendaS
            saccublenda @Jimi007
            last edited by

            @Jimi007 It's the Snes mini theme

            1 Reply Last reply Reply Quote 0
            • A
              akamming @cellux
              last edited by

              @cellux said in Good news regarding tearing and low EmulationStation performance on Pi 4:

              I got a nice tip though. It is possible to use the old sound driver:
              dtparam=audio=on
              dtoverlay=vc4-kms-v3d-pi4,audio=off
              (and the old vc4-hdmi.conf)

              Dit you get this to work? i cannot get audio (also not with this tip)

              I only see the BCM2835 headphones driver, but i need either the 2835 HDMI 1 driver to work or the new kms audio driver. Can't get both to work...

              I tried

              • dtoverlay=vc4-kms-v3d-pi4,audio=off (with dtparam=audio=on and old vc4-hdmi.conf)
              • and dtoverlay=vc4-kms-v3d-pi4 with new vc4-hdmi.conf

              on both no audio. Does anyone have a tip?

              B 1 Reply Last reply Reply Quote 0
              • Beretta9B
                Beretta9
                last edited by

                I'm in the same situation. I can get the KMS driver to work but cannot get audio.

                Retro Gamer Supreme

                RascasR 1 Reply Last reply Reply Quote 0
                • RascasR
                  Rascas @Beretta9
                  last edited by

                  Kernel 5.4 is still in testing and KMS isn't ready yet so issues may occur. For more information about it's current state check this thread:
                  https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=269769

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

                    @akamming said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                    @cellux said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                    I got a nice tip though. It is possible to use the old sound driver:
                    dtparam=audio=on
                    dtoverlay=vc4-kms-v3d-pi4,audio=off
                    (and the old vc4-hdmi.conf)

                    Dit you get this to work? i cannot get audio (also not with this tip)

                    I only see the BCM2835 headphones driver, but i need either the 2835 HDMI 1 driver to work or the new kms audio driver. Can't get both to work...

                    I tried

                    • dtoverlay=vc4-kms-v3d-pi4,audio=off (with dtparam=audio=on and old vc4-hdmi.conf)
                    • and dtoverlay=vc4-kms-v3d-pi4 with new vc4-hdmi.conf

                    on both no audio. Does anyone have a tip?

                    It is not possible to use the BCM2835 and the vc4hdmi drivers at the same time.
                    What is your output when you type in aplay -l in the cmd line?

                    A 1 Reply Last reply Reply Quote 0
                    • S
                      SeraphisCain
                      last edited by SeraphisCain

                      So I did a normal apt update today and apparently we're officially on 5.4 now? Using the KMS driver and new audio driver and everything seems to be working as intended, save for a "failed to find mixer elements" error with ES that's probably related to the new audio driver, but that's not much of a problem.

                      EDIT: Hm, maybe it's not working quite as intended after all. I'm getting audio dropouts on more demanding stuff (Dreamcast with Redream, some games that require MAME 2016) using the new audio driver). Think I'll go back to FKMS/old audio driver until the new stuff has been tested a bit more.

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

                        @SeraphisCain said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                        So I did a normal apt update today and apparently we're officially on 5.4 now? Using the KMS driver and new audio driver and everything seems to be working as intended, save for a "failed to find mixer elements" error with ES that's probably related to the new audio driver, but that's not much of a problem.

                        EDIT: Hm, maybe it's not working quite as intended after all. I'm getting audio dropouts on more demanding stuff (Dreamcast with Redream, some games that require MAME 2016) using the new audio driver). Think I'll go back to FKMS/old audio driver until the new stuff has been tested a bit more.

                        I just confirmed this as well about the kernel update.

                        So in order to use the vc4hdmi audio driver, you need to disable the broadcom2835 one in your config.txt

                        Using both is not possible, or at least that is what was mentioned before. It was said that both drivers are fighting for the same resources hence why one of them needs to be disabled.

                        The vc4hdmi audio driver is a WIP, so results will vary.

                        Also, for the vc4hdmi driver you need to use an updated vc4hdmi.conf in the /usr/share/alsa/cards folder:

                        https://github.com/LibreELEC/LibreELEC.tv/blob/master/projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf

                        I am surprised that this file was not replaced with the new one with the kernel update.

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

                          For the moment I'm using dtoverlay=vc4-kms-v3d,noaudio along with dtparam=audio=on to use the new video driver along with the old audio driver until things get ironed out with the new HDMI audio driver.

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

                            @SeraphisCain said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                            For the moment I'm using dtoverlay=vc4-kms-v3d,noaudio along with dtparam=audio=on to use the new video driver along with the old audio driver until things get ironed out with the new HDMI audio driver.

                            The correct usage is dtoverlay=vc4-kms-v3d,noaudio=on

                            You can verify by typing aplay -l in the cmdline and the vc4hdmi devices will not be present.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              SeraphisCain @bluestang
                              last edited by

                              @bluestang

                              According to this:

                              https://github.com/raspberrypi/linux/pull/3640#issuecomment-639053905

                              noaudio and noaudio=on should have the same effect, since "on" is assumed if no parameter is given.

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

                                @SeraphisCain said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                                issuecomment

                                Good catch. I haven’t used the driver in awhile. For me the lack of a mixer doesn’t make it a suitable driver.

                                DarksaviorD 1 Reply Last reply Reply Quote 0
                                • DarksaviorD
                                  Darksavior @bluestang
                                  last edited by Darksavior

                                  Yep, looks like they officially released 5.4 and the gamecon driver still doesn't work. I have no idea what the problem is but I did post the problem to them months ago in their forum and got ignored.

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

                                    @Darksavior said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                                    I have no idea what the problem is but I did post the problem to them months ago in their forum and got ignored.

                                    Well, it's not their driver - why would you expect them to fix it ?
                                    You should have reported this upstream - https://github.com/marqs85/gamecon_gpio_rpi.

                                    DarksaviorD 1 Reply Last reply Reply Quote 0
                                    • DarksaviorD
                                      Darksavior @mitu
                                      last edited by

                                      @mitu Well, I don't know of these things. A simple "not our problem" would've done it.
                                      Buzz always tells people to post problems on the forum first, so I'm always hesitant to post problems at the github.

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

                                        @Darksavior said in Good news regarding tearing and low EmulationStation performance on Pi 4:

                                        Buzz always tells people to post problems on the forum first, so I'm always hesitant to post problems at the github.

                                        Yes, that's the preferred approach - though in this case it's not a RetroPie issue. It looks like the module uses a call to do_gettimeofday, which was deprecated in the Linux kernel in preparation for the 2038-pocalypse. I'll take a look at what changes might be needed and perhaps submit a patch upstream.

                                        1 Reply Last reply Reply Quote 1
                                        • P
                                          PhoenixJedi
                                          last edited by

                                          Well now that 5.4 is official, is there any way to get kodi working with this KMS driver or no?

                                          saccublendaS RascasR 2 Replies Last reply Reply Quote 0
                                          • saccublendaS
                                            saccublenda @PhoenixJedi
                                            last edited by

                                            @PhoenixJedi I think we just have to wait for Kodi 19 to be released.

                                            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.