raelgc / ubuntu_xboxdrv

Ubuntu xboxdrv Integration
https://launchpad.net/~rael-gc/+archive/ubuntu-xboxdrv
GNU General Public License v3.0
164 stars 16 forks source link

wireless controller not calibrating #53

Open atomsk81 opened 8 years ago

atomsk81 commented 8 years ago

xbox wireless controller not responding, I can see the 4 controllers in control pane but none records any short of input from the controller. The joystic appears to be paired with the wireless adapter although the green light is blinking in 2 different sequences. Additionally when the xboxdrv service is started kodi seems to be stuck on the left side of the menu as if the controller is not calibrated. I'm not sure how to troubleshoot this any further.

mainmachine commented 8 years ago

if the LED on the controller is blinking, it isn't connected. With the default /etc/default/xboxdrv configuration, one of the four LEDs will be on, solid, when you have the gamepad connected to the receiver.

I found that I had to disable joystick support in KODI, or set

MIMIC_XPAD=false

to prevent that "stuck" behavior. It's got something to do with the triggers being treated as an axis or something...

mainmachine commented 8 years ago

Have you rebooted since you installed this? IIRC you either need to reboot or do

sudo rmmod xpad

to remove the xpad kernel driver, which conflicts with the xboxdrv/ubuntu-xboxdrv driver. @raelgc - does that look correct to you?

raelgc commented 8 years ago

If I correctly remember, xpad is unloaded and blacklisted during ubuntu-xboxdrv package (and I can allow it again running sudo apt-get purge ubuntu-xboxdrv).

@mainmachine Do you mind to put a info about KODI section in the README file?

atomsk81 commented 8 years ago

thanks for you reply mainmachine, MIMIC_XPAD=false did the trick. Joystic is working in jstest-gtk and it is no longer stuck in kodi. However it's working fine in Steam but not in Kodi , even if it is enabled. Strange thing is that the green light becomes solid for some time but then starts blinking again in circles, then it becomes solid again and so on. yes i'm rebooting every change xpad is not in my system at all so no need to worry about that

raelgc commented 8 years ago

@atomsk81 Can you try put TRIGGERS_AS_BUTTONS to false?

atomsk81 commented 8 years ago

@raelgc tried that, still not working in Kodi (with controller enabled or disabled)

mainmachine commented 8 years ago

@raelgc Sure, please do add the bit regarding the Kodi conflict.

Regarding operation in Steam vs. Kodi - I've had a similar experience using my wireless 360 gamepads. Some games seem to recognize that I've got a wireless 360 controller, and will use their own mapping, possibly for a wired 360 controller which ends up reverting the triggers to an axis. The result of this (as with Kodi) is that the left trigger is detected as an axis constantly "stuck" all the way "left", if you follow me...

In some games, everything just works, while in others I get this weird "trigger/axis/stuck" behavior, and in Steam BP everything just works all the time...

mainmachine commented 8 years ago

I wish Steam would somehow extend the Steam Controller configuration to support ALL controllers, as that works AMAZINGLY well. Being able to drop to the Steam overlay and remap on the fly is incredibly useful...