ubuntu_xboxdrv
ubuntu_xboxdrv copied to clipboard
Issues with Xbox 360 USB Controller and D-Pad
I have been very successful in getting the xbox360 controller to work on Ubuntu 14.04.3 LTS.
Once I set TRIGGER_AS_BUTTON=false
I had no issues with any buttons, sticks or dpad in Kodi 15/XMBC
However, once I fire up Steam in Big Picture mode, I lose the dpad competely. but only the dpad.
jstest-gtk shows everything working. So I assume its something wrong with Steam itself.
However, I was able to made the dpad work once by editing the /etc/init/xboxdrv.conf
directly and making the following change:
--ui-buttonmap du=KEY_UP --ui-buttonmap dd=KEY_DOWN --ui-buttonmap dl=KEY_LEFT --ui-buttonmap dr=KEY_RIGHT
this was added the xboxdrv line like:
xboxdrv --daemon --silent --dbus disabled --ui-buttonmap du=KEY_UP --ui-buttonmap dd=KEY_DOWN --ui-buttonmap dl=KEY_LEFT --ui-buttonmap dr=KEY_RIGHT $XBOXDRV_OPTIONS $PAD_OPTIONS $CONTROLLER0_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER1_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER2_OPTIONS--next-controller $PAD_OPTIONS $CONTROLLER3_OPTIONS
After making the above change which I assume is related to the DD, DU, DL, DR bindings being different then whats loaded by default, the dpad now worked BUT I lost all other bindings.
I then tried adding only these changes to /etc/defaults/xboxdrv
XBOXDRV_OPTIONS="--ui-buttonmap DU=KEY_UP --ui-buttonmap DD=KEY_DOWN --ui-buttonmap DL=KEY_LEFT --ui-buttonmap DR=KEY_RIGHT"
I also tried with a --ui-clear in the beginning
My question is this: How is the dpad configured by default and is there a way to switch that binding from its default to these DU, DD, DL, DR KEY_ bindings?
Hi @jreckner, thanks for digging on this!
We're just using the mimic_xpad
as true
.
Can you open a pull request with all these edits? So I can update the package.
I never quite got it working, the dpad worked but all other mappings were missing.
I think to properly get everything working I would need to create a mapping for all Xbox360 Controller buttons and axis to intercept all the mappings supplied by mimic_xpad
as true
. It would be easier if there was a way to generate a config equal to the mimic_xpad config and then simply alter the dpad buttons. I don't know how to do this. :(
However, I decided to checkout the steamos-xpad-dkms package and it worked out of the box for me, therefore I have not pursued a xboxdrv solution any further.
Same here. I could get everything working except for the dpad under steam after setting mimic_xpad to true and trigger_as_button to false.
Curiously, the mappings under the Joystick settings app are correctly, and if I run sudo xboxdrv via the command line with these options and set the device name to "Xbox 360 Wireless Controller (XBOX)" (exactly the name given by xpad) then it works under Steam, but not here.
Given that Steam is a pretty major usage of xbox360 controllers under Linux, both native and streaming, this is a bit of a show stopper. :(