Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    GPIO joystick and buttons issue

    GamePad/GPIO/USB encoder
    gpio joystick buttons issue
    5
    40
    12385
    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.
    • Substring
      Substring @IvoLourenco last edited by

      @ivolourenco So, each of the buttons are working properly and independantly. The daisy chain is just for the ground, and should link a pin of each switch to the Pi ground.

      You're not supposed to remap the controller in ES, it's configured by default. Try those commands in SSH :

      /etc/init.d/S31emulationstation stop
      cp /recalbox/share_init/system/.emulationstation/es_input.cfg ~/.emulationstation
      /etc/init.d/S31emulationstation start
      

      And try your stick without reconfiguring it for now

      Former dev - Please reply with @substring so that i am notified when you answer me
      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

      1 Reply Last reply Reply Quote 0
      • IvoLourenco
        IvoLourenco last edited by

        @Substring see the outup of those commands:

        """ # /etc/init.d/S31emulationstation stop

        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!

        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
        ERROR - tried to write to log file before it was open! The following won't be logged:
        lvlERROR - tried to write to log file before it was open! The following won't be logged:

        cp /recalbox/share_init/system/.emulatoions

        BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.

        Usage: cp [OPTIONS] SOURCE... DEST

        Copy SOURCE(s) to DEST

            -a      Same as -dpR
            -R,-r   Recurse
            -d,-P   Preserve symlinks (default if -R)
            -L      Follow all symlinks
            -H      Follow symlinks on command line
            -p      Preserve file attributes if possible
            -f      Overwrite
            -i      Prompt before overwrite
            -l,-s   Create (sym)links
            -u      Copy only newer files
        

        /etc/init.d/S31emulationstation start

        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!

        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
        lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
        lvl0: System "favorites" is missing name, path, extension, or command!
        lo IP Address 127.0.0.1
        eth0 IP Address 169.254.119.52
        curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'' """

        Note: The joystick works withing the recalbox. But none the button work still.

        Substring 1 Reply Last reply Reply Quote 0
        • Substring
          Substring @IvoLourenco last edited by

          @ivolourenco said in GPIO joystick and buttons issue:

          cp /recalbox/share_init/system/.emulatoions

          This is not the command I wrote, please read again

          Former dev - Please reply with @substring so that i am notified when you answer me
          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

          1 Reply Last reply Reply Quote 0
          • IvoLourenco
            IvoLourenco last edited by

            @Substring sorry for that, output below.

            """# /etc/init.d/S31emulationstation stop

            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!

            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
            ERROR - tried to write to log file before it was open! The following won't be logged:
            lvlERROR - tried to write to log file before it was open! The following won't be logged:

            cp /recalbox/share_init/system/.emulations

            BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.

            Usage: cp [OPTIONS] SOURCE... DEST

            Copy SOURCE(s) to DEST

                -a      Same as -dpR
                -R,-r   Recurse
                -d,-P   Preserve symlinks (default if -R)
                -L      Follow all symlinks
                -H      Follow symlinks on command line
                -p      Preserve file attributes if possible
                -f      Overwrite
                -i      Prompt before overwrite
                -l,-s   Create (sym)links
                -u      Copy only newer files
            

            /etc/init.d/S31emulationstation start

            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!

            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
            lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
            lvl0: System "favorites" is missing name, path, extension, or command!
            lo IP Address 127.0.0.1
            eth0 IP Address 169.254.119.52
            curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'"""

            Substring 1 Reply Last reply Reply Quote 0
            • Substring
              Substring @IvoLourenco last edited by

              @ivolourenco the cp command is not correctly typed. I tried it on my recalbox and it works.
              When reporting, please use such `bback quotes, not double quotes

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              1 Reply Last reply Reply Quote 0
              • IvoLourenco
                IvoLourenco last edited by

                @Substring All buttons responding. Seems incorrectly setup though. Shall I remap them?

                And what have i done... with the commands you suggested?

                # lvl0:         Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
                lvl0:   Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
                lvl0:   Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
                ERROR - tried to write to log file before it was open! The following won't be logged:
                # cp /recalbox/share_init/system/.emulations/es_input.cfg ~/
                cp: can't stat '/recalbox/share_init/system/.emulations/es_input.cfg': No such file or directory
                # cp /recalbox/share_init/system/.emulationstation/es_input.cfg ~/.emulationstation
                # /etc/init.d/S31emulationstation start
                # lvl0:         Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
                lvl0:   Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
                lvl0:   Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
                lvl0:   System "favorites" is missing name, path, extension, or command!
                lo IP Address 127.0.0.1
                eth0 IP Address 169.254.119.52
                curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'
                ==============================================
                ==============================================
                
                
                Substring 1 Reply Last reply Reply Quote 0
                • Substring
                  Substring @IvoLourenco last edited by

                  @ivolourenco Incorrectly setup ? If you followed the wiring diagram + buttons layout like :
                  Y X L
                  B A X

                  You shouldn't have to remap. But ok, try remapping now you know how to reset the mapping 😉

                  Former dev - Please reply with @substring so that i am notified when you answer me
                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                  IvoLourenco 1 Reply Last reply Reply Quote 0
                  • IvoLourenco
                    IvoLourenco @Substring last edited by IvoLourenco

                    @substring going to start drilling the button now! 😄

                    I just noticed that when i push up it goes down... so may be there is a issue on the setup of wiring.

                    However, I did a run on remapping but it still does not recognise after A button 😞

                    Thanks

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @IvoLourenco last edited by

                      @ivolourenco can you go to http://recalbox while trying to remap, and make a screenshot of Recalbox when you're stuck at remapping ? You can post it here using the small cloud icon with an arrow, no need to drop it on some website

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      IvoLourenco 1 Reply Last reply Reply Quote 0
                      • IvoLourenco
                        IvoLourenco @Substring last edited by

                        @substring so this what i do:

                        1. Main Menu/ Controller Settings

                        2. 2 Gamepads detected (picture below)
                          0_1509474625971_screenshot-1980-01-01T01-03-35-688Z.png

                        3. Press A and start the configuration (joystick configured - Picture below)

                        1_1509474625971_screenshot-1980-01-01T01-04-01-790Z.png

                        1. A button configured as Button 1 and after this none of the others are recognised.
                          2_1509474625971_screenshot-1980-01-01T01-04-29-731Z.png
                        Substring 1 Reply Last reply Reply Quote 0
                        • Substring
                          Substring @IvoLourenco last edited by

                          @ivolourenco so no button would work once A is assigned ? They all work on evtest, i don't get it ... unless you mixed P1 and P2 ...

                          Former dev - Please reply with @substring so that i am notified when you answer me
                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                          IvoLourenco 1 Reply Last reply Reply Quote 0
                          • IvoLourenco
                            IvoLourenco @Substring last edited by

                            @substring yes basically none work after A is assigned.

                            How could P1 or P2 affect that? I’m using the GPIO layout proposed within the wiki.

                            Is there a way within evtest to understand that the button is assigned to the correct GPIO pin?

                            Substring 1 Reply Last reply Reply Quote 0
                            • Substring
                              Substring @IvoLourenco last edited by

                              @ivolourenco nope evtest just reports which event has been triggered. I still believe that if you're saying the layout is not right, then the wiring is wrong

                              Former dev - Please reply with @substring so that i am notified when you answer me
                              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                              IvoLourenco 1 Reply Last reply Reply Quote 0
                              • IvoLourenco
                                IvoLourenco @Substring last edited by

                                @substring so I setup my buttons, initiate a game. And then when I have a game loaded at the insert coin (metal slug) or 1 player game (mario) there is no response from any button. I do not have an hot key specific button.

                                I tried once again to remap my buttons but it does not work as mentioned above.all the wiring is ok as per schematic.

                                Any thoughts?

                                Substring 1 Reply Last reply Reply Quote 0
                                • Substring
                                  Substring @IvoLourenco last edited by

                                  @ivolourenco someone has the same kind of issue but for dreamcast only. Can you make ansupport archive ?

                                  Former dev - Please reply with @substring so that i am notified when you answer me
                                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                  IvoLourenco 1 Reply Last reply Reply Quote 0
                                  • IvoLourenco
                                    IvoLourenco @Substring last edited by

                                    @substring after some more testing this occur within Neo Geo, Name, PlayStation. I can play some games of Nintendo not all.

                                    Support Archive is a separate topic? (Sorry for the noob questions)

                                    Substring 1 Reply Last reply Reply Quote 0
                                    • Substring
                                      Substring @IvoLourenco last edited by

                                      @ivolourenco go to http://recalbox/help and make a support archive, post the generated link here

                                      Former dev - Please reply with @substring so that i am notified when you answer me
                                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                      1 Reply Last reply Reply Quote 0
                                      • IvoLourenco
                                        IvoLourenco last edited by

                                        @Substring Page not found (404) - Below.

                                        Page not found (404)
                                        Request Method: GET
                                        Request URL: http://recalbox/help
                                        Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
                                        ^media/(?P<path>.)$
                                        ^500/$
                                        ^404/$
                                        ^static/(?P<path>.
                                        )$
                                        ^ ^$ [name='home']
                                        ^ ^bios/$ [name='bios']
                                        ^ ^bios/upload$ [name='bios-upload']
                                        ^ ^config/$ [name='config']
                                        ^ ^monitoring/$ [name='monitoring']
                                        ^ ^logs/$ [name='logs']
                                        ^ ^systems/$ [name='roms-systems']
                                        ^ ^systems/roms/(?P<system>\w+)/$ [name='roms-list']
                                        ^ ^systems/roms/(?P<system>\w+)/upload/$ [name='roms-upload']
                                        The current URL, help, didn't match any of these.
                                        You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

                                        Substring 1 Reply Last reply Reply Quote 0
                                        • Substring
                                          Substring @IvoLourenco last edited by

                                          @ivolourenco which recalbox version do you have ? Don't tell me you're still on 4.0 ?

                                          Former dev - Please reply with @substring so that i am notified when you answer me
                                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                          IvoLourenco 1 Reply Last reply Reply Quote 0
                                          • IvoLourenco
                                            IvoLourenco @Substring last edited by

                                            @substring was 4.0 because I could not found roms... so i was using a compile file to try some games.

                                            Changed to the 4.1 and did the support archive, same problems regarding the mapping. (https://file.ac/DaGZwV_MA-U/)

                                            Can we discuss roms subjec on Kiwi IRC? Let me know when suits you.

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

                                            Want to support us ?

                                            85
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com