xbox 360 controller & Ubuntu Mate

I’m trying to get a xbox 360 controller to work in Ubuntu Mate 16.04

I followed instructions here

But it’s not working, here’s the output when I run xboxdrv


graeme@Media-Centre:~$ sudo xboxdrv --silent
[sudo] password for graeme: 
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/ 
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de> 
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This program comes with ABSOLUTELY NO WARRANTY. 
This is free software, and you are welcome to redistribute it under certain 
conditions; see the file COPYING for details. 

Controller:        Microsoft Xbox 360 Controller
Vendor/Product:    045e:028e
USB Path:          008:002
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
 Error couldn't claim the USB interface: LIBUSB_ERROR_BUSY
Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.
graeme@Media-Centre:~$ 

Any help would be much appreciated

Graeme

What happens if you run:

sudo xboxdrv --detach-kernel-driver

Source:

graeme@Media-Centre:~$ sudo xboxdrv --detach-kernel-driver
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/ 
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de> 
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This program comes with ABSOLUTELY NO WARRANTY. 
This is free software, and you are welcome to redistribute it under certain 
conditions; see the file COPYING for details. 

Controller:        Microsoft Xbox 360 Controller
Vendor/Product:    045e:028e
USB Path:          008:002
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
 Error couldn't claim the USB interface: LIBUSB_ERROR_NOT_FOUND
Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.
graeme@Media-Centre:~$ 

The problem is worse than it seems when I install ubuntu-xboxdrv I lose normal mouse/keyboard function in Kodi and wipes the SSH & x2go servers including the x2go repo so I’ve now uninstalled ubuntu-xboxdrv, re-added the x2go repo and reinstalled the x2go & ssh servers and everything is back working normally.

I may be wrong but I have a horrible feeling this is an systemd issue and choosing a 16.04 release for this might not have been a good idea

Many thanks

Graeme

You might be right, if I were you I’d go with 14.04 until everyone’s managed to make sure their stuff works properly with systemd

at least 14.04 is rock solid

[EDIT]

Then again you could always switch 16.04 back to upstart instead of systemd … dunno how well it works with all software, but I managed to do it on the PM7 RC with no “apparent” problems for the short while I tested it.

Ok I’ve given up on Ubuntu Mate 16.04 and installed Peppermint 6 but I’m getting a similar problem in as much as although I’m no longer getting any error messages when I install ubuntu-xboxdrv I still cant get the xbox controller to work and it wipes out normal mouse/keyboard control in Kodi

strangely I installed jstest-gtk and the xbox controller is being seen and is functioning inside that application, really all I want is to have Minecraft or Minetest work with the controller and to be honest I’m not sure if that’s even possible, if not then there’s no point wasting my time or anyone elses on this

many thanks

Graeme

Have you tried this
http://pspeter3.com/blog/2011/09/26/playing-minecraft-with-an-xbox360-controller/

I tried following the instructions on the link but no luck, I’ve installed xboxdrv and ran rmmod xpad . I didn’t have a .bashrc file so I created one and copied the config settings over, the problem is when loading xboxdrv I’m getting the following error

graeme@Media-Centre ~ $ sudo xboxdrv --silent --detach-kernel-driver
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/ 
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de> 
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This program comes with ABSOLUTELY NO WARRANTY. 
This is free software, and you are welcome to redistribute it under certain 
conditions; see the file COPYING for details. 

Controller:        Microsoft Xbox 360 Controller
Vendor/Product:    045e:028e
USB Path:          008:005
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
 Error couldn't claim the USB interface: LIBUSB_ERROR_NOT_FOUND
Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.
graeme@Media-Centre ~ $ 

I’ve tried umpteen tutorials but getting nowhere

Graeme

with the controller connected, what’s the output from

lsmod

and

lsusb