xbox one controller bug
-
@mitu this happened in the past with the xboxdrv driver and also if you had two janky off brand dragonrise controllers, it treated the controllers as the same controller because they had the same name so one controller would control both. I'm not as familiar with Xbox one controllers but I wonder if it's something similar
Btw I have a bit of a vested interest in this post for... Reasons. Would be interested in helping find a solution
-
Pi Model or other hardware: (B+)
Power Supply used: (5v 1.8A)
RetroPie Version Used 4.4
Built From: (Pre made SD Image on RetroPie website,)
USB Devices connected: none
Controller used: xbox one
error in certain multi player video games one controller controls all players
emulator (all)
I have 4 Xbox one controllers, I've paired them with the Bluetooth in the retropie setup menu, I'm using the lr-mupen64plus core -
the controllers are all named (xbox one wireless) on the controller config screen
-
@aatheronb said in xbox one controller bug:
the controllers are all named (xbox one wireless) on the controller config screen
That's normal - since they all report the same name. As @herb_fargus said - did you install the
xboxdrv
by any chance ?
Does this happen in all games, or only in N64 (SSB) ? Did you do any additional configuration on the system, besides the defaults RetroPie provides ? -
i tried but i couldnt find any guides where they use xbox one controllers in the xboxdrv its all xbox 360 controllers. this problem happens in all emulators that have multiplayer games.
code i usedsudo nano /opt/retropie/configs/all/autostart.sh
then i used
sudo bash -c 'echo 1 > /sys/module/bluetooth/parameters/disable_ertm'
-
OK, so you didn't do any great deal of configuration on your installation. You don't actually need the
xboxdrv
for your controllers to work.
Now, I'm not sure about what model of Pi you're using - see my previous question. If you're using a B+, which is the equivalent of a Pi1, you don't have an onboard Bluetooth adapter, which means you'd be using a BT USB adapter. The 3B+ model has onboard BT. Which model are you using ? (I'm inclined to say 3B+, but a confirmation would be nice).Since your problem is quite peculiar, we'd need a log file and some diagnostic info.
- Run from a command line (or SSH session).
cat /proc/bus/input/devices
and post the output.
- Start a multi-player game, but use the Runcommand launch menu and chose to run your game with Verbose Logging enabled. Exit the game, then get the emulator log file from
/dev/shm/runcommand.log
and post it to pastebin.com so we can take a look.
-
N: Name="Logitech USB Receiver" P: Phys=usb-3f980000.usb-1.2/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C534.0001/input/input0 U: Uniq= H: Handlers=sysrq kbd leds event0 B: PROP=0 B: EV=120013 B: KEY=10000 7 ff800000 7ff febeffdf ffefffff ffffffff fffffffe B: MSC=10 B: LED=1f I: Bus=0003 Vendor=046d Product=c534 Version=0111 N: Name="Logitech USB Receiver" P: Phys=usb-3f980000.usb-1.2/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C534.0002/input/input1 U: Uniq= H: Handlers=kbd mouse0 event1 B: PROP=0 B: EV=1f B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 ffff0001 130f93 8b17c000 677bfa d941dfed 9ed680 4400 0 10000002 B: REL=1c3 B: ABS=1 0 B: MSC=10
-
do you want all the controllers connected
-
@aatheronb Well, yes, the command should have been run with the controllers connected. Right now it only shows the Logitech USB receivers for the keyboard/mouse combo and nothing about the controllers.
-
I: Bus=0005 Vendor=045e Product=02fd Version=0903 N: Name="Xbox Wireless Controller" P: Phys=b8:27:eb:9e:58:59 S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:13/0005:045E:02FD.0004/input/input3 U: Uniq=ec:83:50:77:3e:ba H: Handlers=kbd event3 js1 B: PROP=0 B: EV=1b B: KEY=7fff0000 0 0 0 1000 40000000 0 0 0 0 B: ABS=30627 B: MSC=10 I: Bus=0005 Vendor=045e Product=02fd Version=0903 N: Name="Xbox Wireless Controller" P: Phys=b8:27:eb:9e:58:59 S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:045E:02FD.0005/input/input4 U: Uniq=9c:aa:1b:9a:1b:bf H: Handlers=kbd event2 js0 B: PROP=0 B: EV=1b B: KEY=7fff0000 0 0 0 1000 40000000 0 0 0 0 B: ABS=30627 B: MSC=10 I: Bus=0005 Vendor=045e Product=02fd Version=0903 N: Name="Xbox Wireless Controller" P: Phys=b8:27:eb:9e:58:59 S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0007/input/input6 U: Uniq=ec:83:50:a0:1c:4f H: Handlers=kbd event4 js2 B: PROP=0 B: EV=1b B: KEY=7fff0000 0 0 0 1000 40000000 0 0 0 0 B: ABS=30627 B: MSC=10 I: Bus=0005 Vendor=045e Product=02fd Version=0903 N: Name="Xbox Wireless Controller" P: Phys=b8:27:eb:9e:58:59 S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:14/0005:045E:02FD.0009/input/input8 U: Uniq=ec:83:50:a0:1d:18 H: Handlers=kbd event5 js3 B: PROP=0 B: EV=1b B: KEY=7fff0000 0 0 0 1000 40000000 0 0 0 0 B: ABS=30627 B: MSC=10
-
and when i put the game on verbose logging the controllers didnt even work its probably just the emulator
i normaly use gles2n64 instead of the Ir emulator -
-
@aatheronb That's a file you're supposed to copy. Run this
cp /dev/shm/runcommand.log $HOME/RetroPie/roms
Then open the ROM folder (with all the systems) and you'll find the file. Open it with a text editor (Notepad) and upload the contents to pastebin.com, providing the resulting URL afterwards.
-
Hm, I think your controllers might be better served by using the
xpadneo
driver, which is not currently part of RetroPie's installation.Can you try installing it from https://github.com/atar-axis/xpadneo ? Follow the Installation steps from the project's page. Exit Emulationstation and at the command prompt, type the install commands.
git clone https://github.com/atar-axis/xpadneo.git cd xpadneo ./install.sh
Reboot your system (
sudo reboot
), then go into the RetroPie setup script and follow the steps to pair a Bluetooth controller - remove any previously configured gamepads first. After you pair again the controllers, configure one of them in Emulationstation (doesn't matter which), then try and start a game to see if all of them work at the same time correctly. -
THANK YOU it worked perfectly
-
@aatheronb Ha, what do you know, it worked. I guess it's time we add it to RetroPie's list of drivers. Thanks for the feedback.
Give it a few more tries with other systems (besides N64) - maybe a fighting game like Street Fighter - and see how it behaves. -
@mitu it made some mention of header updates, do you think those will be necessary with the latest rasbian kernel updates?
-
@herb_fargus I actually didn't install this - since I don't have an Xbox controller - but I followed the development and updates.
I ran the install myself just a minute ago and didn't notice any messages about headers. I did notice it saidKernel preparation unnecessary for this kernel. Skipping...
which means it didn't need to download the kernel headers. Maybe on @aatheronb's system they weren't installed and the script installed them (via
dkms
- the package israspberrypi-kernel-headers
) - in which case they'll be updated anytime an update will be available in Raspbian, so I wouldn't worry about it.Since the module is added via
dkms
, this should take care of kernel upgrades (i.e. the module is re-compiled on upgrade and added to the new kernel).In my system, probably the kernel headers package was added from my tests with the
xpad
driver (which automatically installs theraspberrypi-kernel-headers
package).EDIT: The author is trying to upstream the driver (Linux kernel), so at some point it might be included in the stock kernel. But I wouldn't expect this to land in Stretch, more likely will be in Buster.
-
correction does not work
-
@mitu
can there be a fix for the names of the controllers since they are the same name
errors
control's changed on each game pad
players switched controllers
so now player 2 is player 4 etc...
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.