raelgc / ubuntu_xboxdrv

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

4 Controllers always showing #68

Open massatt212 opened 5 years ago

massatt212 commented 5 years ago

if their a way to disable controllers until they are plugged in ?

raelgc commented 5 years ago

@massatt212 Well, I know it's a weird behavior, but this service is starting xboxdrv with the possibility of 4 gamepads getting connected. The alternative would be create a dbus listener and then start a xboxdrv for each controller connected.

raelgc commented 5 years ago

Something similar was tried in #37 by @gyates100895.

BurninTurtles commented 5 years ago

37 is quite old, written for Upstart. I have a repo for a systemd version that does the same behavior as #37 however I haven't maintained it since roughly 16.10(?). Check it out, it worked for me back then but it's definitely not good for a release.

https://github.com/gyates100895/systemd-xboxdrv

pietropier1 commented 2 years ago

Hi,

I'm trying to solve the same problem. On my system I only use one joystick and would like to predictably know where to find it. I tried removing all the --next-controller flags from the /lib/systemd/system/xboxdrv.service. As a result, I do get only one device option instead of 4, i.e. /dev/input/js0, but it looks like sometimes the joystick although plugged in is not mapped there.

Thanks in advance for any pointer.