Xbox 360 usb driver

Post here to get support
Post Reply
giros
Beginner
Posts: 4
Joined: Sat Jan 28, 2017 11:24 am

Xbox 360 usb driver

Post by giros »

Hello ~

I need help ..
My laptop is macbook white old model, and install ubuntu 16.04 for lps
cfclient, firmware upload, installing ros is passed..ok.

but. cannot install xbox 360 gamepad usb driver.
I followed these link.

https://launchpad.net/~rael-gc/+archive ... tu-xboxdrv
http://askubuntu.com/questions/828768/u ... s-joystick

and type these commands.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
sudo apt-add-repository -y ppa:rael-gc/ubuntu-xboxdrv
sudo apt-get update
sudo apt-get install ubuntu-xboxdrv


but lsusb list does not included xbox 360, it just Microsoft corp
as shown in attached image


what should I do. ?
is there any different driver for ubuntu 16.04
or do I have to set another laptop up for crazyflie lps?

thanks
Attachments
lsusb list not include xbox 360.
lsusb list not include xbox 360.
xbox 360 not found
xbox 360 not found
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Xbox 360 usb driver

Post by arnaud »

you do not need a specific driver in Linux for the xbox-360 gamepad (this is the good thing with linux, driver eventually gets merged in the linux source code and so peripheral are supported out of the box eventually :).

If you want to test that the gamepad working, you can use jstest-gtk to test the gamepad axis and buttons:

Code: Select all

sudo apt-get install jstest-gtk
jstest-gtk
jstest.png
giros
Beginner
Posts: 4
Joined: Sat Jan 28, 2017 11:24 am

Re: Xbox 360 usb driver

Post by giros »

Thank you for introducing JStest GTK tool.

but my macbook with ubuntu cannot recognize XBOX 360 automatically.
and, I fomated my macbook and reinstall ubuntu 16.04 again cuz I want to feel clean..

jstest shows two joystick preference. 1 is appmc, and 2 is MS X BOX one not 360.

I Attatched screenshot which shows my status.

do I have to install x box 360 driver myself?
Attachments
X-BOX one not 360
X-BOX one not 360
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Xbox 360 usb driver

Post by arnaud »

I have Ubuntu 16.04 and an official Xbox360 gamepad and it works out of the box, so no need of extra drivers.

From the look of your screenshot it looks like you actually have an xbox one gamepad.

If you have problems using it with ROS it might be that your mac has another joystick (certainly the accelerometer for the harddrive exposed as a joystick, this happens with some PC too). So you need to use /dev/input/js1 instead of /dev/input/js0. See this answer: viewtopic.php?f=6&t=2212&p=11173&hilit= ... +js#p11260. You can add "joy_dev:=/dev/input/js1" to the launchfile command-line.
Post Reply