xbox controller won't work

The large desktop joystick works perfectly and creates the js0 file. But a wired and a wireless Xbox controller won’t create this js0 file, even though they seem to be recognized by the system when I check with lsusb. Here is syslog data after plugging in the wireless controller:

Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.296147] usb 1-3.2: new full-speed USB device number 9 using xhci-tegra
Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.329882] usb 1-3.2: New USB device found, idVendor=046d, idProduct=c21f
Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.337030] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.345064] usb 1-3.2: Product: Wireless Gamepad F710
Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.350499] usb 1-3.2: Manufacturer: Logitech
Dec 12 11:47:50 tegra-ubuntu kernel: [ 134.355425] usb 1-3.2: SerialNumber: 72A59840
Dec 12 11:47:51 tegra-ubuntu mtp-probe: checking bus 1, device 9: “/sys/devices/70090000.xusb/usb1/1-3/1-3.2”
Dec 12 11:47:51 tegra-ubuntu mtp-probe: bus: 1, device: 9 was not an MTP device
Dec 12 11:47:51 tegra-ubuntu ofonod[789]: ofonod[789]: plugins/udevng.c:check_usb_device() usb [046d:c21f]
Dec 12 11:47:51 tegra-ubuntu ofonod[789]: plugins/udevng.c:check_usb_device() usb [046d:c21f]
Dec 12 11:47:52 tegra-ubuntu ofonod[789]: ofonod[789]: plugins/udevng.c:check_usb_device() usb [(null):(null)]
Dec 12 11:47:52 tegra-ubuntu ofonod[789]: plugins/udevng.c:check_usb_device() usb [(null):(null)]
Dec 12 11:47:53 tegra-ubuntu ofonod[789]: ofonod[789]: plugins/udevng.c:check_modem_list()
Dec 12 11:47:53 tegra-ubuntu ofonod[789]: plugins/udevng.c:check_modem_list()
Dec 12 11:48:16 tegra-ubuntu org.gnome.zeitgeist.SimpleIndexer[1669]: ** (zeitgeist-fts:2206): WARNING **: Unable to get info on application://nautilus-autostart.desktop
Dec 12 11:48:16 tegra-ubuntu rsyslogd-2007: action ‘action 9’ suspended, next retry is Tue Dec 12 11:48:46 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]

You appear to have a Logitech F710 game controller plugged into the system. Do you also have a XBox controller you are trying to attach?

You appear to have a Logitech F710 game controller plugged into the system. Do you also have a XBox controller you are trying to attach?

You appear to have a Logitech F710 game controller plugged into the system. Do you also have a XBox controller you are trying to attach?

Yes, the wireless one was just attached. But it doesn’t seem to work, at least, there is no js0 file indication.

Sorry, I’m a little confused. You have two game controllers attached? A Logitech F710 and a XBox controller?

No, just one.

Isn’t the Logitech an XBox controller, only wireless?

I would like one of these to work, if they would. Better, the wireless one. But the wired would be OK if it would work. Do these controllers not communicate through js0 like a joystick?

No they are different beasts. The XBox controller is made by Microsoft. I believe that the Logitech has a XBox controller compatible mode.

To get the Logitech to work as a joystick:

  1. There is a switch on the back of the controller. It must be in the ‘D’ position.
  2. Make sure the controller is ‘On’ by pressing the ‘Logitech’ button.
  3. The MODE button has a green light next to it. Select the MODE where the green light is off.
  4. To make sure that the game pad is on, you can hit the ‘VIBRATION’ button which should rumble the controller.

/dev/input/js0 should appear.

You can test the game controller:

$ sudo jstest /dev/input/js0

jstest is located in the joystick debian package. If it is missing, you can install it:

$ sudo apt-get install joystick

Thanks for the answer. This doesn’t work for me. For now I’ll just carry the big stick. Must move on to swatting other bugs!