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

Cannot use xboxdrv #26

Closed Xzereus closed 9 years ago

Xzereus commented 9 years ago

Ubuntu 12.10, just installed latest xboxdrv, so it should be up to date.

When attempting the command sudo xboxdrv, I get the following:

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 Wireless Controller
Vendor/Product:    045e:0291
USB Path:          003:007
Wireless Port:     0
Controller Type:   Xbox360 (wireless)

-- [ 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.

I try rmmod xpad:

rmmod: ERROR: Module xpad is not currently loaded

I try 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 Wireless Controller
Vendor/Product:    045e:0291
USB Path:          003:007
Wireless Port:     0
Controller Type:   Xbox360 (wireless)

-- [ 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.
raelgc commented 9 years ago

If you installed the package ubuntu-xboxdrv, you don't need to start xboxdrv: a service is created and automatically started. Just plug/pair your controller.

If you want to use xpad module, remove this package completely: sudo apt-get purge ubuntu-xboxdrv.

uncolober commented 9 years ago

I had the same problem and turns out I had an utility called ubuntu-xboxdrv installed alongside the normal xboxdrv, which was the source of the problem. I completely removed ubuntu-xboxdrv and reinstalled xboxdrv and that solved the problem.

(I also didn't even have xpad installed, and of course xboxdrv --detach-kernel-driver did nothing.)