Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set up joystick?
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message

Joined: 04 Oct 2016
Posts: 51

PostPosted: Sat Jan 28, 2017 6:55 pm    Post subject: How to set up joystick? Reply with quote

Hello, I can not understand how to setup joystick. I have installed:
user@localhost ~ $ eix joystick
[I] games-util/joystick
     Available versions:  1.4.8 1.5.1 ~1.6.0 {sdl udev}
     Installed versions:  1.5.1(02:35:35 29/01/17)(sdl udev)
     Description:         joystick testing utilities

* media-plugins/kodi-peripheral-joystick
     Available versions:  **9999
     Description:         Libretro compatibility layer for the Kodi Game API

* media-plugins/vdr-joystick
     Available versions:  ~0.0.3
     Description:         VDR plugin: allows using a joystick as a remote control for VDR

[I] x11-drivers/xf86-input-joystick
     Available versions:  1.6.2 ~1.6.3
     Installed versions:  1.6.2(21:09:22 06/10/16)
     Description:         X.Org driver for joystick input devices

Found 4 matches

user@localhost ~ $ ls /dev/input/
by-id    event0  event10  event12  event14  event16  event18  event3  event5  event7  event9  js1   mouse0
by-path  event1  event11  event13  event15  event17  event2   event4  event6  event8  js0     mice  mouse1


[393651.624532] usb 2-1.1.1: USB disconnect, device number 19
[393651.624582] xpad 2-1.1.1:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19
[393653.344750] usb 2-1.1.1: new full-speed USB device number 21 using ehci-pci
[393653.435170] usb 2-1.1.1: New USB device found, idVendor=045e, idProduct=028e
[393653.435174] usb 2-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[393653.435176] usb 2-1.1.1: Product: Controller
[393653.435177] usb 2-1.1.1: Manufacturer: ©Microsoft Corporation
[393653.435179] usb 2-1.1.1: SerialNumber: 1F015B3
[393653.435805] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1.1/2-1.1.1:1.0/input/input28

cat /dev/input/js0
B�t�B�t�B�t�B�t�B�t�B�t�B�t�B�t�B�tB�t�   B�t�
B�t�B�t�B�t��B�t�B�t�B�t��B�t�B�t�I�t��I�tI�t�M�t��Q�t�Y�t�Y�t�a�ta�ta�t$�a�ta�t��i�t��i�ti�t�m�t��m�tm�t��u�t��u�t�}�tG���t2���t����t����tz   ��t��t%
             ��t�Ɍt��Ɍt_ьt��ьtsٌt��ٌt�݌t�݌tr"m�t�#��t\%��t'��t����tO���t ���t
Back to top
View user's profile Send private message

Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Jan 28, 2017 8:19 pm    Post subject: Reply with quote

For testing purposes in X, you can use xev and check the output.


Below section when it does not generate any events in xev:


xorg.log please

I assume its an USB HuMAN input device.

Check your kernel settings. lsub will give yuo a hint what to set in your kernel.

my gamepad with usb, works in a few games in gnu/linux.


connect the human input device (can be anything), configure the kernel, set-up x-server, set up the game.

Human input device => kernel => USB +USB HID + joystick + manufacturer related things + things hidden in the staging section + newest stable kernel.

do not forget to set this:
ASUS-G75VW roman # grep evdev /etc/portage/make.conf
INPUT_DEVICES="evdev synaptics keyboard mouse wacom joystick"

I expect that you already searched for anyone who has the same HID and used it already in gnu / linux. Any guide for any linux distro can be used to set up your box.

Any gamepad / joystick guide should give you a basic idea on how to set up a HID in linux.

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum