Project

General

Profile

Help with Xbox 360 controller needed

egils - over 4 years ago -

Hi

I bought a USB cable for my Xbox 360 controller.
I am trying to make it work on parabola.
$ uname -a
Linux parabola 4.13.13-gnu-1 #1 SMP PREEMPT Sat Nov 18 22:52:17 CET 2017 x86_64 GNU/Linux

When I load the xpad module with
$ modprobe xpad
and plug the controller in I get this:

$ lsusb
...
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 019: ID 045e:028f Microsoft Corp. Xbox360 Wireless Controller

and this:
$ dmesg
[192940.364549] usbcore: registered new interface driver xpad
[192946.677454] usb 6-1: new full-speed USB device number 19 using uhci_hcd

According to the guides I have read a new input device should now appear in /dev/input
but none appear:
$ ls /dev/input/
by-id event0 event10 event12 event14 event2 event4 event6 event8 mice mouse1
by-path event1 event11 event13 event15 event3 event5 event7 event9 mouse0
$ ls /dev/input/by-id/
usb-046d_OEM_Camera-event-if00

no js0 shows up.

I tried on 2 different computers.

Any ideas?


Replies (10)

RE: Help with Xbox 360 controller needed - freemor - over 4 years ago -

The initial set up of Joy devs on Linux can be a bit of a pain.

I'd start here:

https://wiki.archlinux.org/index.php/Joystick

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

Also, all the LEDs around the xbox-logo-button blink when it is turned on by pressing this button.

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

freemor wrote:

The initial set up of Joy devs on Linux can be a bit of a pain.

I'd start here:

https://wiki.archlinux.org/index.php/Joystick

Thanks for the tip.
I already read the relevant bits of that article.
Unfortunately it does not state what to do when an input device does not appear.

RE: Help with Xbox 360 controller needed - freemor - over 4 years ago -

By the sounds of it you are at the "Determining what mabules you need" stage.a

Did you follow the links to the kernel documentation re: joysticks and determine
what mobules to load?

what have your modprobe?

Have you installed and tried community/joyutils?

RE: Help with Xbox 360 controller needed - freemor - over 4 years ago -

Sorry about that missed that you had modprobed xpad. you may need joydev or som other kernel module to go with it.

did you looking in by-path?

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

freemor wrote:

Sorry about that missed that you had modprobed xpad. you may need joydev or som other kernel module to go with it.

did you looking in by-path?

joydev did not help.
$ sudo modprobe joydev
$ dmesg | grep xpad
[192940.364549] usbcore: registered new interface driver xpad
$ ls /dev/input/ -R
/dev/input/:
by-id event0 event10 event12 event14 event2 event4 event6 event8 mice mouse1
by-path event1 event11 event13 event15 event3 event5 event7 event9 mouse0

/dev/input/by-id:
usb-046d_OEM_Camera-event-if00

/dev/input/by-path:
pci-0000:00:1a.7-usb-0:4:1.0-event platform-i8042-serio-4-event-mouse platform-i8042-serio-5-event-mouse platform-pcspkr-event-spkr
platform-i8042-serio-0-event-kbd platform-i8042-serio-4-mouse platform-i8042-serio-5-mouse

The jstest-gtk and jstest needs a device to test it.

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

egils wrote:

This was helpful. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/input/joydev/joystick.rst
I will try creating the dev myself.

Did not work.

$ sudo mknod js0 c 13 0
$ sudo cat /dev/input/js0
cat: /dev/input/js0: Enheten eller adressen finns inte

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

I have loaded the "analog" module also. But I guess it is only used for old serial joysticks.

RE: Help with Xbox 360 controller needed - egils - over 4 years ago -

I found the problem!

"Note that using a wireless Xbox360 controller with the Play&Charge USB cable will not work. The cable is for recharging only and does not transmit any input data over the wire. To use the wireless Xbox360 controller you need the wireless receiver."
from https://xboxdrv.gitlab.io/

    (1-10/10)