USB Port Order When Using USB Hub
-
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?
-
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.
-
@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
-
@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.
-
@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
-
@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.
-
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 -
@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.
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.