2010-09-14, 19:55
Anyone have any ideas on this? I have multiple 360 controllers and am ready to bring together my perfect emulator box (and finally give the heave-ho to the modded xbox), but this is stopping me for obvious reasons.
alexpigment Wrote:Anyone have any ideas on this? I have multiple 360 controllers and am ready to bring together my perfect emulator box (and finally give the heave-ho to the modded xbox), but this is stopping me for obvious reasons.
alexpigment Wrote:I'm not sure which version of the xboxdrv I haveIt should print that right at the top when you start it or when you give it the --version flag. Multiple wireless controllers should work with "--wid N", if you have a mix of wired and wireless you need to mix in some "--id N", there is a "--list-controllers" option that should show you what is available on your system.
grumbel Wrote:It should print that right at the top when you start it or when you give it the --version flag. Multiple wireless controllers should work with "--wid N", if you have a mix of wired and wireless you need to mix in some "--id N", there is a "--list-controllers" option that should show you what is available on your system.
Also, if it doesn't work, knowing the error message would be nice.
USB Device: 002:002
Controller: "Microsoft Xbox 360 Wireless Controller (PC)" (idVendor: 0x045e, idProduct: 0x0719)
Wireless Port: 4
Controller Type: Xbox360 (wireless)
Deadzone: 12000
Trigger Deadzone: 0
Rumble Debug: off
Rumble Speed: left: -1 right: -1
LED Status: 2
Square Axis: no
ButtonMap: none
AxisMap: none
RelativeAxisMap: none
AutoFireMap: none
RumbleGain: 255
ForceFeedback: disabled
xboxdrv-linux-0.4.8: src/xbox360_wireless_controller.cpp:37: Xbox360WirelessController::Xbox360WirelessController(usb_device*, int): Assertion `controller_id >= 0 && controller_id < 4' failed.
./xboxdrv_for_XBMC_live.9.04.jaunty.sh: line 11: 1529 Aborted ./xboxdrv-linux-0.4.8 --wid 4 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis
Quote:xboxdrv-linux-0.4.8: src/xbox360_wireless_controller.cpp:37: Xbox360WirelessController::Xbox360WirelessController(usb_device*, int): Assertion `controller_id >= 0 && controller_id < 4' failed.Your argument must be between 0 and 3.
grumbel Wrote:Your argument must be between 0 and 3.
USB Device: 002:002
Controller: "Microsoft Xbox 360 Wireless Controller (PC)" (idVendor: 0x04 5e, idProduct: 0x0719)
Wireless Port: 1
Controller Type: Xbox360 (wireless)
Deadzone: 12000
Trigger Deadzone: 0
Rumble Debug: off
Rumble Speed: left: -1 right: -1
LED Status: 2
Square Axis: no
ButtonMap: none
AxisMap: none
RelativeAxisMap: none
AutoFireMap: none
RumbleGain: 255
ForceFeedback: disabled
Error: Error couldn't claim the USB interface: Device or resource busy
Try to run 'rmmod xpad' and start xboxdrv again.
xbmc@XBMCLive:~/xboxdrv_for_XBMC_live.v1$
alexpigment Wrote:Error: Error couldn't claim the USB interface: Device or resource busy
Try to run 'rmmod xpad' and start xboxdrv again.
xbmc@XBMCLive:~/xboxdrv_for_XBMC_live.v1$
[/CODE]
Any ideas?
grumbel Wrote:Start multiple xboxdrv instances, one for each controller. First one with --wid 0, second with --wid 1, ...
checkup Wrote:Yes. You have to blacklist the xpad driver. xboxdrv can not occupy the ressource when xpad already has done so.
You can either blacklist xpad, or you put 'rmmod xpad' in a startup script.
alexpigment Wrote:This is exactly what I tried to do, which caused me to post here recently. See post #60. I'm either doing it wrong, or that's not working. Do I need to specify multiple lines in the SH file? Do I need to make 4 separate SH files?You need to just start four instances. If you want to wrapper it up in a .sh make sure that you *really* start all for, as when you just list them one after the other only the first one will get started and the execution off the later onces will wait for the first one to complete. To work around that, put them in the background with &, i.e.:
./xboxdrv-linux-0.4.8 --wid 0 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 1 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 2 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 3 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
alexpigment Wrote:Is my ampersand in the right place?& goes at the end, so yes, looks correct