• 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

USB Port Order When Using USB Hub

Scheduled Pinned Locked Moved Help and Support
nesusb hubusbcontroller
8 Posts 4 Posters 7.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.
  • P
    psychic2ombie
    last edited by 5 May 2017, 02:23

    So as the title says, I am trying to use two USB hubs that are two port for a Raspberry Pi NES after my attempts to get the original ports working properly failed. So is there a way for RetroPie to automatically determine player order based on what USB port the controller is plugged so you don't need to go to the retro arch configuration to change controllers and if so how would that translate to using a two port USB hub, because I saw an image that detailed the port order when plugging directly into the pi (image shown below), but how would this translate to USB hubs and does RetroPie automatically set what is player one or player 2 or whatever player based on the port the controller is plugged into? Any suggestions?
    alt text

    1 Reply Last reply Reply Quote 0
    • L
      lostless
      last edited by 5 May 2017, 02:28

      when you use a hub, each hub will have its own priority each port. Only way to know is to test an try different controller orders. also each hub will have priority based off the port number of the pi.

      P 1 Reply Last reply 5 May 2017, 03:21 Reply Quote 0
      • P
        psychic2ombie @lostless
        last edited by 5 May 2017, 03:21

        @lostless so if I plugged in a two port USB hub to USB considered port 0 on the pi, on the hub it would have 0 and 1 for player 1 and 2? And does RetroPie set controllers to player numbers based on the USB port priority or must that be set manually

        E 1 Reply Last reply 5 May 2017, 04:42 Reply Quote 0
        • E
          edmaul69 @psychic2ombie
          last edited by 5 May 2017, 04:42

          @psychic2ombie the usb priority will all assign itself based on the ports you plug into. You dont have to assign anything. I will note that there can be an exception. I have an apple iie keyboard that is all recognized as a mouse and a joystick even though it has no functions as either. No matter which of my usb hubs or ports on my pi, it is always seen as joystick 0. Really annoying. Im not sure what gives this device priority over everything on boot. However if i plug controllers in later in lower number ports they will take priority as the first controllers.

          P 1 Reply Last reply 5 May 2017, 04:50 Reply Quote 0
          • P
            psychic2ombie @edmaul69
            last edited by 5 May 2017, 04:50

            @edmaul69 Awesome thanks for helping clear the air on this sort of topic since there isn't really a whole lot of documentation on this sort of stuff. I guess the main problem with getting the original ports working is that they always have to be plugged in and always being configured as player 1 and 2 on boot requiring you to manually set other controllers to player 1 and player 2

            E 1 Reply Last reply 5 May 2017, 05:07 Reply Quote 0
            • E
              edmaul69 @psychic2ombie
              last edited by 5 May 2017, 05:07

              @psychic2ombie they dont have to always be plugged in and you dont have to manually set anything. I leave ports 0 & 1 open in case i need something else to be player 0 & 1. I have 1 device that causes an issue. You most likely never will. If you want devices on your first hub to always be 0 & 1 you can. I use a lot of systems controllers on my setup so i need to have the ability to plug in other controllers in ports 0 & 1 which will then automatically make them controllers 0 & 1. You should never have to assign controllers using the joystick selection runcommand unless you are using bluetooth controllers or have a rare issue like i do.

              1 Reply Last reply Reply Quote 0
              • M
                MRZ999
                last edited by 12 May 2020, 09:16

                Hi
                Is this still a good solution to use? I have an arcad with two Dragonrase USB joysticks but some games are so hard to play with a stick so if I want an easy solution to use another handheld USB controller.
                Cheers

                L 1 Reply Last reply 12 May 2020, 22:11 Reply Quote 0
                • L
                  lostless @MRZ999
                  last edited by 12 May 2020, 22:11

                  @MRZ999 yes this is how retropie still works. Unless your using a older version from around 1 year and half ago. There was a change to how retro arch saw controllers by the order they were plugged In, but was reversed shortly after.

                  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