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

    Newb with Player 2 not being 'seen' on Picade/Retropie

    Scheduled Pinned Locked Moved Help and Support
    control issue
    47 Posts 2 Posters 3.8k 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.
    • mituM
      mitu Global Moderator @dw89
      last edited by mitu

      Ok...slightly confusing as to why Player X is coming up twice?

      It's one device, but it advertises itself both as a gamepad and keyboard. The 2nd keyboard device (gpio_keys) is the GPIO connected HAT.

      I tried to find the file you said (i.e. \retropie\configs\all\retroarch\autoconfig) but I couldn't find it either in the Pi home directory or from root. So I'm not sure what I am doing there...sorry.

      My modifications were intended for the retroarch.cfg file that you posted previously - from \\retropie\configs\all\retroarch.cfg. Hopefully, switching the keyboard controls from P1 to P2 would enable you to use the USB controller as P1 and the Hat as P2.

      So, I tried running it and when I did it allows me to select which 'user' for whichever player....but when I do that the only option is 'Player X'...there's no original Picade HAT option for P1 (i.e. the Keyboard I set up).

      That's because the Hat is not detected as a gamepad and the script only works with gamepads, not with keyboards.

      1 Reply Last reply Reply Quote 0
      • D
        dw89
        last edited by

        Hi Mitu,

        Hoping you are still there and kindly able to help? Sorry for the delay, Covid and having to give system back. Just got it back with the hope to carry on/finally fix it.

        So, we are where we were with Main board (GPIO) and the X-Hat and both are controlling P1 and P2 is non-existant.

        So, all I need to know (and its where we left off) is how to assign the GPIO to P2.

        Any help appreciated, I have it all setup and ready to go.

        KR

        Dw;)

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

          @dw89 said in Newb with Player 2 not being 'seen' on Picade/Retropie:

          So, all I need to know (and its where we left off) is how to assign the GPIO to P2.

          Re-read the topic and see if you can implement the modifications I posted (the lines added to retroarch.cfg).

          D 2 Replies Last reply Reply Quote 0
          • D
            dw89 @mitu
            last edited by

            @mitu

            Evening:) I believe I did this but give me 30mins and I'll be back with an answer.

            TY Sir๐Ÿ‘๐Ÿป

            1 Reply Last reply Reply Quote 0
            • D
              dw89 @mitu
              last edited by

              @mitu

              Hi Mitu, adding changes to P2 as we speak. Can you confirm; do I change P1 inputs now to 'nul'?

              Thanks๐Ÿ‘๐Ÿป

              1 Reply Last reply Reply Quote 0
              • D
                dw89
                last edited by

                Wow! Progress at least. I tried them all to see what would happen (both p1 and p2 as set and then removing from P1 and setting P2 only).

                All based on Mario Kart Snes in 2p mode:

                So 1) (With Both P1/P2 set): no change at all to default. P1 works but no P2
                2) (make P1 'nul' and set P2 as per P1 previous) Joy! But not quite there. Both P1 and P2 works. I can set each driver etc with respective player. 'However', very oddly, when driving starts P1 controls BOTH P1 and P2 characters, but P2 controls only works, correctly, for P2.

                So, getting there but perhaps no cigar quite yet? So, big thanks thus far!!

                KR, dw๐Ÿ‘๐Ÿป

                1 Reply Last reply Reply Quote 0
                • D
                  dw89
                  last edited by

                  Mitu,

                  I've tried other games with same effect.

                  Contra, for example, Joystick 1 controls both players, 2 just P2. So weird. By the way, every time a game loads It shows, at bottom of screen, that Picade-X USB connected to Port 0 (zero). Just fyi in case it helps.

                  KR

                  Dw๐Ÿ‘๐Ÿปโ˜บ๏ธ

                  1 Reply Last reply Reply Quote 0
                  • D
                    dw89
                    last edited by

                    Still able to help Mitu? Unsure what to do at this point.

                    KR

                    Dw๐Ÿ˜‰๐Ÿ‘๐Ÿป

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

                      Can you post the current configuration from retroarch.cfg that you have now ?
                      Do you also have the joystick-selection script installed ? If so, then uninstall it and try re-testing again.

                      D 4 Replies Last reply Reply Quote 0
                      • D
                        dw89 @mitu
                        last edited by

                        @mitu

                        Hello Sir๐Ÿ˜‰

                        I will post up the .cfg after Ive eaten for you to have a look at๐Ÿ‘๐Ÿป

                        Ive never had that joystick script installed as far as I know so Im hopefully good on that. If I ever did, from the past, this is a new rebuild since the back end of last yr. It's all completely as per default Retropie install apart from the retroarch.cfg changes you asked me to make. Will msg back once pastebin's up.

                        KR, dwโ˜บ๏ธ

                        1 Reply Last reply Reply Quote 0
                        • D
                          dw89 @mitu
                          last edited by dw89

                          @mitu

                          Here we go: https://pastebin.com/KbzEVAYd

                          All I've done, from default, is change P1 to 'nul' and moved all those relevant codes from P1 to P2.

                          Again, setup is Pi4, Picade HAT (so GPIO seen as Keyboard), Picade-X USB Daughter (seen as Gamepad) and then ran Emulation Station. When I did that, without USB board, it registered codes for GPIO as keyboard (P1) and then I did the same by attaching USB board (P2) seen as Gamepad. I could see, when doing in EmulationStation, that Keyboard appropriated codes like 'CTRL' etc, whereas Gamepad was numbers.

                          However, when you start 'playing' it only shows Picade-X USB Hat as player Port #0 at bottom of screen and no mention of Keyboard at all. Then, conversely, looking at retroarch.cfg, you see only details for P1 (now moved to P2) showing codes and nothing for USB. Very, very odd.

                          Anyway, that's where I am at. As said before, both sets of players are using hard controls i.e. buttons and joysticks connected to USB Hat and GPIO Hat. Perhaps I need to add the USB codes now to P1 in retroarch.cfg? Not that I know what they are of course, lol.

                          KR, dw:)

                          1 Reply Last reply Reply Quote 0
                          • D
                            dw89 @mitu
                            last edited by

                            @mitu

                            I also just tried the jstest (worked that out, lol) and it's kinda weird.

                            JS0 detects Picade-X USB Hat only and it I use buttons etc they respond when used on screen. Oddly when I use P2 with JS0 running I see odd control characters at the 'end' of the line 'not' corresponding to the normal 'places' in the script.

                            JS1+ brings back nothing.

                            So GPIO main hat seems undetected in this yet is the only codes (now on P2) in Retroarch.cfg

                            'I' personally don't understand.

                            KR, dw;)

                            mituM 1 Reply Last reply Reply Quote 0
                            • D
                              dw89 @mitu
                              last edited by dw89

                              @mitu

                              Finally, if I go to /dev/input and list files with both main Hat and USB Hat installed I get the following files shown:

                              • mice
                                -event2
                              • event3
                              • js0
                              • event1
                              • event0
                              • by-path
                              • by-id

                              And if I remove the USB Hat (pull plug out) all that remains is:

                              • mice
                              • event2
                              • event3
                              • by-path
                              • by-id

                              And 2/3 and mice may be related to the usb keyboard I plugged in to test jstest. Hmm.??

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

                                @dw89 said in Newb with Player 2 not being 'seen' on Picade/Retropie:

                                So GPIO main hat seems undetected in this yet is the only codes (now on P2) in Retroarch.cfg

                                I think that's normal, since the GPIO doesn't get detected as a joystick, but as keyboard - there won't be a /dev/input/js1 device created for it.

                                Looking at the configuration file, I see that P1 and P2 are set on the same gamepad (first):

                                input_player1_joypad_index=0
                                input_player2_joypad_index=0
                                

                                so that's probably why P1 and P2 are controller by the joystick.

                                I'd advise you to use the default retroarch.cfg that comes with RetroPie and don't use 'Save Configuration' from the RGUI. Copy the retroarch.cfg.rp-dist over retroarch.cfg, do the modifications for P2 in the file, then try again.

                                D 4 Replies Last reply Reply Quote 0
                                • D
                                  dw89 @mitu
                                  last edited by

                                  @mitu

                                  Good morningโ˜บ๏ธ. Well, Id never have spotted that.

                                  I'll do what you said and report back. Only thing I would say is that 'all' P1 controls were also controlling P2, not just the joystick. I don't know if that parameter is an overriding one (like parent/child) or not of course but just thought best to confirm ie

                                  In Mario Kart:

                                  P1 Joystick controls P2 joy simultaneously
                                  P1 Btn A controls speed on P2 simultaneously

                                  Yet

                                  P2 just controls P2.

                                  KR, dw

                                  Will update when done

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dw89 @mitu
                                    last edited by

                                    @mitu

                                    Hi again, Ive just used every find command I can think of and I cannot find the file you mentioned anywhere in the system.

                                    There's a retroarch-core-options.cfg but not the one you mentioned. So Im not sure where to go here now?

                                    KR, dw๐Ÿ˜‰

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dw89 @mitu
                                      last edited by

                                      @mitu

                                      Well, this has just got worse๐Ÿคฏ

                                      'Trying' to figure this out (and having saved all my iterations of config files - all over cli of course) its now broken it more๐Ÿ˜” Im back to P2 not working at all.

                                      1. First I tried to find file (dist one), couldn't so went through Retroarch menus in gui and defaulted the retroarch.cfg file. Went back in and could see it had made many changes (inc the joystick one you mentioned). So, I then made changes to it to 'nul' all the P1 controls and move them to P2 (as previously). I then rebooted and P1/P2 work in the menus but, in any game, only P1 works; nothing at all for any P2 controls.

                                      2. So, as it didnt work, I moved back to my previous .cfg where P2 worked but P1 controlled both and....it's having no effect at all any more...its just the same as 1) above.

                                      This is driving me nuts. Any suggestions appreciated. I can, of course, pastebin the contents if you like but Ive done exactly as before so Im just lost.

                                      KR, dw๐Ÿ˜‰

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dw89 @mitu
                                        last edited by

                                        @mitu By the way, I'll do anything you suggest to fix this. If you want me to rebuild and start again and do a certain process; I don't mind. I just don't know why it's doing what it's doing (ie why P2 now doesn't work when I copied file back!).

                                        Cheers

                                        Dw๐Ÿ˜‰

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

                                          How are you editing the files ? Do you have file share access from a computer/PC in the same network (i.e. can you open \\retropie\roms) ?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            dw89 @mitu
                                            last edited by dw89

                                            @mitu

                                            Hi mate.

                                            Im doing it directly via cli. Ie Pi plugged into TV (hdmi) and going to cli via F4 from keyboard. All normal as far as I know? So I then use nano to open/edit. Sometimes vi but mostly nano.

                                            HTH

                                            Dw๐Ÿ˜‰

                                            PS Im an It guy, just not a Retropie expert;)

                                            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.