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

    Gamepad and hub not detected

    Scheduled Pinned Locked Moved Help and Support
    gamepadpadnotdetectedusbhub
    13 Posts 3 Posters 1.5k 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.
    • N
      nielogiczny
      last edited by

      Hello everyone! My first post here. Have been looking for help in many places but with no result so I decided to describe problem here.

      I made own designed gamepad and usb hub but both of them are not detected in Retropie. However they are detected and works well on Windows and Raspbian systems.

      I am not a programmer but someone told me it's a drivers/modules problem and it's needed o add those drivers/modules to Retropie. On the screenshot you can see detection test on Raspbian and on the photos what microcontrollers are used for this project. Microcontroller used in gamepad is STM32F070C6T6. In hub are used microcontrollers MA3232C and CY7C65632.

      Anybody have idea how to make those devices detectable? I'll be very glad for help.

      Screenshot and boards photos here: https://imgur.com/a/YCVQqOM

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

        @nielogiczny the Retropie RPI image is based on Raspbian Lite, so if the device works in Raspbian - as a gamepad - it should work in Retropie.
        How are you testing that your device is working as a gamepad in Raspbian ?

        1 Reply Last reply Reply Quote 0
        • N
          nielogiczny
          last edited by

          I checked list of devices detected in Raspbian - both gamepads and hub are detected (you can check on attached screenshot). Btw. @mitu you say RetroPie is based on Raspbian Lite. Can it be fault of drivers included in Lite version comparing to full Raspbian?

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

            @nielogiczny the screenshot you posted just shows some device names, not the gamepad functionality. Did you test that the gamepad is working, under Raspbian?

            In Linux, most drivers are already included with Linux kernel - Retropie has the same kernel as the Raspbian version it's based on, regardless of the Lite/DEsktop version. What versions of Raspbian/Retropie are you teating ?

            1 Reply Last reply Reply Quote 0
            • N
              nielogiczny
              last edited by

              @mitu I tested gamepad and hub fully on Windows 10 - works good. What I tested on Raspbian is just detecting devices. I have no knowledge of commands so didn't test fully on Raspbian.

              I used RetroPie v4.5.1 as well as 4.4 and Raspbian released 2019-07-10 with kernel version 4.19 from this site: https://www.raspberrypi.org/downloads/raspbian

              Gamepad can be reprogrammed or get different chip if this solve the problem.

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

                @nielogiczny you can test the gamepad under Linux with the jstest command, from the command line. It should be installed on both Raspbian and Retropie. Look for its usage in the docs, should help you decide if the gamepad is functional.

                1 Reply Last reply Reply Quote 0
                • N
                  nielogiczny
                  last edited by

                  I did jstest as you suggested @mitu - results on screenshots: https://imgur.com/a/SCgEbxG

                  During jstest 2 devices were connected: Microsoft keyboard with mousepad on it and gamepad. Hub was not connected.
                  What I found on the internet, there should be more results after typing jstest / dev/input/js0 and js1 but it ends here for me.

                  Btw. because my Raspberry Pi board have only 1 usb input, I used Orange Pi for this test which have 3 usb inputs.

                  Have you got idea what to do next?

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

                    @nielogiczny the command you ran didn't show if the gamepad is functional or not - the command was not found. Please use the Retropie image and test with that image, OrangePis are a different SBCc.

                    1 Reply Last reply Reply Quote 0
                    • N
                      nielogiczny
                      last edited by

                      @mitu I'll look for some way. Used Orange Pi for this test because my Raspberry Pi Zero and A+ have only 1 usb input. Need keyboard and gamepad connected at the same time to make this test. Otherwise keybord doesn't work when connected through hub.

                      1 Reply Last reply Reply Quote 0
                      • N
                        nielogiczny
                        last edited by

                        Update. I managed to do jstest properly on RetrorangePi and gamepad works. Every pressed button have been noticed on the screen.

                        Still the problem is gamepad isn't detected on main screen after launch and communicate "no gamepad detected" appears.

                        Screenshot showing test result: https://imgur.com/a/mNWTkY7

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

                          @nielogiczny I know it sounds simple, but have you tried holding a button on the controller at that screen to detect gamepads? as far as I can tell, nothing shows up as detected until you hold a button on one of your controllers (gamepads).

                          1 Reply Last reply Reply Quote 0
                          • N
                            nielogiczny
                            last edited by

                            @Dopy25 of course :)

                            Good news! I solved the problem and gamepad works now!

                            I added rule into catalogue: /etc/udev/rules.d/99-gamepad.rules including this line: SUBSYSTEM=="input", ATTRS{name}=="NAME OF DEVICE", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

                            Thanks @mitu and @Dopy25 for replies. Cheers!

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Dopy25 @nielogiczny
                              last edited by

                              @nielogiczny Makes sense! I had to do that with the 8-bitdo SNES Bluetooth controller. The setup script had it as an option. Before that, only one or 2 of the key presses would do anything, and it registered as a keyboard when it did.

                              Glad you got it working!

                              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.