PINE64
Joystick/Gamepad support - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+--- Thread: Joystick/Gamepad support (/showthread.php?tid=1985)



Joystick/Gamepad support - Drakuwa - 08-10-2016

Hello all, first time noob posting...

I've just got the Pine64+ 2GB model, installed the latest Debian XFCE image and did all of the updates suggested. I've successfully installed XMAME following this tutorial and now I'm trying to configure a gamepad to work with it. I've tried 2 separate USB devices, one is a PS2/PS3 compliant device and the other one is a DragonRise gamepad, but unfortunately both of them didn't work.

Here's the log from dmesg when I connect a gamepad:
Code:
[ 1299.821184] ehci_irq: highspeed device connect
[ 1299.948456] ohci_irq: fullspeed or lowspeed device connect
[ 1300.342055] usb 3-1: new full-speed USB device number 3 using sunxi-ohci

Here's an output from lsusb:
Code:
Bus 004 Device 002: ID 1997:2433  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller

...but there's no device detected in the /dev/input/ folder (/dev/input/js0 is missing). I've tried "cat" and "evtest" on every /dev/input/eventX device, but with no luck. I can see that both the "joydev" and "evdev" modules are built in, and I've installed the "joystick" and "xserver-xorg-input-joystick" packages, but nothing seems to help.

As I've seen on a Gentoo forum post, I've looked at /usr/src/linux-headers-3.10.102-2-pine64-longsleep/.config and I found that

Code:
# CONFIG_HID_DRAGONRISE is not set

and

Code:
# CONFIG_HID_SONY is not set

...so I guess this is the problem the system isn't detecting the gamepad devices. Now, I guess I need to somehow enable kernel support for those two, but I have no idea how and it doesn't seem like a one-liner...

Can anyone give me pointers or help?


RE: Joystick/Gamepad support - CaptainZalo - 08-10-2016

Try sudo apt-get install linux-firmware
Haven't tried a gamepad on my Pine yet, as I don't have spare time these days.


RE: Joystick/Gamepad support - Drakuwa - 08-10-2016

(08-10-2016, 09:52 AM)CaptainZalo Wrote: Try sudo apt-get install linux-firmware
Haven't tried a gamepad on my Pine yet, as I don't have spare time these days.

Code:
firmware-linux-free is already the newest version.
firmware-linux is already the newest version.
firmware-linux-nonfree is already the newest version.
firmware-misc-nonfree is already the newest version.
...already installed all of the firmware packages.


RE: Joystick/Gamepad support - xalius - 08-10-2016

If the kernel modules are not enabled you can maybe ask longsleep to include them in his next kernel build, see thread here: http://forum.pine64.org/showthread.php?tid=293 or you could try and follow the instructions in the first post to download the sources and build your own updated kernel based on the current config and with the missing modules enabled.