• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

"Retropie" error in 4.5.1, and above (until recent 4.5.5) : Key you just pressed is not recoqnised by SDL

Scheduled Pinned Locked Moved Help and Support
bugerrorsdl2
15 Posts 3 Posters 824 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.
  • A
    ANDRELLVS
    last edited by ANDRELLVS 29 Dec 2019, 00:28

    Recently my RETROPIE started to display the following error:

    Key you just pressed is not recoqnised by SDL
    

    And no solution of this forum worked. So by juggling several pieces of the puzzle, I came to a somewhat complex conclusion and solution.

    In this post I saw the reason that caused the problem, an update: sdl 2.0.3 -> sdl 2.0.4
    [https://github.com/RetroPie/RetroPie-Setup/issues/1297](link url)

    So I donwgrade, which generated another error

    error creating SDL window
    

    that the solution was in this post:
    [https://retropie.org.uk/forum/topic/2028/error-creating-sdl-window/7](link url)

    ===FINAL CONCLUSION ON MAKING IT RIGHT=======
    
    1) DONWGRADE VERSION FROM SDL 2.0.X TO SDL 2.0.3
    Edit :/home/pi/RetroPie-Setup/scriptmodules/supplementary/sdl2.sh
    and include modify text to 2.0.3:
    
    function get_ver_sdl2() {
        echo "2.0.3"
    
    Then type the following command in ssh:
    sudo ~ / RetroPie-Setup / retropie_packages.sh sdl2
    
    2) DONWGRADE VERSION OF FIRMWARE
    sudo rpi-update a16f22120d7979dc91e8d2e03fecb611fb0259e0
    

    So in the end everything goes back to normal. And that makes me wonder how foolish to update the RPI. So much so that when we type the:

    sudo rpi-update
    

    The actual update text warns that it is not to use this as a periodic update. Therefore only if recommended by board engineers.

    I am posting this in the hope that we can find some less aggressive solution to this.

    1 Reply Last reply Reply Quote 0
    • A
      ANDRELLVS
      last edited by ANDRELLVS 29 Dec 2019, 01:33

      Good guys, after all this unnecessary odyssey. I accidentally realized that all you have to do is "JUST" DONWGRADE BIOS and fix it.

      sudo rpi-update a16f22120d7979dc91e8d2e03fecb611fb0259e0
      

      The SDL 2.0.3 donwgrade works, but it does create future problems when you need to use programs with certain SDL 2.0.4 dependencies and above.

      Namely use RASPBERRY PI-3 model A.

      No more, good night everyone.
      
      1 Reply Last reply Reply Quote 0
      • M
        mitu Global Moderator
        last edited by 29 Dec 2019, 06:19

        @ANDRELLVS said in "Retropie" error in 4.5.1, and above (until recent 4.5.5) : Key you just pressed is not recoqnised by SDL:

        [https://github.com/RetroPie/RetroPie-Setup/issues/1297](link url)

        That's a 3 years old post, which doesn't apply to the current releases.
        RetroPie includes it's own patched SDL2 package, which suppresses that message - so if you get that message your installation is either messed up or you're trying to install on an unsupported distro/release (Raspbian Stretch contains 2.0.5 from what I see).

        A 1 Reply Last reply 29 Dec 2019, 11:51 Reply Quote 0
        • A
          ANDRELLVS @mitu
          last edited by 29 Dec 2019, 11:51

          @mitu

          I'm using the official rom. It's about her I'm talking about. And I know what you said. It's a boring and curious bug, because every time it gets around, it comes back.

          M 1 Reply Last reply 29 Dec 2019, 12:25 Reply Quote 0
          • M
            mitu Global Moderator @ANDRELLVS
            last edited by 29 Dec 2019, 12:25

            The RetroPie 4.5.1 image comes with SDL2 version 2.0.8 - https://github.com/RetroPie/RetroPie-Setup/blob/4589f0b02b2262d07503ecdf61ffc32b1d2ed59d/scriptmodules/supplementary/sdl2.sh#L22, now upgraded to 2.0.10.
            So I don't know where you got your image from or how your system is set up, but it's not looking like version 4.5.1.

            A 1 Reply Last reply 29 Dec 2019, 12:38 Reply Quote 0
            • A
              ANDRELLVS @mitu
              last edited by 29 Dec 2019, 12:38

              @mitu
              Thanks to your post I paid attention to one detail: I was installing a particularly unnecessary package, this package conflicted with the updated bios (sudo rpi-uptade).

              I was always installing "libsdl2-dev". It conflicted with the SDL of the retropie project, and eventually forced me to downgrade bios. The general solution was to avoid libsdl2-dev. Or if you already have it installed, give the bios donwgrade that I quoted.

              Thanks in advance.

              M 1 Reply Last reply 29 Dec 2019, 12:48 Reply Quote 0
              • M
                mitu Global Moderator @ANDRELLVS
                last edited by mitu 29 Dec 2019, 12:48

                The bios downgrade will not - in any case - resolve the issue you've reported initially, the warning is from libSDL2 (Key you just pressed is not recoqnised by SDL).
                RetroPie installs both the libsdl2 and libsdl2-dev packages (and marks then on hold), so you don't have to install it manually - in fact the warning message form libsdl2 is probably because you forcibly installed a libsdl2 package from another source (because the Raspbian Stretch repository has libsdl2 version 2.0.5, not 2.0.3 nor 2.0.4).

                A 1 Reply Last reply 29 Dec 2019, 14:50 Reply Quote 0
                • A
                  ANDRELLVS @mitu
                  last edited by ANDRELLVS 29 Dec 2019, 14:50

                  @mitu

                  Dude ... I'm here breaking my head a few hours ago, but there is a cue you said that maybe is the root of everything:

                  You said that in the file:

                  /home/pi/RetroPie-Setup/scriptmodules/supplementary/sdl2.sh
                  

                  , the sdl you install is 2.0.8 by default.

                  Well, analyzing this file, I noticed a difference in the text, since the github text doesn't match sdl2.sh. In sdl2.sh from the original iso asks for SDL 2.0.10!

                  So I'm doing tests, swapping iso's sdl2.sh for the straightforward sdl2.sh of the github model. Soon the result.

                  M 1 Reply Last reply 29 Dec 2019, 15:14 Reply Quote 0
                  • M
                    mitu Global Moderator @ANDRELLVS
                    last edited by mitu 29 Dec 2019, 15:14

                    You didn't pay enough attention to my previous reply

                    The RetroPie 4.5.1 image comes with SDL2 version 2.0.8 - https://github.com/RetroPie/RetroPie-Setup/blob/4589f0b02b2262d07503ecdf61ffc32b1d2ed59d/scriptmodules/supplementary/sdl2.sh#L22, now upgraded to 2.0.10.

                    A 1 Reply Last reply 29 Dec 2019, 15:18 Reply Quote 0
                    • A
                      ANDRELLVS
                      last edited by ANDRELLVS 29 Dec 2019, 15:16

                      SOLVED FINALLY! After more than 12 hours of trial and error!
                      

                      Thanks to the goodwill of the user "mitu", who kept exchanging information with me. I ended up finding the error. And I even thought it was the fault of the UPDATE BIOS. But at the end of all that happened is that:

                      1. I was wrong to think it was caused by bios update
                      2. Retropie actually has an SDL fork, which corrects this error, as MITU said.
                      3. MITU also got it right that the ideal update for RETROPIE is SDL 2.0.8.

                      The file :

                      ```
                      /home/pi/RetroPie-Setup/scriptmodules/supplementary/sdl2.sh

                      Comes by default with the text:

                      function get_ver_sdl2 () {
                           if isPlatform "x11" || compareVersions "$ __ os_debian_ver" ge 10; then
                               echo "2.0.9"
                           else
                               echo "2.0.8"
                           fi
                      }
                      
                      

                      but at some point during the installation of the emulators (I think it was reicast) this text changes and looks like this:

                      function get_ver_sdl2 () {
                           if isPlatform "x11" || compareVersions "$ __ os_debian_ver" ge 10; then
                               echo "2.0.10"
                      }
                      

                      I simply bypassed this by copying sdl2.sh from github

                      [https://github.com/RetroPie/RetroPie-Setup/blob/4589f0b02b2262d07503ecdf61ffc32b1d2ed59d/scriptmodules/supplementary/sdl2.sh](link url)

                      and placing it in the folder:

                      / home / pi / RetroPie-Setup / scriptmodules / supplementary /
                      

                      From there I ran the command:

                      sudo ~ / RetroPie-Setup / retropie_packages.sh sdl2
                      

                      And finally after more than 12 hrs the headache is over!

                      M 1 Reply Last reply 29 Dec 2019, 15:28 Reply Quote 0
                      • A
                        ANDRELLVS @mitu
                        last edited by 29 Dec 2019, 15:18

                        @mitu
                        I paid attention. And besides, I'm thanking you for your willingness to help.

                        Thank you in advance.
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          mitu Global Moderator @ANDRELLVS
                          last edited by 29 Dec 2019, 15:28

                          @ANDRELLVS said in "Retropie" error in 4.5.1, and above (until recent 4.5.5) : Key you just pressed is not recoqnised by SDL:

                          but at some point during the installation of the emulators (I think it was reicast) this text changes and looks like this:
                          [...]

                          No, it didn't.
                          Most likely it was changed when you updated your RetroPie-Setup script, likely this week or today/now, since the 2.0.10 version was added as part of the dev branch merge which happened 4 days ago.

                          A 1 Reply Last reply 29 Dec 2019, 19:18 Reply Quote 0
                          • A
                            ANDRELLVS @mitu
                            last edited by ANDRELLVS 29 Dec 2019, 19:18

                            @mitu I have been trying to replicate this same error since 1 pm, to confirm 100% of my theory and I did it! It happens whenever I start installing emulators. I haven't figured out which one yet, but one of them changes sdl2.sh.

                            And possibly it has to do with what you mentioned above. because I am upgrading to retropie 4.5.6

                            I will try to get a clean iso, and update the retropie to 4.5.6 and then check the sdl2.sh..view file that's right. Soon post the result.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Styleshift
                              last edited by 7 Jan 2020, 07:09

                              Now I am getting this issue. I've been using retropie for years and I have never had this issue. (I am currently using a Wii U Pro Controller.)

                              The controller works fine but this message fills up the screen when transitioning into a game or Kodi. I am also having a hard time with connecting my 8bitdo sn30 and 8bitdo md30. I don't know If it is because of this update. I am glad I created a back up image before updating but I hope you guys can help me so I can keep my Pi up to date.

                              M 1 Reply Last reply 7 Jan 2020, 07:13 Reply Quote 0
                              • M
                                mitu Global Moderator @Styleshift
                                last edited by 7 Jan 2020, 07:13

                                @Styleshift Please open a new topic and add the info from https://retropie.org.uk/forum/topic/3/read-this-first. You shouldn't get the error in the topic unless you've manually downgraded the libsdl2(-dev) package.

                                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.

                                  This community forum collects and processes your personal information.
                                  consent.not_received