Configure 2 identical controllers differently
-
@xadox said in Configure 2 identical controllers differently:
think I will give the xboxdrv a try
You might first see if you can discover any other possible solutions for changing the ID name. xboxdrv will definitely do the job, but it's a bit like taking a howitzer to a housefly.
-
@mediamogul Learing never hurts :)
Besides maybe I could also solve the problem with the
8BitDo SN30 PRO
that the left and right trigger buttons are not working in ES or RetroArch. -
delete the config that getting used or move it somewhere safe so there is no conflict
-
@mediamogul After some problems in getting
rc.local
running on Ubuntu 16.04 I was able to create the configs for the two Receivers.Both Receivers are getting individual Names and Configs in ES an RR, now.
The problem with the trigger buttons on the SN30 Pro could be solved, also.But I have no clue how to start
xboxdrv
with the configs for the two Receivers at once. I am only able to startxboxdrv
for one controller at once. -
Without seeing the script I can only guess, but it could be that xboxdrv is trying to call out to the same controller twice due to it having the same name. If this is the case, you could repeat the trick you were using earlier to create a unique symlinked event with a udev rule and point one of the xboxdrv launch instances to it. For troubleshooting, I always like to manually launch my xboxdrv instances from a terminal where I can view and correct any errors before I move them into a script.
-
@mediamogul At the moment I am starting xboxdrv manually from terminal.
/opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-path/pci-0000:02:03.0-usb-0:2.1:1.0-event-joystick \ --silent \ --detach-kernel-driver \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "8BitDo SFC30" \ --evdev-absmap ABS_X=dpad_x,ABS_Y=dpad_y \ --evdev-keymap BTN_EAST=a,BTN_SOUTH=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_SELECT=back,BTN_START=start \ --dpad-only \ --ui-axismap lt=void,rt=void \ --ui-buttonmap tl=void,tr=void,guide=void \ --evdev /dev/input/by-path/pci-0000:02:03.0-usb-0:2.2:1.0-event-joystick \ --silent \ --detach-kernel-driver \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --trigger-as-button \ --device-name "8BitDo SN30 Pro" \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap BTN_EAST=a,BTN_SOUTH=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \ &
But
xboxdrv
only creates the first virtual controller.
The second one is beeing ignored.Starting
xboxdrv
two times with each config does not work, since I am only able to start the process once. -
See if they'll work in this format
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-path/pci-0000:02:03.0-usb-0:2.1:1.0-event-joystick \ --silent \ --detach-kernel-driver \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "8BitDo SFC30" \ --evdev-absmap ABS_X=dpad_x,ABS_Y=dpad_y \ --evdev-keymap BTN_EAST=a,BTN_SOUTH=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_SELECT=back,BTN_START=start \ --dpad-only \ --ui-axismap lt=void,rt=void \ --ui-buttonmap tl=void,tr=void,guide=void \ & sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-path/pci-0000:02:03.0-usb-0:2.2:1.0-event-joystick \ --silent \ --detach-kernel-driver \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --trigger-as-button \ --device-name "8BitDo SN30 Pro" \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap BTN_EAST=a,BTN_SOUTH=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \ &
-
@mediamogul Working, thx!
-
Ah, nice. Glad to hear it.
-
Using
xboxdrv
solves most of the problems I had.
But now there are other problems occuring because ofxboxdrv
.Because xboxdrv creates a virtual gamepad, RR does not use it at first place.
So I hat to switch the controller in RR.Another problem is the hotkey button. While the buttons seems to be mapped correctly in RR it does not work right.
Pressing B, START, X directly uses the hotkeys instead of the normal button press.
I was able to solve this after setting the hotkey button again in RR.@mediamogul Like you already mentioned. It makes the whole configuration more complicated. Always have to remeber or make a note of it how
xboxdrv
was configured :)I will search on another solution without the use of
xboxdrv
. -
@xadox said in Configure 2 identical controllers differently:
I will search on another solution without the use of xboxdrv.
If you find anything, please post back. I'm always interested in alternatives to these types of problems.
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.